<!-- CLOAK

function validateForm(form) { 

document.getElementById('button').innerHTML = "<img src='images/progress-bar.gif' />";
var returnbutton = "<input type='submit' name='Submit' value='Search For Time Share'>";



if (form.Name.selectedIndex == 0 && form.City.selectedIndex == 0) { 
   alert("You must select a resort or city from the dropdown menus.");
   document.getElementById('button').innerHTML = returnbutton;
   form.Name.focus( ); 
   return false; 
   }

if (form.Name.selectedIndex != 0 && form.City.selectedIndex != 0) { 
   alert("You do not need to select a city when a resort has been chosen.");
   document.getElementById('button').innerHTML = returnbutton;
   form.City.selectedIndex = 0; 
   return false; 
   }


}