

function OuttaHere(){
		var OuttaHere = confirm('***** Attention: You are leaving the Minnesota Department of Health Web site. *****\n' +
								'You are temporarily leaving the Minnesota Department of Health Web site for one or more\nexternal Web sites. The Minnesota Department of Health is not responsible for the content\nof external sites, nor do we endorse or guarantee the services or information described or\noffered on external sites.\n\nThe site or sites you are about to visit may contain information inappropriate for certain\naudiences. The views and information offered on external Web sites do not necessarily\nreflect the views of the Minnesota Department of Health.'+
								'\n\nThank You\n\n'+
								'          Press the OK button to proceed to your requested page.\n'+
								'          Press the CANCEL button to remain in the Minnesota Department of Health Web Site.');
		if (OuttaHere == true){
			return(true);
			}else{
			return(false);
   		}
}  

function disableSubmitButton(formname,buttonname){
	//document.forms[formname].elements[buttonname].value = 'Processing...';	
	document.forms[formname].elements[buttonname].disabled = true;
	window.setTimeout("enableSubmitButton('"+formname+"','"+buttonname+"');", 3000);
}

function enableSubmitButton(formname,buttonname){
	document.forms[formname].elements[buttonname].disabled = false;
}

function stopRKey(evt) {
  var evt = (evt) ? evt : ((event) ? event : null);
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
  if ((evt.keyCode == 13) && (node.type=="text"))  {return false;}
}

document.onkeypress = stopRKey;

<!--
	if (top.location != self.location) {
		top.location = self.location.href
	}
	
	if(frames){if(top.frames.length>0)
	top.location.href=self.location;}

//-->

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Hillel Aftel |  */
function checkAll(checkname, exby) {
	for (i = 0; i < checkname.length; i++)
	checkname[i].checked = true;
}
function unCheckAll(checkname, exby) {
	for (i = 0; i < checkname.length; i++)
	checkname[i].checked = false;
}

function clearSearchDefault(x){
	if (x.value == 'Keyword'){
		x.value = "";
	} else if(x.value == ''){
		x.value = "Keyword";
	}
	return false;
}

function scrollTop(){
	setTimeout('window.scrollTo(0,0)',1);
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

var centerWidth = (window.screen.width - 790) / 2;
var centerHeight = (window.screen.height - 600) / 2;


var features = 'location=0,copyhistory=0,directories=0,status=0,menubar=0,toolbar=0,width=790,height=600,scrollbars=1,resizable=0,left='+centerWidth+',top='+centerHeight+'.titlebar=1';

function LaunchDevWindow(src) {   
	remotedevwin = window.open(src,'remotedevwin',features);   
	
	remotedevwin.focus();
	
	if (remotedevwin != null) {     
		if (remotedevwin.opener == null) {       
			remotedevwin.opener = self;
			remotedevwin.focus();     
		}   
	} 
} 
