function open_window(theURL) { //v2.0
  window.open(theURL,"","toolbar=yes,scrollbars=yes,resizable=yes,width=700");
}
function trim(str){
   return str.replace(/^\s*|\s*$/g,"");
}
function filterNumericInput(ev){
  var isExplorer = (-1 != navigator.appName.search("Explorer"));

  var code = (isExplorer ? ev.keyCode : ev.charCode);
  
  //(code ==44) || took out comma options
  if( (code==45) || (code==46) || (code==0)) { return true; }
  if (code < 48 || code > 57) {
    if (code != 8) {
      if(isExplorer)
        ev.keyCode = 0;
      else
        ev.preventDefault();
    }
  }
}
//this is if you have a dropdown with checkboxes and you want to know which options were checked
function initChecklist() {
    if (document.all && document.getElementById) {
        // Get all unordered lists
	   var lists = document.getElementsByTagName("ul");
        
        for (i = 0; i < lists.length; i++) {
            var theList = lists[i];
            
		  // Only work with those having the class "checklist"
            if (theList.className.indexOf("checklist") > -1) {
                var labels = theList.getElementsByTagName("label");
                
			 // Assign event handlers to labels within
                for (var j = 0; j < labels.length; j++) {
                    var theLabel = labels[j];
                    theLabel.onmouseover = function() { this.className += " hover"; };
                    theLabel.onmouseout = function() { this.className = this.className.replace(" hover", ""); };
                }
            }
        }
    }
}


//anywhere that you want to use this, in the program with the blinking text, copy this and uncomment
//<script type="text/javascript">
//spe=500;
//na=document.all.tags("blink");
//swi=1;
//bringBackBlinky();
//</script>

function bringBackBlinky() {
if (swi == 1) {
sho="visible";
swi=0;
}
else {
sho="hidden";
swi=1;
}

for(i=0;i<na.length;i++) {
na[i].style.visibility=sho;
}
setTimeout("bringBackBlinky()", spe);
}
//
