function EmailAlert() {
	return confirm('These materials have been prepared by Jaeckle Fleischmann & Mugel, LLP for informational purposes and are not legal advice. The information is not intended to create, and receipt of does not constitute, a lawyer-client relationship.\n\nBy sending an e-mail to our firm you do not become a client. Please do not provide any confidential information in your e-mail inquiries.\n\nPlease click the "OK" button if you understand and accept the foregoing statement and wish to proceed.');
}

function CommentAlert() {
	alert('Submission of this form is not intended to create, and our receipt of it does not constitute, a lawyer-client relationship.\n\nAny information provided to us in this form is not protected from disclosure. By completing this form you do not become a client. Please do not provide any confidential information in the "Comments" field.');
}

AttachAlert = function() {
	var elements = document.getElementsByTagName('A');
	
	for (i=0;i<elements.length;i++){
		if(elements[i].href.substring(0,7) == 'mailto:') {
			elements[i].onclick=function(){return EmailAlert();}
			elements[i].title = "These materials have been prepared by Jaeckle Fleischmann & Mugel, LLP for informational purposes and are not legal advice. The information is not intended to create, and receipt of does not constitute, a lawyer-client relationship. By sending an e-mail to our firm you do not become a client. Please do not provide any confidential information in your e-mail inquiries.";
		} else {}
	}
}


function TextAreaAlert() {
		// Attach to the change check JS to all TEXTAREA elements...
		var elements = window.document.getElementsByTagName('TEXTAREA');
		for (i=0; i <  elements.length; i++){ 
			if(window.addEventListener){	
			  window.addEventListener('blur', CommentAlert, true);	
			}else{
			  elements[i].attachEvent("onblur",CommentAlert);

			}
		}
}



function ClearSearch() {
	try {
		var element = window.document.getElementById('SearchKeywords');
		if(element.value=='Search'){
			element.value='';
		}else{}
	} catch(e) {}
}

function WriteSearch() {
	try {
		var element = window.document.getElementById('SearchKeywords');
		if(element.value==''){
			element.value='Search';
		}else{}
	} catch(e) {}
}


ReplaceSearch = function() {
	try {
		var elements = window.document.getElementById('SearchKeywords');
		if(window.addEventListener){	
			elements.addEventListener('focus', ClearSearch, true);
			elements.addEventListener('blur', WriteSearch, true);	
		}else{
			elements.attachEvent("onfocus",ClearSearch);
			elements.attachEvent("onblur",WriteSearch);
		}
	} catch(e) {}
}

if(window.addEventListener){ window.addEventListener('load', AttachAlert, false); window.addEventListener('load', ReplaceSearch, false);} // gecko, safari, konqueror and standard
else if(document.addEventListener){ document.addEventListener('load', AttachAlert, false); document.addEventListener('load', ReplaceSearch, false);} // opera 7
else if(window.attachEvent) { // win/ie
	window.attachEvent('onload', AttachAlert);
	window.attachEvent('onload', TextAreaAlert);
	window.attachEvent('onload', ReplaceSearch);
} else { // mac/ie5
	if(typeof window.onload == 'function') {
		var existing = onload;
		window.onload = function() {
			existing();
			AttachAlert();
			TextAreaAlert();
			ReplaceSearch();
		}
	} else {
		window.onload = function() {
			AttachAlert();
			TextAreaAlert();
			ReplaceSearch();
		}
	}
}
