function checkfield(loginform)
{
	ok=true
	var chek=document.getElementById("validatecode").value;
	//var moblilenumber=document.getElementById("mobile").value;
	if(loginform.name.value=="")
	{
		alert("Please Enter Your Name.")
		loginform.name.focus();
		ok=false
	}
	else if((loginform.email.value.indexOf('@') == -1) || (loginform.email.value.indexOf('.') == -1))
	{
	 	alert("Please Enter Valid Email Address");
	 	loginform.email.value='';
		loginform.email.focus();
		ok=false
	}
	else if(loginform.mobile_no.value=="")
		{
		alert("Please Enter Valid Mobile Number ")
		loginform.mobile_no.focus();
		ok=false
		}
			else if(loginform.address.value=="")
	{
		alert("Please Enter Address .")
		loginform.address.focus();
		ok=false
	}
		else if(loginform.city.value=="")
	{
		alert("Please Enter City name.")
		loginform.city.focus();
		ok=false
	}
	else if(loginform.country.value=="")
	{
		alert("Please Enter country name.")
		loginform.country.focus();
		ok=false
	}	
		else if(loginform.movingfrom.value=="")
	{
		alert("Please Specify Your Relocation Address");
		loginform.movingfrom.focus();
		ok=false
	}		 
    	else if(loginform.movingto.value=="")
	{
		alert("Please Specify Your Relocation Address");
		loginform.movingto.focus();
		ok=false
	}
	

		else if(loginform.requirement.value=="")
	{
		alert("Please Specify Your Requirements.");
		loginform.requirement.focus();
		ok=false
	}
	else if(loginform.validate.value=="")
	{
		alert("Please Enter The Validation code.")
		loginform.validate.focus()
		ok=false
	}
	else if(loginform.validate.value!=chek)
	{
		alert("Please Enter The Validation code for the proper mail functioning.")
		loginform.validate.focus()
		ok=false
	}
	return ok
}



function get_random()
{

    var xx=null;
	var yy='xzc';
	
	xx=Math.floor(Math.random()*9);
	return xx;
	
}


function lockcode()
{
	var zz=new Array();
			
			 zz[0]=get_random();
			 zz[1]=get_random();
			 zz[2]=get_random();
			 zz[3]=get_random();
			  zz[4]=get_random();
			var xx=""+zz[0]+zz[1]+zz[2]+zz[3]+zz[4];
			document.write('<input type=hidden  name=validatecode id=validatecode value='+xx+' />');
			document.write('<img  alt="Mumbai Movers Packers" width="25" height="21" src=images/'+zz[0]+'.png /><img  alt="Mumbai Movers Packers" width="25" height="21" src=images/'+zz[1]+'.png /><img  alt="Mumbai Movers Packers" width="25" height="21"  src=images/'+zz[2]+'.png /><img  alt="Mumbai Movers Packers" width="25" height="21" src=images/'+zz[3]+'.png /><img alt="Mumbai Movers Packers" width="25" height="21"  src=images/'+zz[4]+'.png />');
			}