function Validationkeyword(theform)
{
  if (theform.Keyword.value == "")
  {
    alert("Please enter your search keyword.");
    theform.Keyword.focus();
    return (false);
  }
    return (true);
 } 
   
 function ValidateSelect()
{ 
  var f = window.document.frmSearch;
  var sBrand = f.brand.options[f.brand.options.selectedIndex].value;
  var sCat = f.category.options[f.category.options.selectedIndex].value;
  
  if (sCat == "") {
      alert("Please choice your search category.");
      return (false);
    }
  else if (sBrand == "" && catcheck(sCat)==false){
	   alert("Please choice your search brand.");
	   return false;
    }
    
   return (true);
 } 
 
 function catcheck(str) {
   if (str=="Bluetooth Headsets" || str=="Bluetooth Car Kits" || str=="Bluetooth Headphones" || str=="Car Holder"){
       return (true);
    }
   else if (str=="Bluetooth Speaker" || str=="Cell Phone Boosters" || str=="Screen Protector"){
       return (true);
    }
     
    return false;
 }
 
  function ValidateCategory()
{ 
  var f = window.document.frmCategory.cat;
   
  if (f.options[f.options.selectedIndex].value =="") { 
      alert("Please Select Accessory.");
      f.focus();
      return (false);
    }
      return (true);
 } 
 
 function displayWindow(url, width, height) {
	var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=no' );
	}