function email_verify() {
	var msg = 'IMPORTANT NOTICE: While we would like to hear from you, we cannot represent you until we know that doing so will not create a conflict of interest.\n\nAccordingly, please do not send us any information about any matter that may involve you until you receive a written statement from us that we represent you (an engagement letter).\n\nThe best way for you to initiate a possible representation is to call us at (312) 321-4200 or 866.222.0112. We will take your information and see that you are put in touch with the lawyer best suited to handle your matter. When you receive an engagement letter from that lawyer, you will be a client, and we may exchange information freely.';

	return confirm(msg);
}

function show(subCategory, path){
	var thesub;
	var theimage;
	var imageid;
	var testingdiv;
	
	thesub = document.getElementById(subCategory);
	
	imageid = "img_"+subCategory;
	theimage = document.getElementById(imageid);
	
	testingdiv = document.getElementById("testing");
	
	if(thesub.style.display == 'block'){
		//collapse...
		thesub.style.display = 'none';
		theimage.src = path+'/images/plus.gif';
		
		/*
		//testing...
		testingdiv.style.display = 'block';
		testingdiv.innerHTML = path+'common/parts_manuals/open.gif';
		*/

	}else{
		//expand/display...
		thesub.style.display = 'block';
		theimage.src = path+'/images/minus.gif';
		
		/*
		//testing...
		testingdiv.style.display = 'block';
		testingdiv.innerHTML = path+'common/parts_manuals/up.gif';
		*/
	}
	
}

function email_popup(email_prefix){ 
	window.open('/our_attorneys/email_disclaimer.php?email=' + email_prefix,'_blank','width=450, height=230, toolbars=no, scrollbars=yes, resize=no,');
}

function hideExpanded(){
	var expand_link = document.getElementById("expanded");
	var contract_link = document.getElementById("contracted");
	
	expand_link.style.display = 'none';
	
	contract_link.style.display = '';
	
}

function hideContracted(){
	var expand_link = document.getElementById("expanded");
	var contract_link = document.getElementById("contracted");
	
	expand_link.style.display = '';
	
	contract_link.style.display = 'none';
}


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 cle_receipt(user_id, name, begin_time, end_time, cle_id){
	
	var escaped_name = escape(name);
	
	window.open('cle.php?action=cle_receipt&name=' + escaped_name + '&begin_time=' + begin_time + '&end_time=' + end_time + '&user_id=' + user_id + '&media_id=' + cle_id , '_blank', 'width=500, height=550, 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;
	}
}

function toggle(id){
	el = document.getElementById(id);
	var display = el.style.display ? '' : 'none';
	el.style.display = display;
}
