/** * 删除左右两端的空格 */ String.prototype.trim=function(){return this.replace(/(^\s+)|(\s+$)/g,'');} function g(id){return document.getElementById(id);} var windowWidth = document.body.offsetWidth; function openWindow(targetURL){openWin(targetURL,"文件上传",350,700);} function openWin(targetURL,sWinName,h,w){ document.getElementById("BgWin").style.width=document.body.clientWidth+"px"; if(document.body.scrollHeight"; document.getElementById("ActionTarget").style.height = h+"px"; document.getElementById("ActionTarget").style.width = w+"px"; document.getElementById("ActionWin").style.height = (h+25)+"px"; document.getElementById("ActionWin").style.width = w+"px"; document.getElementById("ActionWin").style.left = parseInt((document.body.offsetWidth-w)/2)+"px"; var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop; if(document.body.offsetHeight>650) document.getElementById("ActionWin").style.top = (20+scrollTop)+"px"; else document.getElementById("ActionWin").style.top = (20+scrollTop)+"px"; //alert(document.body.scrollTop); document.getElementById("ActionWin").style.display='block'; } function closeWin(){ document.getElementById("ActionWin").style.display = "none"; document.getElementById("BgWin").style.display='none'; document.getElementById("ActionTarget").src = ""; } document.write("
"); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write("
×
"); document.write(" "); document.write("
"); document.write("
"); function isIE(){ //ie? if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1) return true; else return false; } if(!isIE()){ //firefox innerText define HTMLElement.prototype.__defineGetter__("innerText", function(){ var anyString = ""; var childS = this.childNodes; for(var i=0; i详细信息]" +" [给我们留言]"; } function getleft(showid,hiddenid,length,SpaceEnter) { var thetext = document.getElementById(hiddenid).innerText if(thetext.length>length) thetext=""+thetext.substr(0,length); if(SpaceEnter==1) { thetext = thetext.replace(/\ /g," "); thetext = thetext.replace(/\r\n/g,"
") } //alert(thetext); document.getElementById(showid).innerHTML=thetext; } var arrobj=[]; function echoMenu(obj) { arrobj.push(obj); for(var i=0;i