function pop (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a, 'Pop', 'toolbar=0,location=0,status=0,resizable=yes,menubar=0,scrollbars=YES,scrollbars=1,height=590,width=436,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=0,location=0,status=0,resizable=yes,menubar=0, scrollbars=YES,scrollbars=1,height=573,width=453,top=0,left=0');
		mini.focus();
	}
}

function zoom (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Zoom','toolbar=0,location=0,status=0,resizable=yes,menubar=0,scrollbars=YES,scrollbars=1,height=600,width=600,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Zoom','toolbar=0,location=0,status=0,resizable=yes,menubar=0, scrollbars=YES,scrollbars=1,height=630,width=600,top=0,left=0');
		mini.focus();
	}
}

function printpop (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a, 'Printpop', 'toolbar=0,location=0,status=0,resizable=yes,menubar=1,scrollbars=YES,scrollbars=1,height=590,width=566,top=0,left=0');
		mini.focus();
		mini.print();
	}
	else{
		mini=window.open(a, 'Printpop', 'toolbar=0,location=0,status=0,resizable=yes,menubar=1, scrollbars=YES, scrollbars=1, height=590, width=564, top=0, left=0');
		mini.focus();
		mini.print();
	}
}
// Open popup window for common service contacts
function popupcontacts(path) {
	if (path != "") {
            // closeAllPopups(false);
            path = path;
            contactwindow = window.open(path, "contactsSelect", 'width=621,height=600,screenX=100,screenY=20,left=100,top=20,resizable=no,scrollbars=yes');
            contactwindow.focus();
	}
}

function makeRemote(dateiname) {
remote = window.open("","remotewin",'toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=520,width=475,top=0,left=0');
remote.location.href = dateiname
if (remote.opener == null) remote.opener = window;
remote.opener.name = "opener";
}
function go(url) {
opener.location.href = url;
}

var i=0, sw=screen.width*100/100, sh=screen.height*100/100;
function resize() {
if (navigator.appName == 'Netscape') i=0;
nw = 385 + ((document.closeButton.width > document.articleImage.width) ? document.closeButton.width : document.articleImage.width);
nh = document.articleImage.height + 340 - i;
if(nw>sw) nw = sw;
if(nh>sh) nh = sh;
window.resizeTo(nw, nh);
nx = screen.width/2 - nw/2;
ny = screen.height/2 - nh/2;
window.moveTo(nx, ny);
}

function loadinparent(url){
    try{
        if( self.opener.closed )
           throw "hasNotOpener";
        else
           throw "hasOpener";
    } catch(hasOpener) {
        if( hasOpener == "hasNotOpener" ) {
            newwindow = window.open(url,"newInternet");
            newwindow.focus();
        } else {
               self.opener.location = url;
               self.opener.focus();
          }
    }
}
