<!-- ************************************************************* -->
//
// This file is meant to be a repository of all MDH javascripts
// 
//
<!-- ************************************************************* -->
// function to validate search entry
function validateSearch(s){
	if(s.qt.value=='Search the site' || s.qt.value == '') {
   	return false;
  } else{
		return true;
	}
}
// function to clear search entry on blur and focus
function clearSearchDefault(x){
	if (x.value == 'Search the site'){
		x.value = "";
	} else if(x.value == ''){
		x.value = "Search the site";
	}
	return false;
}

//
// use this function to display a confirmation box 
// before user leaves mdh site
// if user presses ok they leave mdh site
// if user presses cancel no action is taken
// created by mdh communications office rf 8.2006
//
function OuttaHere(){
		var OuttaHere = confirm('***** Attention: You are leaving the MDH Web site. *****\n' +
                                'The views and information offered on external Web sites\ndo not necessarily reflect the views of MDH.'+
                                '\n\nThank You\n\n'+
								'          Press the OK button to proceed to your requested page.\n'+
								'          Press the CANCEL button to remain in the MDH Web Site.');
		if (OuttaHere == true){
			return(true);
			}else{
			return(false);
   		}
}  

