var MenuCapable = (document.layers || (document.all && !(navigator.appVersion.indexOf("Mac") != -1)));

function popUp(url) {
  sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
  self.name = "mainWin";
}

function lnk(lnkwww) {
//Create a new window
  var newWin = window.open("http://"+lnkwww, "ManufacturerLink", 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=510');
//Note where the window came from
  self.name = "mainWin";
}

function newApp(MasterID) {
  popupWindow = window.open("<@var domain$CGI><@var domain$RootPath>searchapc.taf?Master_ID=" + MasterID + "&<@userreferenceargument>", "newWin", "toolbar=yes, scrollbars=yes, resizable=yes, menubar=yes, status=yes, directories=yes, location=yes, width=700, height=500, screenX=0, screenY=0")
}

function newApp1(MasterID) {
  popupWindow = window.open("<@var domain$CGI><@var domain$RootPath>searchapc1.taf?Master_ID=" + MasterID + "&<@userreferenceargument>", "newWin", "toolbar=yes, scrollbars=yes, resizable=yes, menubar=yes, status=yes, directories=yes, location=yes, width=700, height=500, screenX=0, screenY=0")
}

//Submit only once

var submitDone = false;
 
function submitForm(myForm, button) {

      if (!submitDone) {
         submitDone = true;
         button.value = 'Please Wait';
         button.disabled = true;
         myForm.submit();
      } 
      else {
        alert ("Already submitted, please wait!");
      }
   return true;
}

// -->
