var IE = document.all?true:false var UserOK //All fields with id filled in are required fields. function cOn(td, color) { if(document.getElementById||(document.all && !(document.getElementById))) { td.style.backgroundColor= color; td.style.cursor = 'pointer'; } } function cOut(td,color) { if(document.getElementById||(document.all && !(document.getElementById))) { td.style.backgroundColor= color; } } //Smooth Resize var timeoutLength = 50; var pixelsPerTick = 20; var originalHeight = 200; function resize(stritem,list) { //status = document.getElementById('content1').offsetHeight; var style = document.getElementById(stritem).style; if (style.display != 'none') { if (document.getElementById(stritem).innerHTML.length>0){ smoothResize1(stritem); } } else { document.getElementById(stritem).style.display = 'block'; var arr = document.getElementById(list).value.split(',') for(var cnt=0;cnt0){ smoothResize2(stritem,originalHeight); //Openklappen } } //status = document.getElementById('content1').offsetHeight; } function smoothResize1(stritem) //Dichtklappen { if ( (parseInt(document.getElementById(stritem).offsetHeight)-pixelsPerTick) <= 0 ) { document.getElementById(stritem).style.display = 'none'; } else { document.getElementById(stritem).style.height = parseInt(document.getElementById(stritem).offsetHeight-pixelsPerTick) + 'px' ; setTimeout("smoothResize1('"+stritem+"')",timeoutLength); } } function smoothResize2(stritem,max) //Openklappen { if ( (document.getElementById(stritem).offsetHeight+pixelsPerTick) >= max ) { document.getElementById(stritem).style.height = max+'px'; } else { document.getElementById(stritem).style.height = document.getElementById(stritem).offsetHeight+pixelsPerTick+'px'; setTimeout("smoothResize2('"+stritem+"',"+max+")",timeoutLength); } } //End smooth Resize function openOverlay(title,url,width,height) { GB_showCenter(title, url, /* optional */ height, width) } function initSIFR() { if(typeof sIFR == "function"){ // header big, black sIFR.replaceElement(named( { sSelector:"h1", sFlashSrc:"http://www.mpl.nl/flash/h1.swf", sColor:"#0D3E66", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); // header big, black sIFR.replaceElement(named( { sSelector:".cursusrow h2", sFlashSrc:"http://www.mpl.nl/flash/h2.swf", sColor:"#777777", sLinkColor:"#777777", sHoverColor:"#303030", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h2.red", sFlashSrc:"http://www.mpl.nl/flash/h2.swf", sColor:"#B33030", sLinkColor:"#B33030", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h2", sFlashSrc:"http://www.mpl.nl/flash/h2.swf", sColor:"#333333", sLinkColor:"#333333", sHoverColor:"#B33030", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h3", sFlashSrc:"http://www.mpl.nl/flash/h3.swf", sColor:"#0D3E66", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); }; } function getCheckboxValue(id) { var allInputTags = document.getElementById(id+'_group').getElementsByTagName('INPUT'); for (var c=0; c'+out.replace('','/object-->')+''; output += '<'+'script type="text/javascript">'; output += 'setTimeout("window.print()",2000);'; output += ''; wh.document.writeln(output); wh.document.close(); } function mozCheck() { if(!IE){ document.getElementById('menu_spacer1').style.width = '1600px'; document.getElementById('menu_spacer2').style.width = '1600px'; document.getElementById('menu_spacer3').style.width = '1600px'; document.getElementById('topnav_container').style.width = '100%'; } } function getSubscribeCount(obj) { if(obj.value=="-1")return; var http_request = GetHttpRequest(); if(!http_request) return false; // Kan geen ajax component aanmaken. var url = "http://www.mpl.nl/xml/getSubscribeCount.xml.asp?id="+obj.value document.getElementById("Eventid").value = obj.value; http_request.onreadystatechange = function() { HandleSubscribeCount(http_request); }; http_request.open('GET', url, true); http_request.send(null); } function HandleSubscribeCount(http_request) { if (http_request.readyState == 4) { if (http_request.status == 200) { var xmldoc = http_request.responseXML; var action_node = xmldoc.getElementsByTagName('count').item(0); document.getElementById('available').value = action_node.firstChild.data; if(Number(action_node.firstChild.data)>0) { document.getElementById('txtAvailable').innerHTML = "

Er zijn nog " + action_node.firstChild.data + " plekken beschikbaar.

"; document.getElementById('formBlock').style.display = 'block'; } else document.getElementById('txtAvailable').innerHTML = '

Voor deze cursus zijn geen plekken meer beschikbaar.

' } } }