// JavaScript Document
function GetContentWnd(){ return parent; }	

function OnSave()
{	
	var oWnd = GetContentWnd();
	window.external.addFavorite( oWnd.location.href, oWnd.document.title );
	return true;
}

var windowHandle = ''
function openNewWindow(url)
{
    windowHandle = window.open(url,'','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,directories=yes');
}
var windowHandle = ''
function myOpen(url)
{
        var w = 900, h = 700;

        if (document.all) {
   /* the following is only available after onLoad */
           w = document.body.clientWidth;
           h = document.body.clientHeight;
        }
        else if (document.layers) {
           w = window.innerWidth;
           h = window.innerHeight;
        }

        var popW = 800, popH = 600;

        var leftPos = (w-popW)/2, topPos = (h-popH)/2;

        window.open(url,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=yes,dependent=yes');

}
