//---------------------------------------------------------------------
function startGame(){
	popOkoshko=window.open("dniputinchess0.html","Chess",
			"top=40,left=40,width=380,height=380,resizable=0,scrollbars=0"); 
	popOkoshko.focus(); 
}

function startGame2(){
	popOkoshko=window.open("dniputinchess0.html","Chess",
			"top=40,left=40,width=380,height=430,resizable=0,scrollbars=0"); 
	popOkoshko.focus(); 
}


//-------------------------------------------------------------------------
function openRatingWindow(myURL) {
	my_width=400;
	my_height=screen.height*0.85;
	my_left=(screen.width-my_width)/2;
	myRating=window.open(myURL,'Scores','toolbar=no,bar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+my_width+',height='+my_height+',top=0,left='+my_left);
	myRating.focus();
}

//--------------------------------------------------------------------
function openPutinChessRuWindow() {
	myURL="index.html";
	my_width=screen.width;
	my_height=screen.height;
	myMain=window.open(myURL,'PutinChessMain','toolbar=yes,bar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=0,left=0');
	//
	myMain.focus();
}

//-------------------------------------------------------------------------
function openPravilaWindow() {
	myURL="pravila.html";
	my_width=400;
	my_height=220;
	my_left=(screen.width)/3;
	myPravila=window.open(myURL,'Pravila','toolbar=no,bar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+my_width+',height='+my_height+',top=150,left='+my_left);
	myPravila.focus();
}


//------------------------------------------------------------------------
function message(message){
alert(message);
}

//----------------------------------------------------------------------
function closeMain(){
myNewWindow.close();
}
