<!-- 
// JSCA SCRIPT
//
function callvalidate() {
  hform=document.DLRPARTS;
  hform.action = "JRepPartOrd.asp?PgReq=ValPts";
  hform.submit();
}
function callcheckout() {
  hform=document.DLRPARTS;
  // this will still execute userinput vb and page load and then redirect to store if reg cia cst
  // this will still execute userinput vb in order to load and validate all parts before going to svc checkout
  // if it is a ciadlr or valid dealer
  hform.action = "JRepPartOrd.asp?PgReq=ChkOut&action=UpdPts";
  hform.submit();
}
function quickentry() {
  hform=document.DLRPARTS;
  item1=hform.DlrOrdRefNbr.value;
  hform.action = "JRepPartOrd.asp?PgReq=UsrInputQck";
  hform.submit();
}
//
function PgOnLoad(){
  myform=document.DLRPARTS;
  // due to need for usrinput vb to be executed and form to be reloaded with new values from that vb exec
  // if a cia cst we will now force a submit of the form again but direct to store site 
  //
  CiaSts = myform.CiaSts.value ;
  PgReq = myform.PgReq.value;
  //                           if pgreq is chkout we are here only to upd pts then redirect to checkout page
  if (PgReq =="ChkOut"){
    if (CiaSts == "SVC"){
      // alert("im redirecting to STORE CHKOUT from page on load in userinput js");
      myform.target="_top";
      myform.action="https://www.jvcservice.com/Store/Checkout.asp?calledfrom=service" ;
      myform.submit();
    }
    //else
    //{       LEAVING TO HELP MAKE SENSE OF WHAT USED TO BE AT THIS TIME ONLY TIME WE AUTO RESUBMIT
      //      IS FOR A CIA CUSTOMER COMING THROUGH SERVICE SITE 
      // must be a cia dealer Since I would have already redirected in vb of usr input if reg dealer
      // alert("im RECALLING REPPARTORD BUT NOW AS LodChkOut from page on load in userinput js");
      //myform.action="RepPartOrd.asp?PgReq=ChkOut&action=LodChkOut";
      //myform.submit(); 
    //}
  }
  if (PgReq=="UsrInput"){
    myform.DlrOrdRefNbr.focus();
    return true;
  }
}
function RtnPage(xPage,HLPVAR,ht) {
  hlptype=HLPVAR
  newWindow = window.open(xPage + "?action=" + hlptype,"help2wind","scrollbars=yes,resize=yes,width=600,height=" + ht)
  return; 
}
//
ScptLoad = true ;
// -->
