<!--
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("searchapc.taf?Master_ID=" + MasterID, "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("searchapc1.taf?Master_ID=" + MasterID, "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;
}

//IE doesnt recognise background of focus for input Taken from htmldog
sfFocus = function() {

  var sfEls = document.getElementsByTagName("INPUT");

  for (var i=0; i<sfEls.length; i++) { 
    sfEls[i].onfocus=function() {
      this.className+=" sffocus"; 
    }

    sfEls[i].onblur=function() { 
      this.className=this.className.replace(new RegExp(" sffocus\\b"), ""); 
    }

  } 

} 

if (window.attachEvent) window.attachEvent("onload", sfFocus);
// -->
