// JavaScript Document

function imageSwap(img,ref) {   document.images[img].src = ref; }
function imageRestore(img,ref) {  document.images[img].src = ref; }

function changeContent(ref, content){
	//alert(ref+" "+content);
	document.getElementById(ref).innerHTML = content;
}

function openWindow(page,w,h) {
  lpx = (screen.width - w)/2;
  tpx = (screen.height - h)/2;
  window.open(page, "spiel", "width="+w+", height="+h+", left="+lpx+", top="+tpx+", menubar=no, status=no, resizable=no, scrollbars=no");
}
function playAgain(){
	this.close();
	openWindow('game.htm', '950', '720');

}
