<!-- Begin

subject=""
var a=document.location.toString();		
x=a.length;							
y=a.lastIndexOf("?");
	if(y<0){													//if there is no recipient specified
		z=0;													//set z to 0 to send to the Webmaster
	}
	else{														//otherwise
		y=y+1;													//increment y
		var t=a.substring(y,x);									//make t everything after the ? parse divider
		if (t.indexOf('&')>-1){									//if t contains an &, then a subject is specified 
			z=t.substring(0,t.indexOf('&'))						//z is everything before the & (the recipent)
			subject=t.substring(t.indexOf('&')+9, t.length)		//and swubject is everything after the '&'
		}
		else{
			z=t;												//otherwise, no specified subject so set z to t
		}
		if( t==""|| z >(rname.length-1)){						//if t is blank or exceeds the bounds of the recient array
			z=0;												//set z (the recipient) to the webmaster
		}
	}		
	var recipientname=rname[z];
	var recipientaddress=user[z];	

function address(){
	document.write("<input type='hidden' value='"+recipientaddress+"' name='to'>");
	document.write("<input type='hidden' value='"+recipientname+"' name='toname'>");
}

function head(){
	document.write("Send Email to "+ recipientname);
}

function addSubject(){
	if(subject!=""){
		document.write(unescape(subject));
		document.write("<input type='hidden' value='"+unescape(subject)+"' name='subject'>");
	}
	else{
		document.write("<input type='text' name='subject' size='30'>");
	}
}

function validate(theForm){
	if (theForm.fromname.value == ""){
		alert("Please include your name so we can reply to you.");
		theForm.fromname.focus();
		return (false);
	}
	reply=theForm.replyto.value;

	if (reply == ""){
		alert("Please include your email address so we can send you a response.");
		theForm.replyto.focus();
		return (false);
	}
	temp=reply.indexOf('@',0);

	if (temp<0){
		alert("There is a problem with your email address.  Please retype it so we can reply to you.");
		theForm.replyto.focus();
		return (false);
	}

	if (theForm.subject.value == "")
	{
	alert("Please include a subject for your message.");
	theForm.subject.focus();
	return (false);
	}

	msg=theForm.message.value
	msg=msg.toLowerCase()
	flag1=msg.indexOf("caglar");
	flag2=msg.indexOf("singletary")
	if ((flag1>-1) || (flag2>-1)){
		alert("This action is not permitted due to continued abuse.  If you feel like you are being harrassed, go to the Police Department and file a police report.  This email is considered harrassment and will no longer be tolerated.")
		return(false);
		window.close();
	}

	return (true);
}	//end function


// End -->