function sub()
{
	var fname="",lname="",email="";
	fname=document.pwdrecover.fname.value;
	lname=document.pwdrecover.lname.value;
	email=document.pwdrecover.email.value;
	if(fname=="")
	{
		alert("Please provide the First Name");
		document.pwdrecover.fname.focus();
		return false;
	}
	if(lname=="")
	{
		alert("Please provide the Last Name");
		document.pwdrecover.lname.focus();
		return false;
	}
	if(email=="")
	{
		alert("Please provide the E-Mail");
		document.pwdrecover.email.focus();
		return false;
	}
	document.pwdrecover.method="post";
	document.pwdrecover.action="pwdrecover.jsp";
	document.pwdrecover.submit();
}

function requestinfo()
{
	var name="",email="",contact="",country="",query="";
	name=document.request.name.value;
	email=document.request.email.value;
	contact=document.request.contact.value;
	country=document.request.country.value;
	query=document.request.query.value;
	if(name=="")
	{
		alert("Name can not be blank");
		document.request.name.focus();
		return false;
	}
	if(email=="")
	{
		alert("e-mail can not be blank");
		document.request.email.focus();
		return false;
	}
	if(contact=="")
	{
		alert("Contact no. can not be blank");
		document.request.contact.focus();
		return false;
	}
	if(country=="")
	{
		alert("Country can not be blank");
		document.request.country.focus();
		return false;
	}
	if(query=="")
	{
		alert("Query can not be blank");
		document.request.query.focus();
		return false;
	}
	if(document.request.query.value.length>=250)
	{
		alert("Query should not exceed 250 characters");
		document.request.query.focus();
		return false;
	}
	document.request.mehtod="post";
	document.request.action="requestinfoprocess.jsp";
	document.request.submit();
}
function numlock()
{
	if((window.event.keyCode >= 48 & window.event.keyCode <= 57)==false)
	{
		 window.event.keyCode = 0;
		alert("Only numbers allowed");
	} 
}
function alphabets()
{
	if(((window.event.keyCode >= 65 & window.event.keyCode <= 90)||(window.event.keyCode >= 97 & window.event.keyCode <= 122)||(window.event.keyCode==32))==false)
	{
		 window.event.keyCode = 0;
		alert("Only alphabets allowed");
	} 
}	
