function showImage(img){

 newWindow("/pages/image/?"+img,600,400,'image','toolbar=no,status=no,resizable=no,scrollbars=no');
}
function showUV(){
 newWindow("/html/uploadvoorwaarden.htm",500,400,'uv','toolbar=no,status=no,resizable=no,scrollbars=yes');
}
function showAVWarChild(){
 newWindow("/html/voorwaardenWarChild.htm",500,400,'uv','toolbar=no,status=no,resizable=no,scrollbars=yes');
}
function showAVDance(){
 newWindow("/html/voorwaardenDance.htm",500,400,'uv','toolbar=no,status=no,resizable=no,scrollbars=yes');
}
function editTag(tag){
 newWindow("/cms/config/tags/?fromsite=1&search="+ tag,750,350,'editTag','toolbar=no,status=no,resizable=no,scrollbars=yes');
}
function newWindow(url,width,height,name,props){
  if(!props){
  	var properties = "width="+width+",height="+height+",toolbar=no,status=no,resizable=yes,scrollbars=yes";
 }else{
   var properties = "width="+width+",height="+height+","+props;
 }
  	var screenY = window.screen.availHeight;
  	var screenX = window.screen.availWidth;
  	var leftvar = Math.round((screenX - width) / 2);
  	var rightvar = Math.round((screenY - height) / 2);
  	properties += ",left=" + leftvar +",top=" + rightvar;
 
	popupHandle = window.open(url,name, properties);
	setTimeout('popupHandle.focus();',250);
}
//-----------------

function goSearch(page) {
	var theform = document.playlist;
	    theform.page.value = page;
		theform.submit();
  }
 function centerWin()
	{
	w = (screen.availWidth - document.body.clientWidth) / 2 
	h = (screen.availHeight - document.body.clientHeight) / 2 
	window.moveTo(w, h)
	}
function cnfrm(url) {
	if (confirm("Weet je zeker dat je dit item wilt verwijderen \n\nDeze actie kan niet ongedaan gemaakt worden.")) {
		location.href=(url);
	}
}