function checkfield(applicationform)
{
	ok=true
	if(applicationform.fromname.value=="")
	{
		alert("Please Enter Your Name.")
		applicationform.fromname.focus();;
		ok=false
	}
	else if(applicationform.age.value=="")
	{
		alert("Please Enter your Age")
		applicationform.age.focus();;
		ok=false
	}
		else if(applicationform.postapplied.value=="Select Any One")
	{
		alert("Please Position Value your Applied")
		applicationform.postapplied.focus();
		ok=false
	}	
		else if(applicationform.tel_no.value=="")
	{
		alert("Please Enter your contact no.")
		applicationform.tel_no.focus();
		ok=false
	}
		else if (applicationform.fromemail.value == "")
	{
		alert("Please enter a Correct value for the fromemail field.")
		applicationform.fromemail.focus();;
		ok=false
	}
		else if (applicationform.salary.value == "")
	{
		alert("Please enter your Salary Expected ")
		applicationform.salary.focus();;
		ok=false
	}
		else if (!isEmailAddr(applicationform.fromemail.value))
	{
		alert("Please enter a complete fromemail address in the form: yourname@yourdomain.com")
		applicationform.fromemail.focus();;
		ok=false
	}
		else if (applicationform.resume.value == "")
	{
		alert("Please Paste your Resume Here ")
		applicationform.resume.focus();;
		ok=false
	}
	return ok
}
function isEmailAddr(fromemail)
{
  var result = false
  var theStr = new String(fromemail)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
	var pindex = theStr.indexOf(".",index);
	if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}
