// ---------------------------------------------------------------------------------------------
// if our site is in some else's frameset
function breakOut() 
{
	if (top.frames.length != 0) 
	{
		if (document.images)
		{
		  	top.location.replace(self.location);
		} else {
			top.location = self.location;
		}
	}
}

// ---------------------------------------------------------------------------------------------
// confirmation message
function confirmLink( theLink, confirmMsg )
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }
    var is_confirmed = confirm(confirmMsg);
    if (is_confirmed) {
        theLink.href;
    }

    return is_confirmed;
} 

// ---------------------------------------------------------------------------------------------
// open a new window 

function popUp( location, width, height )
{
	var timeWindow = window.open( location, "gWindow", "history=no,resizable, location=no,screenX=75, screenY=150,scrollbars=no,width=" + width + ",height=" + height + "" );
}

// ---------------------------------------------------------------------------------------------
// netscape resize fix
function reloadPage( init ) 
{
	if (init==true) with (navigator) 
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
		{
		document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; 
		}
	}
	else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);