/* *###################################### * eWebEditor v4.00 - Advanced online web based WYSIWYG HTML editor. * Copyright (c) 2003-2007 eWebSoft.com * * For further information go to http://www.ewebsoft.com/ * This copyright notice MUST stay intact for use. *###################################### */ var URLParams = new Object() ; var aParams = document.location.search.substr(1).split('&') ; for (i=0 ; i < aParams.length ; i++) { var aParam = aParams[i].split('=') ; URLParams[aParam[0]] = aParam[1] ; } var config; try{config = dialogArguments.config;}catch(e){try{config = opener.config;}catch(e){}} function BaseTrim(str){ lIdx=0;rIdx=str.length; if (BaseTrim.arguments.length==2) act=BaseTrim.arguments[1].toLowerCase() else act="all" for(var i=0;i= 48) && (event.keyCode <= 57)); } function SelectColor(what){ var dEL = document.all("d_"+what); var sEL = document.all("s_"+what); var url = "selcolor.htm?color="+encodeURIComponent(dEL.value); var arr = showModalDialog(url,window,"dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no"); if (arr) { dEL.value=arr; sEL.style.backgroundColor=arr; } } function SelectImage(){ showModalDialog("backimage.htm?action=other",window,"dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no"); } function SelectBrowse(type, what){ var el = document.all("d_"+what); var arr = showModalDialog('browse.htm?type='+type, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no"); if (arr){ el.value = arr; } } function SearchSelectValue(o_Select, s_Value){ for (var i=0;i=0) {return url;} var sWebEditorPath = getWebEditorRootPath(); while(url.substr(0,3)=="../"){ url = url.substr(3); sWebEditorPath = sWebEditorPath.substring(0,sWebEditorPath.lastIndexOf("/")); } return sWebEditorPath + "/" + url; } function relativePath2setPath(url){ return relativePath2rootPath(url); } function getWebEditorRootPath(){ var url = "/" + document.location.pathname; return url.substring(0,url.lastIndexOf("/dialog/")); } function adjustDialog(){ var w = tabDialogSize.offsetWidth + 6; var h = tabDialogSize.offsetHeight + 25; if(config.IsSP2){ h += 20; } window.dialogWidth = w + "px"; window.dialogHeight = h + "px"; window.dialogLeft = (screen.availWidth - w) / 2; window.dialogTop = (screen.availHeight - h) / 2; } function imgButtonOver(el){ if(!el["imageinitliazed"]){ el["oncontextmenu"]= new Function("event.returnValue=false") ; el["onmouseout"]= new Function("imgButtonOut(this)") ; el["onmousedown"]= new Function("imgButtonDown(this)") ; el["unselectable"]="on" ; el["imageinitliazed"]=true ; } ; el.className = "imgButtonOver"; } ; function imgButtonOut(el){ el.className = "imgButtonOut"; } ; function imgButtonDown(el){ el.className = "imgButtonDown"; } ;