
// Show/hide div
function toggle(divName)  {
   with (document.getElementById(divName).style)  {
      if (display == "none")  {
         display = "";
         return "Hide Filters";
      }  else  {
         display = "none";
         return "Show Filters";
      }
   }
}

// hide div
function hide(divName)  {
   with (document.getElementById(divName).style)  {
         display = "none";
   }
}


function maj_js_test()  {

   alert("Made it to here!");

}
function launch(file,name,winwidth,winheight)      
{

version=100;
if (navigator.appVersion.indexOf("MSIE")!=-1){
	temp=navigator.appVersion.split("MSIE")
	version=parseFloat(temp[1]);
}
var string="width="+winwidth+",height="+winheight+",toolbar=0,scrollbars=1,status=0,directories=0,menubar=0,resizable=1,dependent=1";  
if (version<=6.0){
	hwnd = window.open(file, null, string);          
	}        
else{
	hwnd = window.open(file,name,string);                  
	}
if (navigator.appName == "Netscape") { 
	hwnd.focus(); 
	} 
} 


var checkflag = "false";
function check(field) {

   if (checkflag == "false") {
      for (i = 0; i < field.length; i++) {
         field[i].checked = true;
      }
      checkflag = "true";
      return "Uncheck All";    
   }  else {
      for (i = 0; i < field.length; i++) {
         field[i].checked = false; 
      }
      checkflag = "false";
      return "Check All";
   }
}
