<!--
// JSCA JAVA SCRIPT
  function start_search(){
    // pull in wrkdir value from hidden input must have for test account
    var WrkDir = "";
//
    WrkDir = document.WRKDIRFRM.WrkDir.value ;
    //
    if ( document.searchform.searchvalue.value == "" ) {
      if ( document.searchform.searchtype[0].checked ) {
	alert("Please enter a model number or the prefix of the model number to search!");
      }else 
      {
	alert("Please enter a part number to search!");
      }
    }else 
    {
      if ( document.searchform.searchtype[0].checked ) {
	model = document.searchform.searchvalue.value;
	model = model.toUpperCase();
        document.searchform.searchvalue.value=model;
        var ShwImgFlg = "";
        ShwImgFlg = document.searchform.ShwImgFlg.value;
        if (ShwImgFlg == "HideToStr"){
          document.searchform.ShwImgFlg.value="Show";
        }
	document.searchform.action = "http://www.jvcservice.com/" + WrkDir + "/Model.asp?Model=" + model;
	document.searchform.submit();
      }else
      {
	PrtNbr = document.searchform.searchvalue.value;
	PrtNbr = PrtNbr.toUpperCase();
	// etg - 3 6 2009 must remove leading and trailing spaces but not middle trailing not working
		PrtNbr = PrtNbr.replace(/^\s+/g, '');
		PrtNbr = PrtNbr.replace(/\s+$/g, '');
        if (PrtNbr.length < 3){
          alert("Please enter a minimum of three characters to search");
        }else
        {
          document.searchform.searchvalue.value=PrtNbr;
	  document.searchform.action = "http://www.jvcservice.com/" + WrkDir + "/ProductDetail.asp?Part=" + PrtNbr;
	  document.searchform.submit();
        }
      }
    }
  }
  function TermCond(){
    newWindow = window.open("TermsConditionsPopup.asp","newwind","scrollbars=yes,resizable=1,width=400,height=400")
    return; 
  }
// -->
