function openWindow(strUrl,intWidth,intHeight) {
    popupWin=window.open(strUrl,"popup","left=10,top=10,screenX=10,screenY=10,scrollbars=1,resizable=yes,menubar=no,width="+intWidth+",height="+intHeight);
    popupWin.focus()
}

function changeURl(url){
	document.location.href = url;
};

function writeUserScore(numScore){
	var arrScore = new Array();	
	arrScore = numScore.split('')
	var extraEmptys = 6-arrScore.length
	for(i=1;i<=extraEmptys;++i){
		document.write("<img src='/images/sc-0.png'>")
	};
	for(i=0;i<arrScore.length;++i){
		document.write("<img src='/images/sc-"+ arrScore[i] +".png'>")
	};
};

function aanOfUit(object){
	if(object.checked){
		object.checked = false;
	}else{
		object.checked = true;
	};
};



function resize(which, max) {
var elem = document.getElementById(which);
if (elem == undefined || elem == null) return false;
if (max == undefined) max = 100;
if (elem.width> elem.height) {
  if (elem.width> max) elem.width = max;
} else {
  if (elem.height> max) elem.height = max;
}
}
