//determine browser
function NetscapeNavigator() {
	return (navigator.appName == "Netscape")
}

function MicrosoftInternetExplorer() {
	return (navigator.appVersion.indexOf("MSIE") != -1)
}

function OpenNewWindow(strFileName)
{
	if (NetscapeNavigator()){
		windowName = window.open(strFileName, 'New','width=600,height=500,status=0,toolbar=1,screenX=180,screenY=50,menubar=0,resizable=0,scrollbars=1');
    	windowName.focus();
	}
	if (MicrosoftInternetExplorer()){
		javascript:void(window.open(strFileName, '', 'toolbar=1, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0,width=600,height=500,left=180,top=50'));
	}
}

/**
 * resize.js 0.3 970811
 * by gary smith
 * js component for "reloading page onResize"
 */

if(!window.saveInnerWidth) {
  window.onresize = resize;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resize() {
    if (saveInnerWidth < window.innerWidth || 
        saveInnerWidth > window.innerWidth || 
        saveInnerHeight > window.innerHeight || 
        saveInnerHeight < window.innerHeight ) 
    {
        window.history.go(0);
    }
}
