// Notification validation start
var e=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-Z0-9]{2,4}$/;
function emailValidation()
{
	var formString=document.forms.notifyMailForm.mailId;
	
	if(formString.value=="")
	{
		alert("Enter an email address please");
		formString.focus();
		return false;
	}
	if(formString.value.charAt(0)==" ")
	{
		alert("First character should not be a space");
		formString.focus();
		formString.select();
		return false;
	} 
	else
	{
		if(!formString.value.match(e))
		{
			alert("Enter valid Email Address");
			formString.focus();
			formString.select();
			return false;
		}
	}
	var name = document.forms.notifyMailForm.fname;
	if(name.value==''){
		alert("Enter your first name please.");
		name.focus();
		name.select();
		return false;
	}
	if(name.value.charAt(0)==" "){
		alert("First character should not be a space");
		name.focus();
		name.select();
		return false;
	}
	var lname = document.forms.notifyMailForm.lname;
	if(lname.value==''){
		alert("Enter your last name please.");
		lname.focus();
		lname.select();
		return false;
	}
	if(lname.value.charAt(0)==" "){
		alert("First character should not be a space");
		lname.focus();
		lname.select();
		return false;
	}
	
	var job = document.forms.notifyMailForm.job;
	if(job.value==''){
		alert("Enter your job title please.");
		job.focus();
		job.select();
		return false;
	}
	if(job.value.charAt(0)==" "){
		alert("First character should not be a space");
		job.focus();
		job.select();
		return false;
	}
	
	var company = document.forms.notifyMailForm.company;
	if(company.value==''){
		alert("Enter your company please.");
		company.focus();
		company.select();
		return false;
	}
	if(company.value.charAt(0)==" "){
		alert("First character should not be a space");
		company.focus();
		company.select();
		return false;
	}
	
	
	
	
	var phone = document.forms.notifyMailForm.phone;
	if(phone.value==''){
		alert("Enter your phone please.");
		phone.focus();
		phone.select();
		return false;
	}
	if(phone.value.charAt(0)==" "){
		alert("First character should not be a space");
		phone.focus();
		phone.select();
		return false;
	}
	
	return true;
}