// JavaScript Document

var win = null;
function NewWin(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


function popUp(URL, WinTitle, WinWidth, WinHeight, WinLeft, WinTop)
{
	attr = "resizable=no,width=" + WinWidth + ",height=" + WinHeight + ",screenX=" + WinLeft + ",screenY=" + WinTop + ",left=" + WinLeft + ",top=" + WinTop + "";
	msgWindow=open(URL, WinTitle, attr);
	if (msgWindow.opener == null) msgWindow.opener = self;
}

function closePopUp(file){
    top.opener.window.location.href = file;
	window.close();
}

function openLinkClosePopup(url) {
    x = window.open(url,'newWinName','features')
    self.close()
  }


function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1000,height=800');");
}