// JavaScript Document


<!--
function populateSecond(theFirstMenu,theMenu)
{
   theMenu.options.length=0;
   var gotOne = false;
   with (theMenu)
   {
      if (theFirstMenu.value=="0")
      {
         gotOne = true;
         options[0]=new Option("Select a category first","-1");
      }      
      if (theFirstMenu.value=="style")
      {
         gotOne = true;
         options[0]=new Option("All Sub-categories","0");         
		 options[1]=new Option("Men's","mens");
         options[2] = new Option("Women's","womens");
         options[3] = new Option("Accessories","accessories");
      }      
      if (theFirstMenu.value=="foodanddrink")
      {
         gotOne = true;
         options[0]=new Option("All Sub-categories","0");
         options[1] = new Option("Restaurants","restaurants");
         options[2] = new Option("Pubs","pubs");
		 options[3] = new Option("Shops/Delis","Shops/Delis");
      }
	  if (theFirstMenu.value=="services")
      {
         gotOne = true;
         options[0]=new Option("No Sub-catergories found","0");
         //options[1] = new Option("Catoring","catoring");
      }        
      if (theFirstMenu.value=="leisure")
      {
         gotOne = true;
         options[0]=new Option("All Sub-categories","0");
         options[1] = new Option("Entertainment","entertainment");
         options[2] = new Option("Gymnasiums","gymnasiums");
         options[3] = new Option("Spas","spas");
		 options[4] = new Option("Sport","Sport");
      }      
      if (theFirstMenu.value=="travel")
      {
         gotOne = true;
         options[0]=new Option("All Sub-categories","0");
         options[1] = new Option("Hotels","hotels");
         options[2] = new Option("Holidays","holidays");
      }      
      if (theFirstMenu.value=="venues")
      {
         gotOne = true;
         options[0]=new Option("No Sub-categories found","0");
         //options[1] = new Option("Wedding","wedding");
      }      
      if (theFirstMenu.value=="retail")
      {
         gotOne = true;
         options[0]=new Option("No Sub-categories found","0");
      }      
      if (theFirstMenu.value=="beauty")
      {
         gotOne = true;
         options[0]=new Option("No Sub-categories found","0");
      }      
      if (theFirstMenu.value=="motoring")
      {
         gotOne = true;
         options[0]=new Option("No Sub-categories found","0");
      }      
      if (theFirstMenu.value=="interiors")
      {
         gotOne = true;
         options[0]=new Option("No Sub-categories found","0");
      }      
      if (!gotOne)
      {
         options[0]=new Option("No Sub-categories found","-1");
      }
      options[0].selected = true
   }
}
function checkVenueSearchForm()
{
  if (document.venueSearchForm.categoryID.value=="0" && document.venueSearchForm.subCategoryID.value=="-1" && document.venueSearchForm.areaID.value=="A")
  {
    alert("You must choose a category, subcategory or area in order to search.");
    document.venueSearchForm.categoryID.focus();
    return(false);
  }
  return(true);
}
