function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}


function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 4;
var wint = (screen.height - h) / 4;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}


// function searchBoxFocus()  { 
	// document.mainSearchForm.q.focus();
// }



// function searchBoxFocus()  { 
 // document.form2.nameSearch.focus();
// }



// function searchBoxFocus()  {	
	// if (document.form2.nameSearch) document.form2.nameSearch.focus();
	// else document.mainSearchForm.q.focus();
// }

// function searchBoxFocus() {
 // if(document.form2) { if (document.form2.nameSearch) { do it } }
	
/* function searchBoxFocus() {
	 var searchID=document.getElementById("nameSearch");
	 if (searchID == "nameSearch") document.form2.nameSearch.focus();
	 else document.mainSearchForm.q.focus();
 }*/

 
 /*function searchBoxFocus() {
	 if (var searchID=document.getElementById("nameSearch")) document.form2.nameSearch.focus();
	 else document.mainSearchForm.q.focus();
 }*/
 
 function searchBoxFocus()  {
 	if (document.getElementById('nameSearch'))	 document.getElementById('nameSearch').focus();
	else (document.getElementById('q')); document.getElementById('q').focus();
 }
 
 