function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
}

function validate()
	{
	var returnFlag;
	var msg = "The following errors occured while processing the form:\n\n";
	var fieldName = "";
	var tempString;

	if(document.frmGen.name.value == "Name")
		{
		returnFlag = false;
		msg = msg + "-- Please enter your name .\n";
		if(fieldName == "") fieldName = "name";
		}

	if (document.frmGen.email.value.length == 0) {
		returnFlag = false;
    	msg = msg +  "-- Please enter your email address.\n";
		if(fieldName == "") fieldName = "email";
  		}
  	else
 		 {
		strEmailAddress = document.frmGen.email.value;
		intAtPosition = strEmailAddress.indexOf("@");
		intLastDotPosition = strEmailAddress.lastIndexOf(".");
		if((strEmailAddress=="") || (intAtPosition == 0) || (intAtPosition == 1) || (intLastDotPosition == -1) || (intAtPosition > intLastDotPosition) || (intLastDotPosition+1 == strEmailAddress.length)){
		returnFlag = false;
    	msg = msg +  "-- Please enter a valid email address.\n";
		if(fieldName == "") fieldName = "email";
		}
  	}
	var LItem = document.frmGen.listserv.selectedIndex;
	var LResult = document.frmGen.listserv.options[LItem].value;

	if(LResult == "")
		{
		returnFlag = false;
		msg = msg + "-- Please select a Radio Station/City .\n";
		if(fieldName == "") fieldName = "listserv";
		}
	if (returnFlag == false)
		{
		alert(msg);
		tempString = "document.frmGen." + fieldName + ".focus();";
	//	eval(tempString);
		}

	return returnFlag;
	}
