// JavaScript Document
function fullScreen(){
        var resizeMaxHeight = 1050; //max window size height
        var resizeMaxWidth = 1680; //max window size width
        var userHeight = screen.availHeight; 
        var userWidth = screen.availWidth;
        windowSizeHeight = (userHeight>resizeMaxHeight) ? resizeMaxHeight : userHeight;
        windowSizeWidth = (userWidth>resizeMaxWidth) ? resizeMaxWidth : userWidth;
        if (document.all) {
            window.resizeTo(windowSizeWidth,windowSizeHeight);	
        }
        else if (document.layers||document.getElementById) {
                top.window.resizeTo(windowSizeWidth,windowSizeHeight); //for safari
                top.window.outerHeight = windowSizeHeight;
                top.window.outerWidth = windowSizeWidth;
        }
	    var xWinPos = yWinPos = 0;
        yWinPos = (userHeight>resizeMaxHeight) ? ((userHeight-windowSizeHeight)/2) : 0;
        xWinPos = (userWidth>resizeMaxWidth) ? ((userWidth-windowSizeWidth)/2) : 0;
        top.window.moveTo(xWinPos,yWinPos);
}
for(i=0;i<2;i++){
	fullScreen();
}