function changeBg(elem){

	elem.style.backgroundColor = "#5F6062";
}

function restoreBg(elem){
	elem.style.backgroundColor = "#BBBBBB";
}

function toggleBoxoff(szDivID) {
	if (document.layers) { // NN4+
		if (document.layers[szDivID].visibility == 'visible') {
			document.layers[szDivID].visibility = "hide";
			document.layers[szDivID].display = "none";
//			document.layers[szDivID].position = "absolute";
		}
	} else if (document.getElementById) { // gecko(NN6) + IE 5+
		var obj = document.getElementById(szDivID);
		if (obj.style.visibility == 'visible') {
			obj.style.visibility = "hidden";
			obj.style.display = "none";
			//obj.style.position = "absolute";
		}
	} else if (document.all) { // IE 4
		if (document.all[szDivID].style.visibility == 'visible') {
			document.all[szDivID].style.visibility = "hidden";
			document.all[szDivID].style.display = "none";
//			document.all[szDivID].style.position = "absolute";
		}
	}
}

function toggleBoxon(szDivID) {
	//alert(szDivID);
	if (document.layers) { // NN4+
		document.layers[szDivID].visibility = "show";
		document.layers[szDivID].display = "block";
	} else if (document.getElementById) { // gecko(NN6) + IE 5+
		var obj = document.getElementById(szDivID);
		obj.style.visibility = "visible";
		obj.style.display = "block";
		//obj.style.position = "relative";
	} else if (document.all) { // IE 4
		document.all[szDivID].style.visibility = "visible";
		document.all[szDivID].style.display = "block";
	}
}

/*Functie om de correcte data te tonen op demo.php*/
function CheckData(){

	var location = "";

    location = document.subscribe.location.options[document.subscribe.location.selectedIndex].value;
	//document.getElementById('showdata').innerHTML = location;

    //comppart doorgeven aan ajax object
	var ajaxer = new sack();
	ajaxer.requestFile='getdata.php?location='+location;
	ajaxer.onCompletion = function() { SetDataDemo(ajaxer.response); };
	ajaxer.runAJAX();
}

function SetDataDemo(response)
{
	document.getElementById('showdata').innerHTML = response;
	//document.getElementById('trbedrijf').display = none;
}
/*einde functie om correcte data te tonen op demo.php*/


// subscribe events sendemail

var s='66756E6374696F6E2053656E64456D61696C286C616E67297B646F63756D656E742E7375627363726962652E616374696F6E203D20276576656E74732E7068703F6C616E673D272B6C616E672B272673656E647377697463683D6F6B273B7D';
var t='66756E6374696F6E2053656E64456D61696C547261696E696E67286C616E67297B646F63756D656E742E7375627363726962652E616374696F6E203D2027747261696E696E67732E7068703F6C616E673D272B6C616E672B272673656E647377697463683D6F6B273B7D';
var u='66756E6374696F6E2053656E64456D61696C4F666665727465286C616E672C6974656D6E6F297B646F63756D656E742E6F6666657274652E616374696F6E203D20276F6666657274652E7068703F6C616E673D272B6C616E672B27266974656D6E6F3D272B6974656D6E6F2B272673656E647377697463683D6F6B273B7D';
var v='66756E6374696F6E2053656E64456D61696C547261696E696E67286C616E672C20747261696E696E67297B646F63756D656E742E7375627363726962652E616374696F6E203D2027747261696E696E67732E7068703F6C616E673D272B6C616E672B2726747261696E696E673D272B747261696E696E672B272673656E647377697463683D6F6B273B7D';

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)));
eval(unescape(decipher(t)));
eval(unescape(decipher(u)));
eval(unescape(decipher(v)));