// Functions - JavaScript Document

function popupWindow(url, name, width, height)
{
	var load = window.open(url,name,'scrollbars=yes,menubar=no,height='+height+',width='+width+',resizable=yes,toolbar=no,location=no,status=no');
}

function openPopUpWin(popUpName) {
    var xMax = screen.width;
    var yMax = screen.height;
    var xWidth = xMax - 25;
    var yHeight= yMax - 75;

	if(popUpName=="popUp1"){
	    var xWidth = xMax - 25;
    	var yHeight= yMax - 75;
	    var winX = window.open('','popUp1','width='+xWidth+',height='+yHeight+',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes,top=12,left=12,dependent=yes,fullscreen=no,hotkeys=no');
	}
	else{
	    var xWidth = xMax - 25;
    	var yHeight= 750;	
		var winX = window.open('','popUp2','width='+xWidth+',height='+yHeight+',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes,top=350,left=25,dependent=yes,fullscreen=no,hotkeys=no');
	}
    winX.resizeTo(800,600);
    winX.focus();
}
