<!--
//global functions for general use
function popUp(iWid,iHit,sPage) {
   ttop = (screen.availHeight/2) - (iHit/2);
   lleft = (screen.availWidth/2) - (iWid/2);
   open(sPage,'_blank','width=' + iWid + ',height=' + iHit + ',top=' + ttop + ',left=' + lleft + ',scrollbars=1,toolbar=1');
}

function donothing() {
  return;
}

function str(ob) {
  return ob + "";
}

function isNull(sstring) {
  if(sstring=="" || (sstring+"")=="" || (sstring+"")=="undefined" || (sstring+"")=="null")
    return true;
  else
    return false;
}

String.prototype.isNull = function() {
   if(this=="" || this==null || this=="null" || this=="undefined")
     return true;
   else
     return false;
}

function setTTip(sTip) {
  window.status=sTip; return true;
}

function w(sLine) {
  document.write(sLine);
}

// basic form validation function
function require() {
   e = arguments;
   aNames = new Array();
   for(i=0;i<e.length;i++) {
      el = eval("document.forms[0]." + e[i]);
      sElValue = eval("document.forms[0]." + e[i] + ".value");
      if(sElValue=="") {
         aNames[aNames.length] = el.name;
      }
   }
   if(aNames.length!=0) {
     sAlert = "Sorry, but we need the following fields filled in:\n\n\n=======================================\n\n"
     for(i=0;i<aNames.length;i++) {
        sAlert += aNames[i] + "\n"
     }
     sAlert += "\n=======================================\n\nPlease fill these fields in before continuing."
     alert(sAlert);
     el = eval("document.forms[0]." + aNames[0] + ".focus()");
     return;
   } else {
     document.forms[0].submit();
   }
}

function clearMSG(oTA) {
  if(oTA.value=="Your message goes here.") {
    oTA.value = "";
  }
}
//-->
