	function doStart()
	{
		var uploadobj = document.getElementById('myuploader');
		if (uploadobj.getqueuecount() > 0)
		{
			uploadobj.startupload();
		}
		else
		{
			alert("Please browse files for upload");
		}
	}

function getElement(aID) {
	var element = null;
	if (document.getElementById) {
		 element = document.getElementById(aID);
	} else if (document.layers) {
		element = document.layers[aID];
	} else if (document.all) {
		element = document.all[aID];
	}
	return element;
}

function toggleAdd(what) {
	var b = getElement("add_"+what);
	if(b.style.display=="block") {
		b.style.display = "none";
	} else {
		b.style.display = "block";
	}
}

function openPic(link, ww, hh) {
	var w = (screen.availWidth-100);
	var h = (screen.availHeight-100);
	w = Math.min(w, ww);
	h = Math.min(h, hh);
	var l = Math.round((screen.availWidth-w)/2);
	var t = Math.round((screen.availHeight-h)/2);
	window.open("http://www.jokertoernooi.nl/"+link, "_blank", "directories=no,location=no,menubar=no,toolbar=no,status=no,width="+w+",height="+h+",left="+l+",top="+t);
	return false;
}
