function Validationkeyword(theform)
{
  if (theform.Keyword.value == "")
  {
    alert("Please enter your search keyword.");
    theform.Keyword.focus();
    return (false);
  }
    return (true);
 } 

function StateValidation()
{
  var f = document.frmDealerLocator;
  
  if (f.state.options[f.state.options.selectedIndex].value == "") {
      alert("Please select your state.");
      f.state.focus();
      return (false);
     }
    
   return (true);
 } 
  
function displayWindow(url, width, height) {
      var url1 = 'bigimage.asp?pic=' + url + '&height=' + height + '&width=' + width;
	  var Win = window.open(url1,"",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
	}
	
function switchImage(sColor) {
    if (sColor != "") {
	   if (document.images.ItemPic) {
		   document.images.ItemPic.src = 'images/' + sColor;
	      }
	   } 
     }	

function OpenPopUp(url, width, height) {
	     var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=no' );
	}
	
function clearall(){
 if (document.all.lyrdescription) { 
    document.all.lyrdescription.style.display="none";
   }
 
 if (document.all.lyrspecification) { 
    document.all.lyrspecification.style.display="none";
  }
   
 if (document.all.lyrfaq) { 
    document.all.lyrfaq.style.display="none";
  }
 
 if (document.all.lyraccessory) { 
    document.all.lyraccessory.style.display="none";
   }
   
 if (document.all.lyrdownload) { 
    document.all.lyrdownload.style.display="none";
   }  
 
 if (document.images.imgdescription) {
	document.images.imgdescription.src = "images/tab1_descript.gif";
   }
   
 if (document.images.imgspecification) {
	document.images.imgspecification.src = "images/tab_spec_off.gif";
   }
 
 if (document.images.imgfaq) {
	document.images.imgfaq.src = "images/tab3_faq.gif";
   }
 
 if (document.images.imgaccess) {
	document.images.imgaccess.src = "images/tab4_access.gif";
   }
 
 if (document.images.imgdownload) {
	document.images.imgdownload.src = "images/tab5_dowlds.gif";
   }  
}

function setdescription()
{
 clearall();
 document.images.imgdescription.src = "images/tab_descript_on.gif";
 document.all.lyrdescription.style.display="block";
 }
 
function setspecification()
{
 clearall();
 document.images.imgspecification.src = "images/tab2_specs_on.gif";
 document.all.lyrspecification.style.display="block";
 } 
 
function setfaq()
{
 clearall();
 document.images.imgfaq.src = "images/tab_faq_on.gif";
 document.all.lyrfaq.style.display="block";
 } 
 
function setaccess()
{
 clearall();
 document.images.imgaccess.src = "images/tab_access_on.gif";
 document.all.lyraccessory.style.display="block";
 }
 
function setdownload()
{
 clearall();
 document.images.imgdownload.src = "images/tab_down_on.gif";
 document.all.lyrdownload.style.display="block";
 }   
 
 function SetDisplay(strName,strSource)
{
 var f = window.document.frmVideo;
 var v = f.itemno.value;
 var itemname;
 
 for (var i=0; i < v; i++){
	 itemname = "menu" + i;
	 if (document.all[itemname]) { 
         document.all[itemname].style.display = "none";
      }
  }
  
 document.all[strName].style.display = "block";
 document.all['video'].src = "videos1.asp?http://" + strSource;
 }