var blurstatus = false; var wostatus = false; function clearSuchmaske() { document.suchmaske.reset(); // clearBerufsfelder(); clearPosition(); // document.suchmaske.st.value = 'Begriff eingeben'; document.suchmaske.uh.value = ''; document.suchmaske.uo.value = 'Ort oder Postleitzahl'; document.getElementById('bfselectdiv').innerHTML = '
Keine Einschränkung<\/div>'; } function checkSuchmaske() { // Berufsfelder countBerufsfelder(); // Qualifikation var gaCount = 0; try { for ( var i=0; i 0 ) { document.aga.src=(document.aga.src.match(/icon_plus.png/) ? '/pics/icon_minus.png' : '/pics/icon_plus.png'); document.getElementById('gadiv').style.display=(document.aga.src.match(/icon_plus.png/) ? 'none' : ''); } } catch(e) {} // Position var beCount = 0; for ( var i=0; i 0 ) { document.abe.src=(document.abe.src.match(/icon_plus.png/) ? '/pics/icon_minus.png' : '/pics/icon_plus.png'); document.getElementById('bediv').style.display=(document.abe.src.match(/icon_plus.png/) ? 'none' : ''); } } function clearPosition() { for ( var i = 0; i -1) && (countstart < parentcount) ) { countstart++; if ( document.suchmaske.elements['bf[]'][i].checked === true ) { counttrue++; } } } if ( counttrue == (parentcount-1) ) { document.suchmaske.elements['bf[]'][parentstart].checked = true; } } countBerufsfelder(); } function countBerufsfelder() { var count = 0; var ausgabe = "
Keine Einschränkung<\/div>"; // for ( var i = 0; i 0 ) ausgabe = "
Gewählte Berufsfelder: " + count + "<\/strong><\/div>"; // document.getElementById('bfselectdiv').innerHTML = ausgabe; } function clearBerufsfelder() { for ( var i = 0; i]*>]*>(.*?)<\/a><\/div>/gi; var Ergebnis; while ( Ergebnis = Suche.exec(content) ) { Counter++; } if ( Counter > maxCount ) Counter = maxCount; return Counter; } function macheWas(destination, content) { var menge = checkContent(content); if ( menge == 0 ) { menge = 1; wostatus = false; } else { wostatus = true; } document.getElementById(destination).innerHTML = content; document.getElementById(destination).style.height = ((menge*18) + 9) + "px"; document.getElementById(destination).style.display = ''; } function getWo(wostring) { // check ob PLZ oder Ort if ( wostring.length > 1 ) { // Loader Grafik document.getElementById('wodiv').style.height = "24px"; document.getElementById('wodiv').innerHTML = '0'; document.getElementById('wodiv').style.display = ''; // Request if ( wostring.match(/[0-9]/i) ) { // PLZ Request ajaxContent('/st/hubsite/ajax/orteplz.php', 'POST', 'type=1&q=' + wostring, 'wodiv', 'macheWas()', 'html'); } else if ( wostring.match(/[0-9a-zöäüß\- ]/i) ) { // ORT Request ajaxContent('/st/hubsite/ajax/orteplz.php', 'POST', 'type=2&q=' + wostring, 'wodiv', 'macheWas()', 'html'); } else { blurstatus = false; wostatus = false; document.getElementById('wodiv').style.height = "24px"; document.getElementById('wodiv').innerHTML = '
Keine Treffer gefunden!<\/strong><\/div>'; document.getElementById('wodiv').style.display = ''; } } else { blurstatus = false; wostatus = false; document.getElementById('wodiv').style.display = 'none'; } } function changeValue( domElement, elementValue ) { if ( domElement.value == elementValue ) { domElement.value = ''; domElement.style.color = '#484848'; } else if ( domElement.value == '' ) { domElement.value = elementValue; domElement.style.color = '#a8a8a8'; } } function evalKeyForSubmit(event, frm) { if ( event && ( (event.which == 13) || (event.keyCode == 13) ) ) { document.getElementById('easyfinder:suchen').onclick(); } return true; }