function showhide(el, test){
	if (el.getElementsByTagName("ul")[0] != null){
		strElID = el.getElementsByTagName("ul")[0].id;		
		if (test==1){
			if (el.getElementsByTagName("ul")[0].style.display=="none"){
				el.getElementsByTagName("ul")[0].style.display="block";
			}	
			else if (el.getElementsByTagName("ul")[0].style.display=="block"){
				el.getElementsByTagName("ul")[0].style.display="none";
			}
		}
		else{
			if (el.getElementsByTagName("ul")[0].style.display=="none"){
				el.getElementsByTagName("ul")[0].style.display="block";
			}
		}
	}	
	
	if (test==1){	
		iLength = document.getElementsByTagName("ul").length;
		for (i = 0; i < iLength; i++){
			strID = document.getElementsByTagName("ul")[i].id;
			var CatUL=strID.indexOf('ul');
			if (CatUL > -1 && strElID !=strID){
				document.getElementsByTagName("ul")[i].style.display="none";
			}
		}				
	}
	else{
		window.event.cancelBubble = true;
	}
}

function DoClientLogin(){
	var showusername = document.getElementById("showusername");
	var showproduct = document.getElementById("showproduct");
	var showpassword = document.getElementById("showpassword");
	
	strProduct = showproduct.value
	document.inloggen.product.value= showproduct.value;
	document.inloggen.username.value= showusername.value;
	document.inloggen.password.value= showpassword.value;
	
	window.open("","Login","toolbar=yes,scrollbars=1,location=0,statusbar=1,menubar=yes,resizable=1,width=750,height=600,left = 100,top = 50");		
	document.inloggen.target="Login";	
	
	if (strProduct == "1"){
		strForm = "http://lasvegas.bazoon.nl/cwusermanager/core/ClientLoginNew.asp"
	}else if (strProduct == "2"){
		strForm = "http://lasvegas.bazoon.nl/cwusermanager/core/ClientLoginNew.asp"
	}else if (strProduct == "3"){
		strForm = "http://newyork/web/usermanager/ClientLoginNew.asp"
	}else if (strProduct == "4"){
		strForm = "http://settler/web/enlpro/clientloginnew.asp"
	}
	
	document.inloggen.action=strForm;
	document.inloggen.submit();
}

