<!--
	///
	///		Allmäna funktioner
	///


	///
	///		Sid laddning
	///
		function showHideDiv(id)
		{
			if (getById(id).style.visibility == "") {
				hideDiv(id);
			} else {
				showDiv(id);
			}
		}	
		function hideDiv(id)
		{
		   	document.getElementById(id).style.visibility = "hidden";
		  	document.getElementById(id).style.display = "none";
		}
		
		function showDiv(id)
		{
		   	document.getElementById(id).style.visibility = "";
		   	document.getElementById(id).style.display = "";
		}
		

			
	///
	///		Byt bild
	///
		function changePic(id,dir,value)
		{
		  if(value != 0)
		  {
			getById(id).src = dir + value + '.gif';
		  }
		}
		
    ///
	///		Fixar info i rätt ruta utan att ladda om !
	///	
		
		var Id = "desc";
		function describe(string){
			if(document.layers){
				with (document[Id].document){
					open();
					write(string);
					close();
				}
			} else if (document.all){
				document.all[Id].innerHTML = string;
			} else if (document.getElementById){
				jxdocrange = document.createRange();
				jxdocrange.setStartBefore(document.getElementById(Id));
				while (document.getElementById(Id).hasChildNodes()){
					document.getElementById(Id).removeChild(document.getElementById(Id).lastChild);
				}
				document.getElementById(Id).appendChild(jxdocrange.createContextualFragment(string));
			}
		}
//


		var chkd = false;
		function checkUncheckAll(wht)
		{
			if (chkd == false)
			{
				checkAll(wht,true);
				chkd = true;
			}
			else
			{
				checkAll(wht,false);
				chkd = false;
			}
		}


-->
