function checkfield(applicationform)
{
	ok=true
 if (applicationform.name.value =="")
	{
		alert("Please enter your Name.  ")
		applicationform.name.focus();
		ok=false
	}
	else  if (applicationform.address.value =="")
	{
		alert("Please enter your address.  ")
		applicationform.address.focus();
		ok=false
	}

	else if(applicationform.phone_no.value=="")
		{
		alert("Please Enter Valid Mobile Number ")
		applicationform.phone_no.focus();
		ok=false
		}

		else if (applicationform.email.value == "")
	{
		alert("Please enter valid email .")
		applicationform.email.focus();
		ok=false
	}
	
	else if (!isEmailAddr(applicationform.email.value))
	{
		alert("Please enter a complete email address in the form: yourname@yourdomain.com")
		applicationform.email.focus();
		ok=false
	}
	else if(applicationform.services.value=="")
	{
		alert("Specify services.")
		applicationform.services.focus();
		ok=false
	}
		else if(applicationform.rdate.value=="")
	{
		alert("Please Enter your relocation date.")
		applicationform.rdate.focus();
		ok=false
	}
			else if(applicationform.rfrom.value=="")
	{
		alert("Are U relocate from any where ?")
		applicationform.rfrom.focus();
		ok=false
	}
	else if(applicationform.rto.value=="")
	{
		alert("You have to relocate ! ")
		applicationform.rto.focus();
		ok=false
	}
	else if(applicationform.decription.value=="")
	{
		alert("Specify Description.")
		applicationform.decription.focus();
		ok=false
	}
	
	return ok
}


function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
	var pindex = theStr.indexOf(".",index);
	if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}


function ValidateNum(input,event){
			var keyCode = event.which ? event.which : event.keyCode;
			if(parseInt(keyCode)>=48 && parseInt(keyCode)<=57){
				return true;
			}
			return false;
		}



