function callFreeTrial(){   



	var f =document.forms[0];

	if(f.email.value==""){

	alert("Please Enter Your E-Mail Address");

	f.email.focus();

	return;

	}		

	if(!validateEmail(f.email.value)){

	alert("Please Enter a Valid E-Mail Address");

	f.email.focus();

	return;

	}		

	f.action="../common/newfreetrial.jsp";

	f.submit();

}



function loginAction(){



//document.forms[0].action = "loginservlet.jsp";

document.forms[0].submit();

}





function packchange(){

	

if (document.forms[0].payType.options.selectedIndex== 1){

document.getElementById("amtprepaid").style.display = 'block';

document.getElementById("amtprepaid1").style.display = 'block';

document.getElementById("amtmonthly").style.display = 'none';

packamt(document.forms[0].contactPrice.value);

} else {

document.getElementById("amtprepaid").style.display = 'none';

document.getElementById("amtprepaid1").style.display = 'none';

document.getElementById("amtmonthly").style.display = 'block';

packamt(document.forms[0].contactPrice1.value);

}

}



function packamt(param)

{

	

	if (document.forms[0].payType.options.selectedIndex== 1){

	document.forms[0].NOC.value=param;

	document.forms[0].NOC1.value=param;

	} else {

	document.forms[0].NOC.value="UNLIMITED";

	document.forms[0].NOC1.value=param;

	}

}



function registerAction(param){



var pp=""; 

if(param =='1'){

	document.forms[0].payingType.value = document.forms[0].payType.value;
	

	if (document.forms[0].payType.options.selectedIndex== 1){	

		pp = document.forms[0].contactPrice.value;

	} else {	

		pp = document.forms[0].contactPrice1.value;

	}	



}





if(pp=="25,000+" || pp=="75,000+" ){

	return;

}







document.forms[0].contacts.value ="500";

document.forms[0].price.value = "13.50";

document.forms[0].volume.value ="UNLIMITED";



if(param=="2"){

document.forms[0].payingType.value = 8;

}









if (param == "1") { 

	if (document.forms[0].payType.options.selectedIndex== 1){

	document.forms[0].contacts.value = document.forms[0].NOC1.value;

	document.forms[0].price.value = (document.forms[0].contactPrice.options[document.forms[0].contactPrice.selectedIndex].text).substring(1);

	} else {

	document.forms[0].contacts.value = document.forms[0].NOC1.value;

	document.forms[0].price.value = (document.forms[0].contactPrice1.options[document.forms[0].contactPrice1.selectedIndex].text).substring(1);

	}	

	document.forms[0].volume.value = document.forms[0].NOC.value;

}



document.forms[0].action = "http://echosmb.echomail.com/echomail-regs/PaidRegistration.do";

document.forms[0].submit();

}



function logout(){

	document.forms[0].action = "logout.jsp";

	document.forms[0].submit();

}



function checkenter(){

    if ((event.keyCode==13) || (event.which==13)){

		frmSubmit();

    }

}





function init(){

	document.forms[0].userName.focus(); 

	

 }


