if (window != top) {
	top.location.href = window.location.href;
}
function openWin(aHref)
{
    var iScreenWidth = window.screen.width;
    var iScreenHeight = window.screen.height;
    var iWidth = 620;
    var iHeight = 420;
	if(screen.availWidth > iWidth) {
		iWidth = screen.availWidth-100;
	}
	if(screen.availHeight > iHeight) {
		iHeight = screen.availHeight-200;
	}
    var iScreenX = (iScreenWidth-iWidth)/2;
    var iScreenY =(iScreenHeight-iHeight)/2;
    //alert(iScreenWidth);
    //alert(iWidth);
    //alert(iScreenX);
    //alert(iScreenY);
    if(iScreenX < 0) {
        iScreenX = 0;
    }
    //alert(iScreenX);
    var s = "width=" + iWidth +",height="+ iHeight +",scrollbars=yes,resizable=yes,dependent=yes,directories=no,location=no,menubar=no,status=yes,toolbar=no,screenX=" + iScreenX + ",screenY=" + iScreenY;
    //window.open(aHref, "fonstretsNamn", "width=" + iWidth +", height="+ 470);
    window.open(aHref, "fonstretsNamn", s);
    return false;
}

/*
var goWindow = null;
function openhelp(aHref){
    var s = "width=600,height=440,scrollbars=yes,resizable=yes";
    if(goWindow == null) {
        goWindow = window.open(aHref.href,"helpwindow",s);
    }
    else if(goWindow.closed) {
        goWindow = window.open(aHref.href,"helpwindow",s);
    }
    else {
        goWindow.focus();
        goWindow.location.hash=aHref.hash;
    }
    return false;
}
*/