//Clear text field and then repopulate
function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}

function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}
//This function converts multiple values into one string value
function citySelect()
{
   var i, myString="", comma="";
   var L = document.the_form.towns.length;
   for (i=0; i<L; i++)
   {
      if (document.the_form.towns[i].selected)
      {
         // build string of values separated by comma
         myString += comma + (document.the_form.towns[i].value);
		 comma=",";
      }
   }
   // write value to city
   document.the_form.city.value = myString;
}
