function OpenNewWindow(theURL,winName) { 
	var winwidth = 750;
	var winheight = 550;
	var newWin;
	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=no,scrollbars=0,resizable=yes');
	newWin.focus();
	newWin.moveTo(0,0);
	newWin.resizeTo(screen.availWidth,screen.availHeight);
}

function OpenPopWin(theURL,winName) { 
	var scr_w = 770;
	var scr_h = 580;
	var win_w = 450;
	var win_h = 500;
	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=no,resizable=yes');
    newWin.focus();
}
