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 isNav4() { var app = navigator.appName; var ver = navigator.appVersion; if ((app == "Netscape") && (parseInt(ver) < 5)) { return true; }else{ return false; } } function isMac() { if (navigator.appVersion.indexOf("Mac")!=-1) { return true; } else { return false; } } function protect_images1() { if(document.images) { for(i=0;i < document.images.length;i++) { document.images[i].onmousedown = protect_images2; document.images[i].onmouseup = protect_images2; } } } function OpenSideWindow(url){ rightwidth=280; if (document.all) { windowheight = screen.availHeight; leftwidth=screen.availWidth-rightwidth-11; SideWindow=window.open(url,'SideWindow','width='+rightwidth+',height='+(windowheight-60)+',screenX='+leftwidth+',screenY=0,top=0,left=' +leftwidth+',toolbar=0,location=0,status=1,menubar=0,resizable=1'); SideWindow.focus(); } else { SideWindow=window.open(url,'','width=280,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1'); } } var cX = 0; var cY = 0; var rX = 0; var rY = 0; function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;} function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;} if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; } else { document.onmousemove = UpdateCursorPosition; } function AssignPosition(d) { if(self.pageYOffset) { rX = self.pageXOffset; rY = self.pageYOffset; } else if(document.documentElement && document.documentElement.scrollTop) { rX = document.documentElement.scrollLeft; rY = document.documentElement.scrollTop; } else if(document.body) { rX = document.body.scrollLeft; rY = document.body.scrollTop; } if(document.all) { cX += rX; cY += rY; } d.style.left = (cX+10) + "px"; d.style.top = (cY+10) + "px"; } function HideContent(d) { if(d.length < 1) { return; } document.getElementById(d).style.display = "none"; } function ShowContent(d) { if(d.length < 1) { return; } var dd = document.getElementById(d); AssignPosition(dd); dd.style.display = "block"; } function ReverseContentDisplay(d) { if(d.length < 1) { return; } var dd = document.getElementById(d); AssignPosition(dd); if(dd.style.display == "none") { dd.style.display = "block"; } else { dd.style.display = "none"; } }