function ClearForm() { var FieldType; for (var i = 0; i < document.EditForm.length; i++) { FieldType = document.EditForm.elements[i].type if (FieldType == "text" || FieldType == "textarea") { document.EditForm.elements[i].value = "" } if (FieldType == "select-one") { document.EditForm.elements[i].options.selectedIndex = 0 } } } function OpenNewWindow(url, width, height) { var randomnumber=Math.floor(Math.random()*5001) window.open(url, randomnumber, "top=10,left=10,menubar=0,resizable=1,scrollbars=1,width=" + width + ",height=" + height) } function OpenWindowNoScroll(url, width, height) { window.open(url, 'popup_noscroll', "top=10,left=10,menubar=0,resizable=0,scrollbars=0,width=" + width + ",height=" + height) } function protect_images2(e) { var msg = "Sorry, our images are copyrighted."; if (navigator.appName == 'Netscape' && e.which == 3) { alert(msg); return false; } if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) { alert(msg); return false; } else return true; } function protect_images1() { if(document.images) { for(i=0;i function resizeWindow(ww,wh) { onload = resizeWindow2(ww,wh); } function resizeWindow2(ww,wh) { //ww = 525; //wh = 650; mw = screen.availWidth; mh = screen.availHeight; if (ww==0) ww = getBodyWidth(); //so breit wie nötig if (wh==0) wh = getBodyHeight(); //so hoch wie nötig h = (mh>wh) ? wh : mh; w = (mw>ww) ? ww : mw; if (navigator.userAgent.toLowerCase().indexOf("msie")>-1) { window.resizeTo(ww,wh); } else { window.outerWidth = ww; window.outerHeight = wh; } } function getBodyHeight() { d = (document.all) ? 85 : 60; //Zusätzliche Höhe als notwendig (für IE / für Mozilla) p = (document.all) ? 'scroll' : 'offset'; eval("h = document.getElementsByTagName('body')[0]."+p+"Height+"+d); return h; } function getBodyWidth() { d = (document.all) ? 0 : 0; //Zusätzliche Breite als notwendig (für Mozilla / für IE) p = (document.all) ? 'scroll' : 'offset'; eval("w = document.getElementsByTagName('body')[0]."+p+"Width+"+d); return w; }