var NewWin;

function Genie(URL,width,height) {
  if (NewWin != null) {
    if (NewWin.open) NewWin.close();
  }
  NewWin = window.open(URL,"","width=" + width + ",height=" + height + ",top=0,left=0");
  return false;
}

function NoCopying() {
  return false;
}

document.oncontextmenu=NoCopying;

function CheckForm(objForm) {
  var blnOK = true;
  var strAlert = "FORM INCOMPLETE\n\nPlease complete fields marked with an * (asterisk):\n\n";
  var strField;
  var arrRequired = objForm._required.value.split(",");

  for (var i=0;i<arrRequired.length;i++) {
    strField = eval("objForm." + arrRequired[i]);
    if ( eval(strField).value == "") {
      blnOK = false;
      strAlert += "* " + arrRequired[i].replace("_"," ") + "\n";
      strField.parentNode.parentNode.style.backgroundColor="#ffcc00";
    } else {
      strField.parentNode.parentNode.style.backgroundColor="";
    }
  }
  if (!blnOK) alert(strAlert);	
  return blnOK;
}

