// ---------------------------------------------------------------------
// OPEN and close info + tab through menu
// ---------------------------------------------------------------------

function CheckSearch(form){
	if(form.txtSearch.value.length<2){
		alert("Vänligen ange minst två tecken att söka på.");
		//form.txtSearch.focus();
		return false;
	}
	else{
	
		return true;
	}
}

function tabToArrow(elID) { 
   if (document.getElementById) { 
       navRoot = document.getElementById(elID); 
       for (i=0; i<navRoot.childNodes.length; i++) { 
           node = navRoot.childNodes[i]; 
           if (node.nodeName == "LI") { node.className += " over"; } 
       } 
   } 
}

function tabAwayFromArrow(ilID) { 
   if (document.getElementById) { 
       navRoot = document.getElementById(ilID); 
       for (i=0; i<navRoot.childNodes.length; i++) { 
           node = navRoot.childNodes[i]; 
           if (node.nodeName == "LI") { 
               node.className = node.className.replace(" over", ""); 
               node.className = node.className.replace("over", ""); 
           } 
       } 
   } 
}

function openClose(theID) { 
	var openstatus = document.getElementById(theID).className; 
	if (openstatus == theID) { 
		document.getElementById(theID).className = theID+"_visa"; 
		document.getElementById(theID+"icon").innerHTML = "-";
	} else if (openstatus == theID+"_visa") { 
		document.getElementById(theID).className = theID; 
		document.getElementById(theID+"icon").innerHTML = "+";
	}
} 

//--> 
