var currentpos,timer; var popwin = null ; //popwin = window.open("http://www.sjwbbs.com"); if(popwin!=null) { popwin.blur(); window.focus(); } function initialize() { timer=setInterval("scrollwindow()",50); } function sc(){ clearInterval(timer); } function scrollwindow() { currentpos=document.body.scrollTop; window.scroll(0,++currentpos); if (currentpos != document.body.scrollTop) sc(); } function CheckFComment() { if(document.all.FComment.Content.value=="") { alert("请填写评论"); document.all.FComment.Content.focus(); return false; } if(document.all.FComment.Email.value!="") { var pattern = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/; if(!pattern.test(document.all.FComment.Email.value)) { alert("Email格式不正确"); document.all.FComment.Email.focus(); return false; } } if(document.all.FComment.ValidateNumber.value=="") { alert("请填写随机码"); document.all.FComment.ValidateNumber.focus(); return false; } return true; } function ChangFontSize(size) { var obj=document.all.DIVContent; obj.style.fontSize=size; } function CheckSearchForm() { var form=document.all.SearchForm; if(form.Keywords.value=="") { alert("Keywords can't empty"); form.Keywords.focus(); return false; } return true; } var h; var w; var l; var t; var topMar = 1; var leftMar = -2; var space = 1; var isvisible ; var MENU_SHADOW_COLOR='#F0F0F0';//定义下拉菜单阴影色 var global = window.document global.fo_currentMenu = null global.fo_shadows = new Array function HideMenu() { var mX; var mY; var vDiv; var mDiv; if (isvisible == true) { vDiv = document.all("menuDiv"); mX = window.event.clientX + document.body.scrollLeft; mY = window.event.clientY + document.body.scrollTop; if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)) { var MS=navigator.appVersion.indexOf("MSIE"); if(navigator.appVersion.substring(MS+5,MS+6)>=6) { try { var objHSI=document.all.HSI; objHSI.style.display="none"; } catch(myerror) { } } vDiv.style.visibility = "hidden"; isvisible = false; } } } function ShowMenu(vMnuCode,tWidth) { if(vMnuCode=="") { return; } vSrc = window.event.srcElement; vMnuCode = "
| " + vMnuCode + " |