function validateContact(objForm)
{
	
	var eml = document.contact.email.value;
	var err = false;



	if (objForm.email.value == '') {
		document.getElementById('email_error').style.display = '';
		returnStatus1 = 0;
	}else{
		document.getElementById('email_error').style.display = 'none';
		returnStatus1 = 1;
	}
		if(eml.indexOf('@')>0 && eml.indexOf('.')>0 && eml.lastIndexOf('.')<(eml.length-2) && eml.indexOf('@')==eml.lastIndexOf('@') && eml.indexOf('@')<eml.lastIndexOf('.') && eml.indexOf('..')==-1 && eml.indexOf('.@')==-1 && eml.indexOf('@.')==-1){
		document.getElementById('email_error').style.display = "none";
		e = true;
	}else {
		document.getElementById('email_error').style.display = "";	
		var err = true;
	}

	if (objForm.name.value == '') {
		document.getElementById('name_error').style.display = '';
		returnStatus2 = 0;
	}else{
		document.getElementById('name_error').style.display = 'none';
		returnStatus2 = 1;
	}
	if (objForm.message.value == '') {
		document.getElementById('message_error').style.display = '';
		returnStatus3 = 0;
	}else{
		document.getElementById('message_error').style.display = 'none';
		returnStatus3 = 1;
	}

	
//alert(returnStatus1);
//alert(returnStatus2);
//alert(returnStatus3);
//alert(returnStatus4);

	if (returnStatus3 == 0 || returnStatus1 == 0 || returnStatus2 == 0) {
		return false;
	} else {
		document.contact.submit();
	}
}
