function emailDisclaimerConfirm(emailAddress) {
	var agree=confirm("The use of the Internet or this form for communication with the firm or any individual member of the firm does not establish an attorney-client relationship. Confidential or time-sensitive information should not be sent through this form. You may accept our terms of agreement by pressing \"OK\". If you choose not to accept these terms of agreement, you may navigate away from this page by pressing \"Cancel\".");
	if (agree) {
		parent.location= 'mailto:'+emailAddress;
	}
}

function NewWindow(mypage,myname,w,h,scroll,pos){
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
}


function email_window(url){
	
	var escaped_url = escape(url);
	
	window.open('/email/pop_up.php?url=' + escaped_url,'_blank','width=450, height=470, toolbars=no, scrollbars=yes, resize=yes,');
}


function limitText(limitField, limitCount, limitNum) {
	
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} 
	else {
		limitCount.value = limitNum - limitField.value.length;
	}
}
