/////////////////////////////////////////////////////////////////////

// Contact Us form vaildation
function validateContactForm(){

	// Set the default error message
	errmsg = "The following fields are required:\n\n";
	if (document.contactUs.fName.value=="" || document.contactUs.fName.value=="First Name*"){
		errmsg += "Enter Your First Name\n";
	}
	if (document.contactUs.lName.value=="" || document.contactUs.lName.value=="Last Name*"){
		errmsg += "Enter Your Last Name\n";
	}
	
	if (document.contactUs.email.value=="" || document.contactUs.email.value=="Email*"){
		errmsg += "Enter Your Email Address\n";
	} else {
		if (document.contactUs.email.value.indexOf('@',0)==-1 || 	document.contactUs.email.value.indexOf('@',0)== 0 || 	document.contactUs.email.value.indexOf('.',0)==-1) {
			errmsg += "Enter A Valid Email Address\n";
		}
	}	
	if (document.contactUs.comments.value=="" || document.contactUs.comments.value=="Comments"){
		errmsg += "What Is Your Question\\Comment?\n";
	}

	//Check to see if we added anything to the default error message
	if (errmsg != "The following fields are required:\n\n"){
		alert(errmsg);
		return false;
	}


return doDisclaimer();
return true;

}


/////////////////////////////////////////////////////////////////////

// reset form fields
function resetContactForm(){
	var answer = confirm("Reset the form and start over?")
	if (answer){
		document.contactUs.reset();
		return false;
	}
	return true;
}


/////////////////////////////////////////////////////////////////////

function nothing() {
	// this is an empty  function
	// used by the reset and validate buttons
}


/////////////////////////////////////////////////////////////////////

// Pop-up disclaimer
/*
function doDisclaimer() {

	//var disclaimer='NOTICE:\nNeither the content on the Mintz Levin web site, nor any transmissions between you and Mintz Levin through this web site, are intended to provide legal or other advice or to create an attorney-client relationship.\n\nYou should not provide any confidential information to us concerning any potential or actual legal matter you may have through this website communication. In any case, before providing any confidential information to us, you must obtain advice to do so from one or more of our lawyers.\n\nBy clicking "OK" below and thereby choosing to communicate with us through this website without prior lawyer approval as referenced above, you understand and agree that Mintz Levin will have no responsibility to keep confidential any information that youÊchoose to provide in your communication to us. Additionally, you authorize Mintz Levin to use any of the information that you include in any way we deem necessary for any purpose at any time.\n\n---------------------------------------------------------------\n\nIRS CIRCULAR 230 NOTICE\nIn compliance with IRS requirements, we inform you that any U.S. tax advice contained in this communication is not intended or written to be used, and cannot be used, for the purpose of avoiding tax penalties or in connection with marketing or promotional materials.\n\n---------------------------------------------------------------\n\nSTATEMENT OF CONFIDENTIALITY:\nThe information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, or the person responsible for delivering the e-mail to the intended recipient, be advised you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Please notify Mintz, Levin, Cohn, Ferris, Glovsky and Popeo immediately at either (617) 542-6000 or at ISDirector@Mintz.com, and destroy all copies of this message and any attachments. You will be reimbursed for reasonable costs incurred in notifying us.';


	var disclaimer='NOTICE:\nThis web site presents general information about Mintz Levin and is not intended as legal advice, and it should not be considered or relied upon as such. Please understand that contacting Mintz Levin by email or telephone will not establish an attorney-client relationship, which can only be established through completion of Mintz Levin\'s new client intake protocol, including without limitation a conflicts checking process. Absent a current engagement letter with Mintz Levin, any information or documents transmitted by you to Mintz Levin will not be treated as confidential, secret or protected in any way. By clicking "OK", which permits you to complete the email process, you acknowledge that you understand and agree with the terms of this notice.';

	if(confirm(disclaimer)) {
		return true;
	} else {
		return false;
	}

}
*/
/////////////////////////////////////////////////////////////////////