function register()
		{
			var op=document.frmAcceso.products.options[document.frmAcceso.products.selectedIndex].value;
			 if(op==1)
			 {window.open("https://www.myholcim.com.au/XNet/AUSignup/addChange.asp"); }
			 else if(op==2)
			 {window.open("https://www.holcimvendors.com.au/XNet/VendorsAUSignup/addChange.asp"); }
			 else if(op!=1 && op!=2)
			 {
				 alert("Select Login");
			 }
		}

function ayuda(URL){
				//window.open("https://www.myholcim.com.au/Xnet/AUSignUp/ResetPWD/",'','left = 100,top=100,width=800,height=600,scrollbars=yes,statusbar=yes,menubar=yes,resizable=yes');
				window.open(URL,'','left = 100,top=100,width=800,height=600,scrollbars=yes,statusbar=yes,menubar=yes,resizable=yes');
}
function validateClick(forma){
		var op=document.frmAcceso.products.options[document.frmAcceso.products.selectedIndex].value; 
			if(op!=1 && op!=2)
			 {
				 alert("Select Login");
			 }
			else
			{
			  	if(op==1)
			   	{
					 if (trim(document.frmAcceso.ussertext.value) == '')
				 	 {
				 			alert('Please enter a user name'); document.frmAcceso.ussertext.focus();
			     	  }
					 else if (trim(document.frmAcceso.pass.value) == '')
					 {
						 	alert('Please enter a password'); document.frmAcceso.pass.focus();
					 }
					 else
					 {
					 	var usser =	document.getElementById("ussertext").value;
						var pass = document.getElementById("pass").value;
						var url ="https://www.myholcim.com.au/cgibin/hsrun.hse/PR2_myHolcim/myHolcim/eCommerce/eCommerce.hjx%3Bstart%3DeCommerce.HsLogin.run?log=1"+"&lid="+ usser+"&pwd="+pass+"";
						//window.open(url,'','left = 100,top=100,width=800,height=600,scrollbars=yes,statusbar=yes,menubar=yes,resizable=yes');	 
						window.open(url);
					 }
				 }
				 else if(op==2)
				 {
				 	 if (trim(document.frmAcceso.ussertext.value) == '')
				 	 {
				 			alert('Please enter a user name'); document.frmAcceso.ussertext.focus();
			     	  }
					 else if (trim(document.frmAcceso.pass.value) == '')
					 {
						 	alert('Please enter a password'); document.frmAcceso.pass.focus();
					 }
					 else
					 {
						var usser =	document.getElementById("ussertext").value;
						var pass = document.getElementById("pass").value;
						var url="https://www.holcimvendors.com.au/cgibin/hsrun.hse/PR2_HolcimVendors/HolcimVendors/HahtVendorInvoice/HahtVendorInvoice.hjx%3Bstart%3DHahtVendorInvoice.HsLogin.run?log=1&lid="+usser+"&pwd="+pass+"";
      				   // window.open(url,'','left = 100,top=100,width=800,height=600,scrollbars=yes,statusbar=yes,menubar=yes,resizable=yes');
					    window.open(url);
					 }
				 }
			  }
  	}
	
function trim(str){
	return str.replace(/^\s*|\s*$/g,"");
} 

//Home:CEMEX Products
function CheckProducts() {
	top.location.href = document.CEMEXProducts.products.options[document.CEMEXProducts.products.options.selectedIndex].value; document.CEMEXProducts.products.selectedIndex=0
}

//Home:CEMEX byProject
function CheckProject() {
	top.location.href = document.CEMEXbyProject.byproject.options[document.CEMEXbyProject.byproject.options.selectedIndex].value; document.CEMEXbyProject.byproject.selectedIndex=0
}

