var myWindow=null;

function boxLessWindow(url) {
    if (myWindow!=null)
	myWindow.close();
    var width = 400;
    var height = 425;
    var left = parseInt((screen.availWidth/1.5) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status=no,toolbar=no,resizable=no,location=no,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
    myWindow=window.open(url, "subWind", windowFeatures);
}
function boxLessWindowBig(url) {
    if (myWindow!=null)
	myWindow.close();
    var width = 600;
    var height = 600;
    var left = parseInt((screen.availWidth/1.5) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status=no,toolbar=no,resizable=no,location=no,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
    myWindow=window.open(url, "subWind", windowFeatures);
}

function resizeBack(){
window.resizeTo(400,400)
}



