
function openCentered( url, target, options, popupWidth, popupHeight )
{	// set the defaults
    var availableWidth = 800;
	var availableHeight = 600;
	var leftFirstPixel = 0;
	var topFirstPixel = 0;

	if( screen.availWidth )
	{
		availableWidth = screen.availWidth;
		availableHeight = screen.availHeight;
	}
	else if( screen.height )
	{
		availableWidth = screen.width;
		availableHeight = screen.height;
	}

	if( screen.availLeft )
	{
		leftFirstPixel = screen.availLeft;
		topFirstPixel = screen.availTop;
	}

	var leftPos =  leftFirstPixel + (availableWidth-popupWidth)/2;
	var topPos = topFirstPixel + (availableHeight-popupHeight)/2;
	var positionOptions ='width='  + popupWidth + ',height=' + popupHeight + ',top=' + topPos + ',left=' + leftPos;

	if( options != '' )
	{
		options = options + "," + positionOptions;
	}
	else
	{
		options = positionOptions;
	}

	window.open( url, target, options );
}

function del(type,id)
	{
		if(confirm("weet u zeker dat u uw account wil verwijderen?")){
			document.location = "/content/doRem.asp?del=1&type="+type+"&id="+id;
		} else {
			return false;
		}
	}
	
function del2(id)
	{
		if(confirm("weet u zeker dat u uw CV wil verwijderen?")){
			document.location = "/content/dOremCV.asp?del=1&id="+id;
		} else {
			return false;
		}
	}
	
function del3(ida,id)
	{
		if(confirm("weet u zeker dat u deze advertentie wil verwijderen?")){
			document.location = "/content/doRemAd.asp?del=1&ida="+ida+"&id="+id;
		} else {
			return false;
		}
	}
	
function sml(a)
	{
		if(!a==""){
			document.frames['mif'].document.infoform.submit();
		} else {
			alert("U heeft geen reactie ingevuld");
			document.frames['mif'].document.infoform.response.value = "vul hier uw reactie in...";
			document.frames['mif'].document.infoform.response.focus();
		}
	}
