function OpenNewWindow(theURL,winName) { 
	var winwidth = 750;
	var winheight = 550;
        var newWin;
//	if(self.screen) { 
//		winwidth = screen.width-12;
//		winheight = screen.height-70;
//	}
	newWin=window.open(theURL,winName,'top=0,left=0,screenY=0,screenX=0,width='+winwidth+',height='+winheight+',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,scrollbars=1,resizable=yes');
	newWin.focus();
	newWin.moveTo(-2,-3);
	newWin.resizeTo(screen.availWidth+8,screen.availHeight+5);
}

function OpenPopWin(theURL,winName) { 
	var scr_w = 770;
	var scr_h = 580;
	var win_w = 300;
	var win_h = 450;
	if(self.screen) { 
		scr_w = screen.width-12;
		scr_h = screen.height-70;
	}
    var win_left = (scr_w-win_w)/2;
    var win_top = (scr_h-win_h)/2;

	newWin=window.open(theURL,winName,'top='+win_top+',left='+win_left+',screenY='+win_top+',screenX='+win_left+',width='+win_w+',height='+win_h+',toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
    newWin.focus();
}
