//reloads the window if Netscape4 resized
function MM_reloadPage(init) 
{
	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);


// opens new popup window
var newWin=null;

function newWindow(sURL)
{
	if(newWin && !newWin.closed)
	{
		newWin.close();
	}
	newWin=window.open(sURL,"new","height=550,resizable=yes,screenX=30,screenY=30,top=30,left=30,scrollbars=yes,width=650");	
}


// automatically places the cursor in the first input box
function placeFocus() 
{
	if (document.forms.length > 0) 
	{
		var field = document.forms[0];
		for (i = 0; i < field.length; i++) 
		{
			if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) 
			{
				document.forms[0].elements[i].focus();
				break;
     		}
  		}
	}
}

// function for rollovers
function imgOff(imgName)
{
	document.images[imgName].src = eval(imgName + "off.src");
}

function imgOver(imgName)
{
	document.images[imgName].src = eval(imgName + "over.src");
}
