// $Id: scripts.js,v 1.2 2003/05/30 15:17:14 Rod Exp $

// $Log: scripts.js,v $
// Revision 1.2  2003/05/30 15:17:14  Rod
// Added the CVS log header
//


var upgrade_msg;
function testBrowser() {
	(!document.getElementById) ? upgrade_msg = 'Why not upgrade to a <br><a href="http://www.webstandards.org/upgrade/" class="links"><u>standards-compliant</u></a> browser?' : upgrade_msg = 'test';
}

function changeVal(){
     if (document.getElementById) {
     document.EoIForm.Lead.value = "Not Applicable"
     document.EoIForm.GroupDetails.value = "Not Applicable"
 }
}

function changeValNull(){
     if (document.getElementById) {
     document.EoIForm.Lead.value = ""
     document.EoIForm.GroupDetails.value = ""
 }
}

function CreateWindow(filename,width,height,scrollbars,status)

{
msgWindow=window.open(filename,"displayWindow","toolbar=no,width="+width+",height="+height+",directories=no,status="+status+",scrollbars="+scrollbars+",resizable=yes,menubar=no")
}

function BodyPopup(filetoopen) {
  if (document.all)
      var xMax = screen.width, yMax = screen.height;
  else
      if (document.layers)
          var xMax = window.outerWidth, yMax = window.outerHeight;
      else
          var xMax = 640, yMax=480;
  var xOffset = (xMax - 450)/2;
  var yOffset = (yMax - 290)/2;
  
  Download = window.open(filetoopen,'popup','toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=290,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
  return false;
}  