
function hideElement(element_id){if(document.getElementById&&document.getElementById(element_id)&&document.getElementById(element_id).style)document.getElementById(element_id).style.visibility="hidden";}
function showElement(element_id){if(document.getElementById&&document.getElementById(element_id)&&document.getElementById(element_id).style)document.getElementById(element_id).style.visibility="visible";}
function getElementValue(element_id){if(document.getElementById&&document.getElementById(element_id)&&document.getElementById(element_id).value)return document.getElementById(element_id).value}
function clearElement(e){if(document.getElementById&&document.getElementById(e)&&document.getElementById(e).value)document.getElementById(e).value="";}
function filtSectorTest(){vacResults('filterBySector|'+getElementValue('selSector'));}
function filtVestTest(){vacResults('filterByVest|'+getElementValue('selVestiging'));}
function restartFilters(_filterConfig){document.filter.selSector.value=_filterConfig;document.filter.selVestiging.value='ALL';filtSectorTest();filtVestTest();}
function restartFilter2(_filterConfig){document.filter.selSector.value=_filterConfig;document.filter.selVestiging.value='ALL';}
function step(v){vacResults('setStep|'+v);}
function doAlert(r){alert(r);}
function doEcho(){var str=$('echoInput').value;$('echoInput').value='';$('echoInput').focus();DWREngine._execute(_ajaxConfig._cfscriptLocation,null,'doEcho',str,doEchoResult);}
function doEchoResult(r){$('nmON').innerHTML=r;}
function vacResults(v){av=v.split("|");DWREngine._execute(_ajaxConfig._cfscriptLocation,null,av[0],av[1],doRResults);}
function f_addOpleiding(){alert('hi, opleiding content moet worden weggeschreven!');}
function doRResults(r){eval(r);}
function ShowCalendar(FormName,FieldName){var fieldval=document.getElementById(FieldName).value;var win=window.open("http://www.werkstudent.nl/snippets/window_datepopup.cfm?FormName="+FormName+"&FieldName="+FieldName+"&DPValue="+fieldval,"DPWindow","width=370,height=300,left=550,top=250");if(win){win.focus();}}
function showHideStuff(r){for(i=1;i<6;++i){if(i==r){showElement('holder'+i);}else{hideElement('holder'+i);}}}
function loadF(){}
