function no_error() { return true; } //window.onerror=no_error; function clearForm() { volltext(0); volltext(1); volltext(2); getValue(); changeDate(); } function volltext(type) { if (type==0) { if (document.forms['theform']._stichwort.value.length>0) document.forms['theform'].stichwort.value = "~"+escape (document.forms['theform']._stichwort.value); else document.forms['theform'].stichwort.value = ""; } if (type==1) { if (document.forms['theform']._ktit.value.length>0) document.forms['theform'].ktit.value = "~"+escape (document.forms['theform']._ktit.value); else document.forms['theform'].ktit.value = ""; } if (type==2) { if (document.forms['theform']._tbkid.value.length>0) document.forms['theform']['kd.tbkid'].value = "~"+escape (document.forms['theform']._tbkid.value); else document.forms['theform']['kd.tbkid'].value = ""; } } function getValue() { if (document.forms['theform']._geb.value.length>0) document.forms['theform'].geb.value = "<="+document.forms['theform']._geb.value; else document.forms['theform'].geb.value = ""; } function changeDate() { if (document.forms['theform']._kbeginn.value.length>0) { document.forms['theform'].kbeginn[0].value = ">="+document.forms['theform']._kbeginn.value; document.forms['theform'].kbeginn[1].value = "<="+document.forms['theform']._kende.value; } else { document.forms['theform'].kbeginn[0].value = ""; document.forms['theform'].kbeginn[1].value = ""; } if (document.forms['theform']._kende.value.length>0) { document.forms['theform'].kende.value = "<="+document.forms['theform']._kende.value; document.forms['theform'].kbeginn[1].value = "<="+document.forms['theform']._kende.value;; } else { document.forms['theform'].kende.value = ""; document.forms['theform'].kbeginn[1].value = ""; } } function submit_it() { newUrl = "anzeige_anzahl.html?_stats=none&"; for (i=0; i < document.theform.length; i++) { if (document.theform.elements[i].type == "submit") { } else if (document.theform.elements[i].type == "hidden" && document.theform.elements[i].value.length > 0) { newUrl = newUrl + "&"; newUrl = newUrl + document.theform.elements[i].name; newUrl = newUrl + "="; newUrl = newUrl + escape (document.theform.elements[i].value); } else if (document.theform.elements[i].type == "select-one") { for (j=1;j 0) { newUrl = newUrl + "&"; newUrl = newUrl + document.theform.elements[i].name; newUrl = newUrl + "="; newUrl = newUrl + escape (document.theform.elements[i][j].value); } } } else if (document.theform.elements[i].type == "text") { newUrl = newUrl + "&"; newUrl = newUrl + document.theform.elements[i].name; newUrl = newUrl + "="; newUrl = newUrl + escape (document.theform.elements[i].value); } } document.getElementById("anzahl").src=newUrl; // document.anzahl.location.href = newUrl; } function submit_form(fname, fitem, btext) { if (!btext) { if (document.forms[fname][fitem][0].selected) return false; document.forms[fname].submit(); return true; } else if (document.forms[fname][fitem].value.length>2) { document.forms[fname].submit(); return true; } return false; } function viewCnt(fname, fitem) { var newUrl = "anzeige_anzahl.html?"; var _word = escape(document.forms[fname][fitem].value); newUrl+=(fitem+"="+_word); document.getElementById("anzahl").src=newUrl; // document.anzahl.location.href = newUrl; }