
function OpenChat(hurl){
	if ((!window.newWin)||(newWin.closed)){
		if (document.all){
			newWin = window.open(hurl, 'Chat', 'scrollbars=0,resizable=0,toolbar=0,menubar=0,status=0,location=0,width=468,height=360,left=0,top=18,titlebar=0');
		}else{
			newWin = window.open(hurl, 'Chat', 'scrollbars=0,resizable=0,toolbar=0,menubar=0,status=0,location=0,width=468,height=360,left=0,top=18');
		}
	}
	newWin.focus();
}


function NewWinGame(myurl){
	t= new Date().getUTCMilliseconds();
	newGameWin = window.open(myurl, 'w'+t , 'resizable=0,width=600,height=460,left=100,top=50,location=0');
	newGameWin.focus();
}


function winChatClose() {
	if (window.newWin){
		newWin.close();
	}
	if (window.newGameWin){
		newGameWin.close();
	}
}
