function validateform()
{	
     var validate=document.frm.validation.value;
	 var chek=validate.toUpperCase();
	 ok=true;
	 var test=document.getElementById("hiddenvalue").value;
	if(document.frm.name.value=="")
	{
		alert("Enter Your Name");
		document.frm.name.focus();
	     ok=false;
	}	
	else if(document.frm.address.value=="")
	{
		alert("Enter Your Address");
		document.frm.address.focus();
		ok=false;
	}
	else if(document.frm.city.value=="")
	{
		alert("Enter City Name");
		document.frm.city.focus();
		ok=false;
	}

	else if(document.frm.state.value=="")
	{
		alert("Enter State Name");
		document.frm.state.focus();
		ok=false;
	}
	else if(document.frm.country.value=="")
	{
		alert("Enter Country Name");
		document.frm.country.focus();
		ok=false;
	}
	else if(document.frm.email.value=="")
	{
		alert("Enter Your Email");
		document.frm.email.focus();
		ok=false;
	}
	

	else if(document.frm.mobileno.value=="")
	{
		alert("Enter Your Mobile no.");
		document.frm.mobileno.focus();
		ok=false;
	}
	
	
	else if(document.frm.packagename.value=="")
	{
		alert("Enter the Package Name");
		document.frm.packagename.focus();
		ok=false;
	}
	else if(document.frm.date.value=="DD")
	{
		alert("Select the Date");
		document.frm.date.focus();
		ok =false;
	}
	
	else if(document.frm.month.value=="MM")
	{
		alert("Select the Month");
		document.frm.month.focus();
		ok =false;
	}

	else if(document.frm.year.value=="YY")
	{
		alert("Select the Year");
		document.frm.month.focus();
		ok =false;
	}

	else if(document.frm.remarks.value=="")
	{
		alert("Enter Your Requirements");
		document.frm.remarks.focus();
		ok=false;
	}
	
	else if(document.frm.validation.value=="")
	{
		alert("Enter The Validation Code");
		document.frm.validation.focus();
		ok=false;
	}
	else if(chek!=test)
	{
		alert("Enter The Correct Validation code");
		document.frm.validation.focus();
	   ok=false;
	}
return ok;

}

function get_random()
{
	var xx=null;
	var yy='XYZ';
	xx=Math.floor(Math.random()*9);
	return xx;
}

function lockcode1()
{
	var number= new Array();
	number[0]='WORK';
	number[1]='56H8';
	number[2]='EAPN';
	number[3]='4HM8';
	number[4]='JUMP';
	number[5]='NFAS';
	number[6]='PJBT';
	number[7]='SH8E';
	number[8]='ULKT';
                
				
				 var xx=get_random();
				 document.write('<input type=hidden name=hiddenvalue id=hiddenvalue value='+number[xx]+' />');
				 document.write('<img border=0 src=images/'+number[xx]+'.gif />');
}

