var g_block=false;
function cu_fV(fl){
	if(g_block)return (fl)?void(0):false;
	var f=fFRM("frmmain");f.Msg.value=fTW(f.Msg.value);
	if(fIE(f.Msg.value)){
		alert("Message text is required.   \n\nType your message and try again.   \n\n");
		f.Msg.focus();return (fl)?void(0):false;} 
	if(f.EmailList.checked && !fVE(f.Email.value)){
		alert("The email address is required for the  \nmailing list.  \n\nType a valid email address and try again.   \n\n");
		f.Email.focus(); 
		return (fl)?void(0):false;
	}
	if(fIE(f.Email.value)){
		if(!confirm("If you continue without an email address,  \nwe will be unable to respond to your message.   \n\nContinue without the email address?   \n\n")){
			f.Email.focus(); 
			return (fl)?void(0):false;
		}
	}else if(!fVE(f.Email.value)){
		alert("Invalid email address.   \n\nType a valid email address and try again.   \n\n");
		f.Email.focus();
		return (fl)?void(0):false;
	}
	g_block=true;
	f.submit();
	g_block=false;
	return (fl)?void(0):false;
}
function cu_fR(){
	if(!confirm("Continue to reset the from?  \n\n"))return void(0);
	fFRM("frmmain").reset();
	var s=fIS("EmailListErr").display;
	if(s=="block"){fCO("EmailListErr",100,0,1000);} 
	s=fIS("EmailErr").display;
	if(s=="block"){fCO("EmailErr",100,0,1000);} 
	s=fIS("MsgErr").display;
	if(s=="block"){fCO("MsgErr",100,0,1000);} 
	fID("re").focus(); 
	return void(0);
}
function cu_RemoveMe(){
	var cx,cy;
	cx=(g_scr.width-450)/2;cy=(g_scr.height-275)/2-25;
	g_win_email=window.open("email.php?cmd=remove","email","toolbar=0,height=275,width=450,left="+cx+",top="+cy+",screenX="+cx+",screenY="+cy+",scrollbars=1,resizable=0"); 
	return 1; 	
}
function fRem(){
	var cx,cy;
	cx=(g_scr.width-460)/2;cy=(g_scr.height-330)/2-25;
	g_win_reminder=window.open("reminder.php","reminder","toolbar=0,height=330,width=460,left="+cx+",top="+cy+",screenX="+cx+",screenY="+cy+",scrollbars=1,resizable=1"); 
	return 1; 
}
function cu_AddEmail(){
	var cx,cy;
	cx=(g_scr.width-450)/2;cy=(g_scr.height-275)/2-25;
	g_win_email=window.open("email.php?cmd=add","email","toolbar=0,height=275,width=450,left="+cx+",top="+cy+",screenX="+cx+",screenY="+cy+",scrollbars=1,resizable=0,status=1");
	return 1; 
}
function cu_CE(){
	var d=(fID("EmailList").checked && !fVE(fID("Email").value))?"block":"none";
	var c=fIS("EmailListErr").display;
	if(c==d || (c==""&& d=="none")){return 1;}
	if(d=="block"){
		fCO("EmailListErr",0,99,1000);
	}else{
		fCO("EmailListErr",100,0,1000);
	}
	return 1; 
}
function cu_VM(){
	var d=fID("Msg").value; 
	d=(fIE(d))?"block":"none";
	var c=fIS("MsgErr").display;
	if(c==d || (c==""&& d=="none")){return 1;}
	if(d=="block"){
		fCO("MsgErr",0,99,1000);
	}else{
		fCO("MsgErr",100,0,1000);}
	return 1; 
}

