<!--
function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13)
   {
   myfield.form.submit();
   return false;
   }
else
   return true;
}
//-->


function toProperCase(incomingString) {
var outgoingString = "";
outgoingString = incomingString.charAt(0).toUpperCase();
for (i=1; i<incomingString.length; i++) {
     if (incomingString.charAt(i-1) == " ") {
     outgoingString = outgoingString + incomingString.charAt(i).toUpperCase();
} else {    
outgoingString= outgoingString + incomingString.charAt(i).toLowerCase();
}
}
document.townlive.city.value = outgoingString;
return true;
}


function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 


<!--
function frmVrfy() {
	if ((document.srchFrm.srch.value != '') && (document.srchFrm.srchState.selectedIndex != '')) {
	 if (document.srchFrm.srchType.selectedIndex == "Category")
	 	document.srchFrm.action = "something.asp";
	 document.srchFrm.submit();
	}else {
		document.srchFrm.srch.value = 'Required';
	}
}
//-->

function addtext() {
	var newtext = document.srchFrm.inputtext.value;
 {
		document.srchFrm.srchCity.value = "";
		}
	document.srchFrm.srchCity.value += newtext;
}

function addtext2() {
	var newtext = document.srchFrm.inputtext2.value;
 {
		document.srchFrm.srchCity.value = "";
		}

	document.srchFrm.srchCity.value += newtext;
}

