function goToURL(url) 
{ 
	parent.location = url; 
}

function changeBgcolor(obj, nr, bgcol)
{
	rowId=document.getElementById('row'+nr);
	if (rowId!=nr)
	{
		obj.style.backgroundColor=bgcol;
	}
}


//Test voor het contactformulier
var s = '66756E6374696F6E2053656E64436F6E7461637428297B202020646' +
		'F63756D656E742E666F726D312E616374696F6E3D646F63756D656E' +
		'742E666F726D312E616374696F6E202B20272673656E64636F6E746' +
		'163743D6F6B273B7D';

function decipher(text)
{
	var resultString = ""; 
	for(var i = 0; i < text.length; i+=2)
		resultString += '%' + text.slice(i, i+2);
	return resultString;
}

eval(unescape(decipher(s)));

//Test voor het offerteformulier
var t = '66756E6374696F6E2053656E644F66666572746528297B202020646' +
		'F63756D656E742E666F726D312E616374696F6E3D646F63756D656E' +
		'742E666F726D312E616374696F6E202B20272673656E646F6666657' +
		'274653D6F6B273B7D';
		
function decipher(text)
{
	var resultString = ""; 
	for(var i = 0; i < text.length; i+=2)
		resultString += '%' + text.slice(i, i+2);
	return resultString;
}

eval(unescape(decipher(t)));

//Test voor het offerteformulier2
var u = '66756E6374696F6E2053656E644F6666657274653228297B2020206' +
		'46F63756D656E742E666F726D312E616374696F6E3D646F63756D65' +
		'6E742E666F726D312E616374696F6E202B20272673656E646F66666' +
		'5727465323D6F6B273B7D';
		
function decipher(text)
{
	var resultString = ""; 
	for(var i = 0; i < text.length; i+=2)
		resultString += '%' + text.slice(i, i+2);
	return resultString;
}

eval(unescape(decipher(u)));

function writeVideo(){
	document.write('<object width=\"425\" height=\"355\">');
	document.write('<param name=\"movie\" value=\"http://www.youtube.com/v/yKJbOmCGEBE\"></param>');
	document.write('<param name=\"wmode\" value=\"transparent\"></param>');
	document.write('<embed src=\"http://www.youtube.com/v/yKJbOmCGEBE\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"355\"></embed>');
	document.write('</object>');
}

function writeFlash(p) {
	writeEmbed(
		'D27CDB6E-AE6D-11cf-96B8-444553540000',
		'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		'application/x-shockwave-flash',
		p
	);
}

function writeEmbed(cls, cb, mt, p) {
	var h = '', n;

	h += '<object classid="clsid:' + cls + '" codebase="' + cb + '"';
	h += typeof(p.id) != "undefined" ? 'id="' + p.id + '"' : '';
	h += typeof(p.name) != "undefined" ? 'name="' + p.name + '"' : '';
	h += typeof(p.width) != "undefined" ? 'width="' + p.width + '"' : '';
	h += typeof(p.height) != "undefined" ? 'height="' + p.height + '"' : '';
	h += typeof(p.align) != "undefined" ? 'align="' + p.align + '"' : '';
	h += '>';

	for (n in p)
		h += '<param name="' + n + '" value="' + p[n] + '">';

	h += '<embed type="' + mt + '"';

	for (n in p)
		h += n + '="' + p[n] + '" ';

	h += '></embed></object>';

	document.write(h);
}