// JavaScript Document
function __fncCheckSaveNew(strid) {
	if (thisForm.txtName.value == '') {
		alert('Please Enter Name'); 
		thisForm.txtName.focus();return;
	}
	if (thisForm.txtAge.value == '') {
		alert('Please Enter Age'); 
		thisForm.txtAge.focus();return;
	}
	if (isNaN(thisForm.txtAge.value)) {
		alert('Please Enter Your Age'); 
		thisForm.txtAge.focus();return;
	}
	if (thisForm.txtAddress.value == '') {
		alert('Please Enter Address'); 
		thisForm.txtAddress.focus();return;
	}
	if (thisForm.txtEMail.value == '') {
		alert('Please Enter E-mail'); 
		thisForm.txtEMail.focus();return;
	}
	if(!__fncCheckEMail(thisForm.txtEMail.value, 'Invalid E-mail Address')){ thisForm.txtEMail.focus(); return;}
	if (thisForm.txtQualification.value == '') {
		alert('Please Enter Qualification'); 
		thisForm.txtQualification.focus();return;
	}
	thisForm.txtCareerid.value = strid;
	thisForm.txtWhat2Do.value = 'SAVENEW';
	thisForm.submit();
}
function __fncCheckEMail(email, strMessage){
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(email)){
			testres=true
			return(testres)
		}else{
			alert(strMessage);
			testres=false
			return(testres)
		}
}