function zekerWeten(sUrl, sMsg)
{
	if ( confirm(sMsg) )
	{
		window.location=sUrl;
	}
}

//IE6 flicker bug solution:
window.onload = function() {
	try {

		document.execCommand("BackgroundImageCache", false, true);

	} catch(err) {}
}

function mailMe(name, domain, extension)
{
  var url;
  url = 'mailto:';
  url += name;
  url += '@';
  url += domain;
  url += '.';
  url += extension;
  window.open(url);
}

function writeMovie(url, autostart)
{
	document.write('<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');
	document.write(' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112"');
	document.write(' standby="loading microsoft windows media player components..." type="application/x-oleobject">');
  document.write('<param name="filename" value="'+url+'">');
  document.write('<param name="showcontrols" value="1">');
  document.write('<param name="showdisplay" value="0">');
  document.write('<param name="showstatusbar" value="1">');
  document.write('<param name="autosize" value="0">');
  document.write('<param name="autostart" value="'+autostart+'">');
  document.write('<param name="autoplay" value="'+autostart+'">');
  document.write('<embed type="application/x-mplayer2"');
  document.write(' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/alldownloads.aspx/"');
	document.write(' filename="'+url+'"');
  document.write(' src="'+url+'"');
  document.write(' name=mediaplayer');
  document.write(' showcontrols=0');
  document.write(' showdisplay=0');
  document.write(' showstatusbar=1');
  document.write(' autostart='+autostart);
  document.write(' autoplay='+autostart);
  document.write('>');
  document.write('</embed>');
	document.write('</object>');
	document.write('<noembed>Your browser does not support embedded video.<br /><a href="'+url+'">View the video</a></noembed>');
}

function openFotoPopup(sUrl)
{
  var width = 650;
  var height = 528;
  // var left = parseInt((screen.availWidth/2) - (width/2));
  // var top = parseInt((screen.availHeight/2) - (height/2));
  var win = window.open(sUrl,'woningFotoPopup','menubar=0,location=0,toolbar=0,scrollbars=0,resizable=1,status=0,width='+width+',height='+height);//+',left='+left+',top'+top);
  win.focus();
}