﻿function openNewsWin(nextpage) {
	popup=window.open(nextpage,'news','width=500,height=400,top=80,left=10,toolbar=no,resizable=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes');
    	if (!popup.opener)
    		popup.opener = self;
	popup.focus();
}

function winopen(tlink,w,h)
{
    var DCIP = window.open(""+tlink+"","newsWindow","toolbar=no,scrollbars=yes,fullscreen=no,menubar=no,titlebar=yes,directories=no,resizable=yes,status=no,top=10,left=10,width="+w+",height="+h+",screenX=0,screenY=0");
    DCIP.window.focus();
}

function NewWindow(mypage, myname, w, h, scroll) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
