function requset()
{

function isEmail(string){
if(string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z-0-9]+((\.|-)[A-Za-z-0-9]+)*\.[A-Za-z-0-9]+$/)!=-1)
return true;
else
return false;
}
function Checkfiles()
{
var fup = document.getElementById(‘fileAttach’);
var fileName = fup.value;
var ext = fileName.substring(fileName.lastIndexOf(‘.’) + 1);
//if(ext == “gif” || ext == “GIF” || ext == “JPEG” || ext == “jpeg” || ext == “jpg” || ext == “JPG” || ext == “doc”)
if(ext == “docx” || ext == “doc”)
{
return true;
}
else
{
alert(“Upload  resume in  docx or doc format only”);
fup.focus();
return false;
}
}

var frm = document.form1;
var alphaExp = /^[a-zA-Z]+$/;

if(frm.txtSubject.value == “”)
{
alert(“Please select position “);
frm.txtSubject.focus();
return false;
}
if(frm.txtFormName.value == “”)
{
alert(“Please enter firstname “);
frm.txtFormName.focus();
return false;
}
if(!frm.txtFormName.value.match(/^[a-zA-Z]+$/)){
alert(‘Please enter only character  values!’);
return false;
}

if(frm.lastname.value == “”)
{
alert(“Please enter lastname   “);
frm.lastname.focus();
return false;
}
if(!frm.lastname.value.match(/^[a-zA-Z]+$/)){
alert(‘Please enter only Character  values!’);
return false;
}
if(frm.number.value == “” )
{
alert(“Please enter mobile number  “);
frm.number.focus();
return false;
}
if(!/^[0-9]{10}$/.test(frm.number.value))
{
alert(“Please enter mobile number digits only “);
frm.number.focus();
return false;
}
if(frm.txtFormEmail.value == “”)
{
alert(“Please enter email  “);
frm.txtFormEmail.focus();
return false;
}

if(isEmail(frm.txtFormEmail.value) == “”)
{
alert(“Please enter vaild email  “);
frm.txtFormEmail.focus();
return false;
}

if(frm.texp.value == “”)
{
alert(“Please select total experience  “);
frm.texp.focus();
return false;
}

if(frm.location.value == “”)
{
alert(“Please enter location  “);
frm.location.focus();
return false;
}
if(!frm.location.value.match(/^[a-zA-Z]+$/)){
alert(‘Please enter location only character  values!’);
return false;
}

if(frm.relocate.value == “”)
{
alert(“Please select an option “);
frm.relocate.focus();
return false;
}

if(frm.txtDescription.value == “”)
{
alert(“Please write your brief profile  “);
frm.txtDescription.focus();
return false;
}

if(frm.fileAttach.value == “”)
{
alert(“Please upload your resume. “);
frm.fileAttach.focus();
return false;
}
if(Checkfiles(frm.fileAttach.value) == “”)
{
//    alert(“Please upload your resume wordformat only. “);
frm.fileAttach.focus();
return false;
}

return true;

}