<!--
function guestcast_validate(theForm){
	if (theForm.fname.value == "" || theForm.fname.value.length < 2){
		alert("Please fill in your First Name.");
		theForm.fname.focus();
		return false;
	}
	if (theForm.lname.value == "" || theForm.lname.value.length < 2){
		alert("Please fill in your Last Name.");
		theForm.lname.focus();
		return false;
	}
	if (theForm.email.value == "" || theForm.email.value.indexOf('@',1)== -1 || theForm.email.value.indexOf('.',2)==-1){
		alert("Please fill in your email address.");
		theForm.email.focus();
		return false;
	}	
	if (theForm.location.value == "" || theForm.location.value.length < 2){
		alert("Please fill in your location.");
		theForm.location.focus();
		return false;
	}
	if(theForm.referrer.value == "" || theForm.referrer.value == "null"){
		alert("Please select a referrer.");
		theForm.referrer.focus();
		return false;
	}
	
	if(theForm.referrer.value == "Other" && theForm.oreferrer.value == ""){
		alert("You have chosen \"Other\" as a referrer.\r\n\r\nPlease enter the other referrer resource.");
		theForm.oreferrer.focus();
		return false;	
	}
	
	var mct = theForm.comments.value.length;
	
	if (theForm.comments.value == "" || mct < 2 || mct > 500){
		if(theForm.comments.value.length >= 500){
			var over = mct-500;
			alert("You have gone past the 500 character limit in the comments box.\r\n\r\nPlease shorten your message by "+over+" characters.");
		}else{
			alert("Please make your comments.");
		}
		theForm.comments.focus();
		return false;
	}
	return true;
}

function textCounter(field, ct, maxlimit){
	if (field.value.length > maxlimit){
		field.value = field.value.substring(0, maxlimit);
	}else {
		ct.value = maxlimit - field.value.length;
	}
}
//-->
