var win = null;
function PopUp(mypage,myname,w,h,scroll,pos){ 

if(pos=="random"){ 
LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100; 
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100; 
} 

if(pos=="center"){
LeftPosition=(screen.width)?(screen.width-w)/2:100; 
TopPosition=(screen.height)?(screen.height-h)/2:100; 
} 

else if( (pos!="center" && pos!="random") || pos==null){ 
LeftPosition=0; 
TopPosition=20
} 

settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'; 
win=window.open(mypage,myname,settings); 
if(win.focus){win.focus();}
}

function submitForm(s) {
  s.value = " Please Wait ... Processing Your Request... ";
  return true;
}

function disableForm(theform) {
  if (document.all || document.getElementById) {
    for (i = 0; i < theform.length; i++) {
      var tempobj = theform.elements[i];
      if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset") {
        tempobj.disabled = true;
      }
    }
    setTimeout('alert("The form has been submitted.  Please wait for it to process.  Thank you!")', 2000);
    return true;
  }
  else {
    alert("The form has been submitted.  Please wait for it to process.  Thaed.  Please wait for it to process.  Tha