if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

var win = null;
var isIE3 = (navigator.appVersion.indexOf("MSIE 3") != -1) ? true: false 
function NewWindow(mypage,myname)
{ 
win = window.open(mypage,myname,"width=820,resizable,location,toolbar,scrollbars,menubar,personalbar,directories,status=yes") 
if (win.opener == null)	{ 
			win.opener = window 
		} else 
		win.focus() 
} 
function closeNewWindow()	{ 
	if (isIE3)	{ 
	win=window.open("","subWindow","HEIGHT=200",WIDTH="200") 
	} 
	if (win && !win.closed)	{ 
		win.close() 
		} 
} 

function openDir( form ) { 
	var newIndex = form.lang.selectedIndex; 
	if ( newIndex == 0 ) { 
		alert( "Please select a language" ); 
	} else { 
		cururl = form.lang.options[ newIndex ].value; 
		window.location.assign( cururl ); 
	} 
} 

function validateGtrsrch(theForm)
{

  if (theForm.frmIndexName.selectedIndex < 0)
  {
    alert("Please select one of the \"Section\" options.");
    theForm.frmIndexName.focus();
    return (false);
  }

  if (theForm.frmIndexName.selectedIndex == 0)
  {
    alert("The first \"Section\" option is not a valid selection.  Please choose one of the other options.");
    theForm.frmIndexName.focus();
    return (false);
  }

  if (theForm.frmSearchString.value == "" || theForm.frmSearchString.value == null)
  {
    alert("Please enter a value for the \"Search Terms\" field.");
    theForm.frmSearchString.focus();
    return (false);
  }
  if (theForm.frmSearchString.value == " ")
  {
    alert("Please enter a value for the \"Search Terms\" field.");
    theForm.frmSearchString.focus();
    return (false);
  }
  return (true);
}

