startList = function() {
	/*if (document.all && document.getElementById) {	//ie!
		
		//mainmenu
		mainmenuRoot = document.getElementById('menu');
		liNodes = mainmenuRoot.getElementsByTagName("LI");
		for (i=0; i<liNodes.length; i++) {
			node = liNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className +=" active";

				}
				node.onmouseout=function() {
					this.className=this.className.replace(" active", "");
				}
			}
		}

	}*/
}


function changeClass(nClass, nElement){
	document.getElementById(nElement).className = nClass;

}







function mailAFriend(formId){
	frm_friend = document.getElementById(formId);
	
	frm_friend.submit();
}

function printpage() {
	window.print();  
}

function printSpec() {
	document.getElementById("route").print();  
}

function sendForm(formId){
	document.getElementById(formId).submit();
}

function changeUrl(addLink, valueForLink){
	aLinks = document.getElementsByTagName("a");
	i = aLinks.length;
	//i = 20;
	for(var a=0; a<i; ++a){
		linkHref = aLinks[a].href;
		
		if((!linkHref.match(addLink)) && (!linkHref.match("javascript")) && (!linkHref.match("index")) ){
		
			if(!linkHref.match("=")){
				linkHref = linkHref+"?"+addLink+""+valueForLink;
			}else if(linkHref.match("php?")){
				linkHref = linkHref+"&"+addLink+""+valueForLink;
			}
			
			aLinks[a].href = linkHref;
		}
	}
}

function toggleDiv(nElement){
	if(document.getElementById(nElement).style.display == "block"){ document.getElementById(nElement).style.display = "none"; }
	else{ 															document.getElementById(nElement).style.display = "block"; }
}


