<!-- 

function fillLayer (Layer1, Layer2) {
	if ((document.getElementsByTagName("body")[0] != null || document.body != null) && document.getElementById(Layer1) != null && document.getElementById(Layer2) != null) {
		document.getElementById(Layer2).innerHTML = document.getElementById(Layer1).innerHTML;
	}
}

function clearLayer (Layer1) {	
	if ((document.getElementsByTagName("body")[0] != null || document.body != null) && document.getElementById(Layer1) != null) {
		document.getElementById(Layer1).innerHTML = '';
	}
}

PositionX = 100;
PositionY = 100;

defaultWidth  = 660;
defaultHeight = 660;

var AutoClose = true;

function popImage(imageURL,imageTitle) {
	if (parseInt(navigator.appVersion.charAt(0))>=4) {
		var isNN=(navigator.appName=="Netscape")?1:0;
		var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
	}	
	
	if (isNN){imgWin=window.open('about:blank','','scrollbars=no,width=660,height=660,left=100,top=100');}
	if (isIE){imgWin=window.open('about:blank','','scrollbars=no,width=150,height=100,left=100,top=100');}

	with (imgWin.document){
		writeln('<html><head><title>'+imageTitle+'</title><style>body{margin:0px;}</style>');
		writeln('<sc'+'ript>');
		writeln('var isNN,isIE;');
		writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
		writeln('isNN=(navigator.appName=="Netscape")?1:0;');
		writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
		writeln('function reSizeToImage(){');
		writeln('if (isIE){');
		writeln('window.resizeTo(300,300);');
		writeln('width=300-(document.body.clientWidth-document.images[0].width);');
		writeln('height=300-(document.body.clientHeight-document.images[0].height);');
		writeln('window.resizeTo(width,height);}');
		writeln('if (isNN){');       
		writeln('window.innerWidth=document.images["image"].width;');
		writeln('window.innerHeight=document.images["image"].height;}}');
		writeln('</sc'+'ript>');
		writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();self.focus()">')
		writeln('<img name="image" name="'+imageTitle+'" alt="'+imageTitle+'" src='+imageURL+' style="display:block" onclick="window.close()"></body></html>');
		close();
	}
}

function bereken(theElement)
{
	var theForm = theElement.form, z = 0, k=9.95;
	for(z=0; z<theForm.length;z++) {
		if(theForm[z].type == 'checkbox') {
			if(theForm[z].name == 'profiel' && theForm[z].checked) { k = k + 0 }
			if(theForm[z].name == 'weblink' && theForm[z].checked) { k = k + 3 }
			if(theForm[z].name == 'logo' && theForm[z].checked) { k = k + 2 }
			if(theForm[z].name == 'onbeperkt' && theForm[z].checked) { k = k + 10 }
	 	}
	}
	document.getElementById('bedragm').innerHTML = formatCurrency(k);
	document.getElementById('bedragj').innerHTML = formatCurrency(k * 12);
}
function checkPakket()
{
	if (document.getElementById('bedragm').innerHTML == "9,95") {
		var blnverder = confirm("U heeft geen opties gekozen. \n Weet u zeker dat u verder wilt?");
		if (blnverder) {
			return true;
		} else {
			return false;
		}
	}
}
function formatCurrency(strValue)
{
	strValue = strValue.toString().replace(/\$|\,/g,'');
	dblValue = parseFloat(strValue);

	blnSign = (dblValue == (dblValue = Math.abs(dblValue)));
	dblValue = Math.floor(dblValue*100+0.50000000001);
	intCents = dblValue%100;
	strCents = intCents.toString();
	dblValue = Math.floor(dblValue/100).toString();
	if(intCents<10)
		strCents = "0" + strCents;
	for (var i = 0; i < Math.floor((dblValue.length-(1+i))/3); i++)
		dblValue = dblValue.substring(0,dblValue.length-(4*i+3))+','+
		dblValue.substring(dblValue.length-(4*i+3));
	return (((blnSign)?'':'-') + dblValue + ',' + strCents);
}
function confirmBox(strMsg, strRedirect) {
	if (confirm(strMsg)) { window.location = strRedirect; }
}
//-->