﻿var newWindows;
function newPopup(url, formName, width, height)
{
var x = (screen.width - width) / 2;
var y = (screen.height - height) / 2;
newWindows = window.open(url,formName,"toolbar=no,width=" + width + ",height=" + height + ",scrollbars=yes");
newWindows.moveTo(x, y);
newWindows.focus();
return false;
}
function closePopup()
{
window.close();
//opener.window.location.reload(true);
opener.window.focus();
}
function refresh(url)
{
window.location = url;
}
function checkPopup()
{
if (opener == null)
{
document.write("You are not be able to load this page!");
}
}
function refreshParent()
{
opener.window.location.reload(true);
window.focus();
}
