function CPLogin(theForm, Param) {
	if(Param=="HOSTING") {
		svr = theForm.platform.value;
		if (theForm.user.value == "" || theForm.user.value == " Username"){
			alert("You forgot to enter your hosting control panel username!\n\nPlease enter your hosting control panel username to proceed.")
			theForm.user.focus();      
			return false;       
		}   
		if (theForm.pass.value == "" || theForm.pass.value == " Password"){
			alert("You forgot to enter your hosting control panel password!\n\nPlease enter your hosting control panel password to proceed.")
			theForm.pass.focus();      
			return false;       
		}
		if(svr=="linux")	{
			theForm.action="http://65.98.40.34:2082/login/";
			theForm.submit();
		}
		else if(svr=="linuxwhm")	{
			theForm.action="http://65.98.40.34:2086/login/";
			theForm.submit();
		}
		else if(svr=="linux2")	{
			theForm.action="http://91.186.29.170:2082/login/";
			theForm.submit();
		}
		else if(svr=="linuxwhm2")	{
			theForm.action="http://91.186.29.170:2086/login/";
			theForm.submit();
		}
		else	{
			theForm.login_name.value=theForm.user.value;
			theForm.passwd.value=theForm.pass.value;
			theForm.action="https://87.117.253.95:8443/login_up.php3";
			theForm.submit();
		}	
	}
	else if(Param=="DOMAIN") {
		rol = theForm.role.value;
		if(rol=="customer")	{
			theForm.action="http://domain.rudrasoftwares.net/customer";
			theForm.submit();
		}
		else {
			theForm.action="http://domain.rudrasoftwares.net/reseller";
			theForm.submit();
		}
	}
	else {
		return false;
	}
}

function qLink()
{
	if (document.getElementById("qLaunch").value !="")
	{
		location.href=document.getElementById("qLaunch").value
	}
}
function NewWindow(theURL,winName,features)	{
	window.open(theURL,winName,features);
}
