// JavaScript Document
function careersval() {
	var err = "Following error(s) occured in your Submission, \n\n";
	
	if(document.form1.fname.value == '') { 
		   err += "Fill the First name \n";
	}
		if(document.form1.contactnumber.value == '') { 
		   err += "Fill the Contact number \n";
	}
	if(document.form1.email.value == '') { 
		   err += "Fill Email \n";
	} else if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form1.email.value))) {
		 err += "Email ID not valid \n";
	} 
	if(document.form1.education.value == '') { 
		   err += "Fill the Education \n";
	}
	if(document.form1.workexp.value == '') { 
		   err += "Fill the Work experience \n";
	}
	if(document.form1.resume.value == '') { 
		   err += "Upload the resume \n";
	}
	
  if(err !="Following error(s) occured in your Submission, \n\n") {
		alert(err);
		return false;
	} 
	
return true;	
}

function RestrictInt(val)

{
	 if(isNaN(val)){
		val = val.substring(0, val.length-1);
		document.form1.contactnumber.value = val;
		return false;
	 }
	return true;
}
