function edurayInsertHtml(B,D,C){B=B.toLowerCase();if(D.insertAdjacentHTML){switch(B){case"beforebegin":D.insertAdjacentHTML("BeforeBegin",C);return D.previousSibling;case"afterbegin":D.insertAdjacentHTML("AfterBegin",C);return D.firstChild;case"beforeend":D.insertAdjacentHTML("BeforeEnd",C);return D.lastChild;case"afterend":D.insertAdjacentHTML("AfterEnd",C);return D.nextSibling}throw"Illegal insertion point -> \""+B+"\""}var A=D.ownerDocument.createRange();var E;switch(B){case"beforebegin":A.setStartBefore(D);E=A.createContextualFragment(C);D.parentNode.insertBefore(E,D);return D.previousSibling;case"afterbegin":if(D.firstChild){A.setStartBefore(D.firstChild);E=A.createContextualFragment(C);D.insertBefore(E,D.firstChild);return D.firstChild}else{D.innerHTML=C;return D.firstChild}case"beforeend":if(D.lastChild){A.setStartAfter(D.lastChild);E=A.createContextualFragment(C);D.appendChild(E);return D.lastChild}else{D.innerHTML=C;return D.lastChild}case"afterend":A.setStartAfter(D);E=A.createContextualFragment(C);D.parentNode.insertBefore(E,D.nextSibling);return D.nextSibling}throw"Illegal insertion point -> \""+B+"\""}var zoom_intTimeStep=0;var fade_intTimeStep=200;var fade_isIe=(window.ActiveXObject)?true:false;var fade_intAlphaStep=(fade_isIe)?5:0.05;function hiddenObject(A){if(!document.getElementById){return false}if(!document.getElementById(A)){return false}document.getElementById(A).style.display="none";return false}function showObject(A){if(!document.getElementById){return false}if(!document.getElementById(A)){return false}document.getElementById(A).style.display="block";return false}function animationOpen(A){if(!document.getElementById){return false}if(!document.getElementById(A)){return false}movement=setTimeout("animationOpenProcessByZoom('"+A+"')",0);return false}function animationClose(A){if(!document.getElementById){return false}if(!document.getElementById(A)){return false}movement=setTimeout("animationCloseProcessByZoom('"+A+"')",0);return false}function animationOpenProcessByZoom(B){if(!document.getElementById){return false}if(!document.getElementById(B)){return false}var A=document.getElementById(B);var C=A.style.zoom;if(!C){C=0.2}C=Math.abs(C)+1/50;if(C<=1){A.style.zoom=C;setTimeout("animationOpenProcessByZoom('"+B+"')",zoom_intTimeStep)}A.style.display="block";return false}function animationCloseProcessByZoom(B){if(!document.getElementById){return false}if(!document.getElementById(B)){return false}var A=document.getElementById(B);A.style.display="block";var C=A.style.zoom;if(!C){C=1}C=Math.abs(C)-1/50;if(C<=0.2){A.style.display="none"}else{A.style.zoom=C;setTimeout("animationCloseProcessByZoom('"+B+"')",zoom_intTimeStep)}return false}function fadeStartObjVisible(A){fade_curSObj=document.getElementById(A);fadeSetObjState(A)}function fadeSetObjState(B){var A=document.getElementById(B);if(A.style.display=="none"){if(fade_isIe){A.style.cssText="display: none;z-index: 100; filter: alpha(opacity=0);";A.filters.alpha.opacity=0}else{A.style.opacity=0}A.style.display="block";fadeSetObjOpen(B)}else{fadeSetObjClose(B)}}function fadeSetObjOpen(C){var B=document.getElementById(C);var A=null;if(fade_isIe){if(!B.filters.alpha){B.style.cssText="background: white;border: solid 1px #eee; display: none;z-index: 100; filter: alpha(opacity=0);"}A=Math.abs(B.filters.alpha.opacity)+Math.abs(fade_intAlphaStep);B.filters.alpha.opacity=A;if(B.filters.alpha.opacity<100){setTimeout("fadeSetObjOpen('"+C+"')",fade_intTimeStep)}}else{A=B.style.opacity;if(A==""){A=0}A=Math.abs(A)+Math.abs(fade_intAlphaStep);B.style.opacity=A;if(Math.abs(A)<1){setTimeout("fadeSetObjOpen('"+C+"')",fade_intTimeStep)}}B.style.display="block"}function fadeSetObjClose(C){var B=document.getElementById(C);var A=null;B.style.display="block";if(fade_isIe){if(!B.filters.alpha){B.style.cssText="display: none;z-index: 100; filter: alpha(opacity=100);"}A=Math.abs(B.filters.alpha.opacity)-Math.abs(fade_intAlphaStep);B.filters.alpha.opacity=A;if(B.filters.alpha.opacity>0){setTimeout("fadeSetObjClose('"+C+"')",fade_intTimeStep)}else{B.style.display="none"}}else{A=B.style.opacity;if(A==""){A=1}A=Math.abs(A)-Math.abs(fade_intAlphaStep);if(A>0){B.style.opacity=A;setTimeout("fadeSetObjClose('"+C+"')",fade_intTimeStep)}else{B.style.display="none"}}}function moveToPageTop(A){moveToElement(A,"topFlashAdvContainer")}function moveToElement(A,C){var B=document.getElementById(C);var D=document.getElementById(A);if(B){B.insertAdjacentHTML("afterBegin",D.innerHTML);D.innerHTML=""}}function replaceElement(A,C){var B=document.getElementById(C);var D=document.getElementById(A);if(B){B.innerHTML=D.innerHTML;D.innerHTML=""}}function insertToPageTop(A){var B=document.getElementById("topFlashAdvContainer");if(B){B.insertAdjacentHTML("afterBegin",A)}}function submitFormExt(C,D,B,E){if(Liferay.Util.submitCountdown==0){Liferay.Util.submitCountdown=10;setTimeout("Liferay.Util.resubmitCountdown('"+C.name+"')",1000);if(B==null||B){Liferay.Util.submitCountdown++;var A=jQuery("input[@type=button], input[@type=reset], input[@type=submit]",C);A.each(function(G,H){var F=jQuery(this);F.attr("disabled",true);F.fadeTo(50,0.5)})}if(D!=null){C.action=D}if(!Liferay.Browser.is_ns_4){document.body.style.cursor="wait"}if(E){C.target=E}C.submit()}}function appendToIconBar(A,C){var B=document.getElementById("portlet-small-icon-bar_"+A);if(B){B.insertAdjacentHTML("beforeEnd",C)}else{document.write(C)}}function getMoreHtml(B){var A="<div class=\"entryMore\" style=\"display:inline;\"><div class=\"leftEntryMoreDecorate\"><div class=\"rightEntryMoreDecorate\"><a title=\"more\" target=\"_blank\" href=\""+B+"\"><span>more</span></a></div></div></div>";return A}function showMoreForPortlet(A,B){appendToIconBar(A,getMoreHtml(B))}function replacePortletTitle(D,E){var C=document.getElementById("portlet-wrapper-"+D);if(C){var B=C.getElementsByTagName("DIV")[0];if(B&&"portlet-topper"==B.className){var A=B.getElementsByTagName("SPAN")[0];if(A&&"portlet-title"==A.className){A.innerHTML=E}}}}function moveContentToPortletTitle(B,A){var C=document.getElementById(A);if(C){replacePortletTitle(B,C.innerHTML);C.innerHTML="";C.style.display="none"}}function moveContentToPortletIconBar(B,A){var C=document.getElementById(A);if(C){appendToIconBar(B,C.innerHTML);C.innerHTML="";C.style.display="none"}}function hidePortlet(B){var A=document.getElementById("p_p_id"+B);if(A){A.style.display="none"}}function hideElementById(A){var B=document.getElementById(A);if(B){B.style.display="none"}}function saveTargetAs(A,B){var C=window.open(A);C.document.execCommand("Saveas",true,B);C.window.close();return false}function openWindowWithUrl(A){var B=window.open(A,"_blank","scrollbars=yes,status=yes,resizable=yes");B.focus()}function appendToTitle(D,E){var C=document.getElementById("portlet-wrapper-"+D);if(C){var B=C.getElementsByTagName("DIV")[0];if(B&&"portlet-topper"==B.className){var A=B.getElementsByTagName("SPAN")[0];if(A&&"portlet-title"==A.className){A.insertAdjacentHTML("beforeEnd",E)}}}}function processWorkflowState(B){B=B||{};var A=B.url;var C=B.namespace;var E=B.targetTitle;var F=Liferay.Language.get("common.workflow.process.opinion");var D="<div><form action='"+A+"' method='post'>"+Liferay.Language.get("news.entry.title")+" : "+E+"<br />"+Liferay.Language.get("common.workflow.process.opinion")+"<br /><textarea name='"+C+"opinion' style='height: 100px; width: 384px;'></textarea><br /><br />";D+=Liferay.Language.get("common.workflow.process.passed")+"<input type='checkbox' value='true' name='"+C+"passed' checked='checked'><br /><br /><input type='submit' value='"+Liferay.Language.get("common.workflow.process")+"' /><input type='button' value='"+Liferay.Language.get("cancel")+"' onClick='Liferay.Popup.close(this);' /></form></div>";Liferay.Popup({"title":F,message:D,noCenter:false,modal:true,width:400})}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(L,B,M,D,H,J,F,E,C,K,I){if(!document.getElementById){return }this.DETECT_KEY=I?I:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(L){this.setAttribute("swf",L)}if(B){this.setAttribute("id",B)}if(M){this.setAttribute("width",M)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(J){this.addParam("bgcolor",J)}var A=E?E:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",F);this.setAttribute("doExpressInstall",false);var G=(C)?C:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(K){this.setAttribute("redirectUrl",K)}};deconcept.SWFObject.prototype={setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C.push(B+"="+A[B])}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}B="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";B+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var F=this.getParams();for(var E in F){B+=[E]+"=\""+F[E]+"\" "}var D=this.getVariablePairs().join("&");if(D.length>0){B+="flashvars=\""+D+"\""}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}B="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";B+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var C=this.getParams();for(var E in C){B+="<param name=\""+E+"\" value=\""+C[E]+"\" />"}var A=this.getVariablePairs().join("&");if(A.length>0){B+="<param name=\"flashvars\" value=\""+A+"\" />"}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var D=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){D=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(C){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");D=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(C){if(D.major==6){return D}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(C){}}if(B!=null){D=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}return D};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(A){var D=document.location.search||document.location.hash;if(D){var C=D.substring(1).split("&");for(var B=0;B<C.length;B++){if(C[B].substring(0,C[B].indexOf("="))==A){return C[B].substring((C[B].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return }var C=document.getElementsByTagName("OBJECT");for(var B=0;B<C.length;B++){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var A=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();A()}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload}if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var sinaFlash=deconcept.SWFObject;function edurayCommonError(A){alert(A);return null}function isValidString(A,B){if(!A.exec(B)){return false}else{return true}}function isDigit(B){var A=/^[0-9]{1,20}\.{0,1}[0-9]{0,20}$/;return isValidString(A,B)}function isRegisterUserName(B){var A=/^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/;return isValidString(A,B)}function isTrueName(B){var A=/^[a-zA-Z]{1,30}$/;return isValidString(A,B)}function isPasswd(B){var A=/^(\w){6,20}$/;return isValidString(A,B)}function isTelephone(B){var A=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;return isValidString(A,B)}function isMobil(B){var A=/^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;return isValidString(A,B)}function isPostalCode(B){var A=/^[0-9]{6}$/;return isValidString(A,B)}function isIP(B){var A=/^[0-9.]{1,20}$/;return isValidString(A,B)}function isEmail(B){var A=/^[a-zA-Z0-9]+((\.|_)[a-zA-Z0-9]+)*@[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+$/;return isValidString(A,B)}function isIdentityCard(B){var A=/^[0-9]{15}([0-9]{2}[0-9|a-z|A-Z]){0,1}$/;return isValidString(A,B)}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};function Validate(R,U){var X=/.+/;var W=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;var N=/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/;var A=/^((\(\d{2,3}\))|(\d{3}\-))?1\d{10}$/;var K=/^(((\(\d{2,3}\))|(\d{3}\-))?13\d{9}|[;])+$/;var M=/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/;var T=/^\d{15}(\d{2}[A-Za-z0-9])?$/;var E=/^\d+(\.\d+)?$/;var Y=/^\d+$/;var B=/^[1-9]\d{5}$/;var V=/^[1-9]\d{4,10}$/;var H=/^[-\+]?\d+$/;var S=/^[+]?\d+$/;var J=/^[-\+]?\d+(\.\d+)?$/;var C=/^([A-Za-z]|[,\!\*\.\ \(\)\[\]\{\}<>\?\\\/\'\"])+$/;var I=/^[\u0391-\uFFE5]+$/;var L=/^([0-9]|[,]|[;])+([;])+$/;var P=/^.+\.(?=wav)(wav)$/;var G=/^([A-Za-z0-9]|[-\_])+$/;var D=/^\d{4}-((0[1-9]{1})|(1[0-2]{1}))-((0[1-9]{1})|([1-2]{1}[0-9]{1})|(3[0-1]{1}))$/;var O=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;var F=document.getElementsByName(R)[0].value;var Q;switch(U){case"Require":Q=X.test(F);break;case"Email":Q=W.test(F);break;case"Phone":Q=N.test(F);break;case"Mobile":Q=A.test(F);break;case"Mobiles":Q=K.test(F);break;case"Url":Q=M.test(F);break;case"IdCard":Q=T.test(F);break;case"Currency":Q=E.test(F);break;case"Number":Q=Y.test(F);break;case"Zip":Q=B.test(F);break;case"QQ":Q=V.test(F);break;case"integer":Q=S.test(F);break;case"Integer":Q=H.test(F);break;case"Double":Q=J.test(F);break;case"English":Q=C.test(F);break;case"Chinese":Q=I.test(F);break;case"BankCard":Q=L.test(F);break;case"DoFilter":Q=P.test(F);break;case"Key":Q=G.test(F);break;case"VDate":Q=D.test(F);break;case"VDateTime":Q=O.test(F);break;default:Q=false;break}return Q}function ValidateString(F,T){var W=/.+/;var V=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;var N=/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/;var A=/^((\(\d{2,3}\))|(\d{3}\-))?13\d{9}$/;var K=/^(((\(\d{2,3}\))|(\d{3}\-))?13\d{9}|[;])+$/;var M=/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/;var S=/^\d{15}(\d{2}[A-Za-z0-9])?$/;var E=/^\d+(\.\d+)?$/;var X=/^\d+$/;var B=/^[1-9]\d{5}$/;var U=/^[1-9]\d{4,10}$/;var H=/^[-\+]?\d+$/;var R=/^[+]?\d+$/;var J=/^[-\+]?\d+(\.\d+)?$/;var C=/^([A-Za-z]|[,\!\*\.\ \(\)\[\]\{\}<>\?\\\/\'\"])+$/;var I=/^[\u0391-\uFFE5]+$/;var L=/^([0-9]|[,]|[;])+([;])+$/;var P=/^.+\.(?=wav)(wav)$/;var G=/^([A-Za-z0-9]|[-\_])+$/;var D=/^\d{4}-((0[1-9]{1})|(1[0-2]{1}))-((0[1-9]{1})|([1-2]{1}[0-9]{1})|(3[0-1]{1}))$/;var O=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;var Q;switch(T){case"Require":Q=W.test(F);break;case"Email":Q=V.test(F);break;case"Phone":Q=N.test(F);break;case"Mobile":Q=A.test(F);break;case"Mobiles":Q=K.test(F);break;case"Url":Q=M.test(F);break;case"IdCard":Q=S.test(F);break;case"Currency":Q=E.test(F);break;case"Number":Q=X.test(F);break;case"Zip":Q=B.test(F);break;case"QQ":Q=U.test(F);break;case"integer":Q=R.test(F);break;case"Integer":Q=H.test(F);break;case"Double":Q=J.test(F);break;case"English":Q=C.test(F);break;case"Chinese":Q=I.test(F);break;case"BankCard":Q=L.test(F);break;case"DoFilter":Q=P.test(F);break;case"Key":Q=G.test(F);break;case"VDate":Q=D.test(F);break;case"VDateTime":Q=O.test(F);break;default:Q=false;break}return Q}function ValidateDate(C){var A="((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))";var B=false;if(C!==null&&C.match(A)!=null){B=true}return B}function ValidateTime(C){var A="([0-1]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9]";var B=false;if(C!==null&&C.match(A)!=null){B=true}return B}function ValidateDateTime(C){var B=false;var A="((((1[6-9]|[2-9]\\d)\\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\\d|3[01]))|(((1[6-9]|[2-9]\\d)\\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\\d|30))|(((1[6-9]|[2-9]\\d)\\d{2})-0?2-(0?[1-9]|1\\d|2[0-8]))|(((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))\\s([0-1]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9]";if(C!==null&&C.match(A)!=null){B=true}return B}function ValidateYearMonth(A){var B=false;var C="\\d{4}-((0?[1-9])|(1?[0-2]))";if(A!==null&&A.match(C)!=null){B=true}return B}function ValidateYearMonth2(A){var B=false;var C="\\d{4}骞�((0?[1-9])|(1?[0-2]))鏈�";if(A!==null&&A.match(C)!=null){B=true}return B}var SWFUpload;if(SWFUpload==undefined){SWFUpload=function(A){this.initSWFUpload(A)}}SWFUpload.prototype.initSWFUpload=function(B){try{this.customSettings={};this.settings=B;this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo()}catch(A){delete SWFUpload.instances[this.movieName];throw A}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.2.0 2009-03-25";SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};SWFUpload.completeURL=function(A){if(typeof (A)!=="string"||A.match(/^https?:\/\//i)||A.match(/^\//)){return A}var C=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");var B=window.location.pathname.lastIndexOf("/");if(B<=0){path="/"}else{path=window.location.pathname.substr(0,B)+"/"}return path+A};SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(B,A){this.settings[B]=(this.settings[B]==undefined)?A:this.settings[B]};this.ensureDefault("upload_url","");this.ensureDefault("preserve_relative_urls",false);this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("assume_success_timeout",0);this.ensureDefault("file_types","*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id","");this.ensureDefault("button_placeholder",null);this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});this.customSettings=this.settings.custom_settings;if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime()}if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)}delete this.ensureDefault};SWFUpload.prototype.loadFlash=function(){var A,B;if(document.getElementById(this.movieName)!==null){throw"ID "+this.movieName+" is already in use. The Flash Object could not be added"}A=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(A==undefined){throw"Could not find the placeholder element: "+this.settings.button_placeholder_id}B=document.createElement("div");B.innerHTML=this.getFlashHTML();A.parentNode.replaceChild(B.firstChild,A);if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement()}};SWFUpload.prototype.getFlashHTML=function(){return["<object id=\"",this.movieName,"\" type=\"application/x-shockwave-flash\" data=\"",this.settings.flash_url,"\" width=\"",this.settings.button_width,"\" height=\"",this.settings.button_height,"\" class=\"swfupload\">","<param name=\"wmode\" value=\"",this.settings.button_window_mode,"\" />","<param name=\"movie\" value=\"",this.settings.flash_url,"\" />","<param name=\"quality\" value=\"high\" />","<param name=\"menu\" value=\"false\" />","<param name=\"allowScriptAccess\" value=\"always\" />","<param name=\"flashvars\" value=\""+this.getFlashVars()+"\" />","</object>"].join("")};SWFUpload.prototype.getFlashVars=function(){var B=this.buildParamString();var A=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(A),"&amp;assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&amp;params=",encodeURIComponent(B),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)}if(this.movieElement===null){throw"Could not find Flash element"}return this.movieElement};SWFUpload.prototype.buildParamString=function(){var C=this.settings.post_params;var B=[];if(typeof (C)==="object"){for(var A in C){if(C.hasOwnProperty(A)){B.push(encodeURIComponent(A.toString())+"="+encodeURIComponent(C[A].toString()))}}}return B.join("&amp;")};SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,false);var A=null;A=this.getMovieElement();if(A&&typeof (A.CallFunction)==="unknown"){for(var C in A){try{if(typeof (A[C])==="function"){A[C]=null}}catch(E){}}try{A.parentNode.removeChild(A)}catch(B){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieElement=null;this.settings=null;this.customSettings=null;this.eventQueue=null;this.movieName=null;return true}catch(D){return false}};SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url:               ",this.settings.upload_url,"\n","\t","flash_url:                ",this.settings.flash_url,"\n","\t","use_query_string:         ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error:         ",this.settings.requeue_on_error.toString(),"\n","\t","http_success:             ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout:   ",this.settings.assume_success_timeout,"\n","\t","file_post_name:           ",this.settings.file_post_name,"\n","\t","post_params:              ",this.settings.post_params.toString(),"\n","\t","file_types:               ",this.settings.file_types,"\n","\t","file_types_description:   ",this.settings.file_types_description,"\n","\t","file_size_limit:          ",this.settings.file_size_limit,"\n","\t","file_upload_limit:        ",this.settings.file_upload_limit,"\n","\t","file_queue_limit:         ",this.settings.file_queue_limit,"\n","\t","debug:                    ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching:      ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id:    ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder:       ",(this.settings.button_placeholder?"Set":"Not Set"),"\n","\t","button_image_url:         ",this.settings.button_image_url.toString(),"\n","\t","button_width:             ",this.settings.button_width.toString(),"\n","\t","button_height:            ",this.settings.button_height.toString(),"\n","\t","button_text:              ",this.settings.button_text.toString(),"\n","\t","button_text_style:        ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding:  ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action:            ",this.settings.button_action.toString(),"\n","\t","button_disabled:          ",this.settings.button_disabled.toString(),"\n","\t","custom_settings:          ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned:  ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n","\t","file_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n","\t","file_queued_handler assigned:       ",(typeof this.settings.file_queued_handler==="function").toString(),"\n","\t","file_queue_error_handler assigned:  ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n","\t","upload_start_handler assigned:      ",(typeof this.settings.upload_start_handler==="function").toString(),"\n","\t","upload_progress_handler assigned:   ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n","\t","upload_error_handler assigned:      ",(typeof this.settings.upload_error_handler==="function").toString(),"\n","\t","upload_success_handler assigned:    ",(typeof this.settings.upload_success_handler==="function").toString(),"\n","\t","upload_complete_handler assigned:   ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n","\t","debug_handler assigned:             ",(typeof this.settings.debug_handler==="function").toString(),"\n"].join(""))};SWFUpload.prototype.addSetting=function(B,C,A){if(C==undefined){return(this.settings[B]=A)}else{return(this.settings[B]=C)}};SWFUpload.prototype.getSetting=function(A){if(this.settings[A]!=undefined){return this.settings[A]}return""};SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement();var returnValue,returnString;try{returnString=movieElement.CallFunction("<invoke name=\""+functionName+"\" returntype=\"javascript\">"+__flash__argumentsToXML(argumentArray,0)+"</invoke>");returnValue=eval(returnString)}catch(ex){throw"Call to "+functionName+" failed"}if(returnValue!=undefined&&typeof returnValue.post==="object"){returnValue=this.unescapeFilePostParams(returnValue)}return returnValue};SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")};SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")};SWFUpload.prototype.startUpload=function(A){this.callFlash("StartUpload",[A])};SWFUpload.prototype.cancelUpload=function(A,B){if(B!==false){B=true}this.callFlash("CancelUpload",[A,B])};SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")};SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")};SWFUpload.prototype.setStats=function(A){this.callFlash("SetStats",[A])};SWFUpload.prototype.getFile=function(A){if(typeof (A)==="number"){return this.callFlash("GetFileByIndex",[A])}else{return this.callFlash("GetFile",[A])}};SWFUpload.prototype.addFileParam=function(A,B,C){return this.callFlash("AddFileParam",[A,B,C])};SWFUpload.prototype.removeFileParam=function(A,B){this.callFlash("RemoveFileParam",[A,B])};SWFUpload.prototype.setUploadURL=function(A){this.settings.upload_url=A.toString();this.callFlash("SetUploadURL",[A])};SWFUpload.prototype.setPostParams=function(A){this.settings.post_params=A;this.callFlash("SetPostParams",[A])};SWFUpload.prototype.addPostParam=function(A,B){this.settings.post_params[A]=B;this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.removePostParam=function(A){delete this.settings.post_params[A];this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.setFileTypes=function(A,B){this.settings.file_types=A;this.settings.file_types_description=B;this.callFlash("SetFileTypes",[A,B])};SWFUpload.prototype.setFileSizeLimit=function(A){this.settings.file_size_limit=A;this.callFlash("SetFileSizeLimit",[A])};SWFUpload.prototype.setFileUploadLimit=function(A){this.settings.file_upload_limit=A;this.callFlash("SetFileUploadLimit",[A])};SWFUpload.prototype.setFileQueueLimit=function(A){this.settings.file_queue_limit=A;this.callFlash("SetFileQueueLimit",[A])};SWFUpload.prototype.setFilePostName=function(A){this.settings.file_post_name=A;this.callFlash("SetFilePostName",[A])};SWFUpload.prototype.setUseQueryString=function(A){this.settings.use_query_string=A;this.callFlash("SetUseQueryString",[A])};SWFUpload.prototype.setRequeueOnError=function(A){this.settings.requeue_on_error=A;this.callFlash("SetRequeueOnError",[A])};SWFUpload.prototype.setHTTPSuccess=function(A){if(typeof A==="string"){A=A.replace(" ","").split(",")}this.settings.http_success=A;this.callFlash("SetHTTPSuccess",[A])};SWFUpload.prototype.setAssumeSuccessTimeout=function(A){this.settings.assume_success_timeout=A;this.callFlash("SetAssumeSuccessTimeout",[A])};SWFUpload.prototype.setDebugEnabled=function(A){this.settings.debug_enabled=A;this.callFlash("SetDebugEnabled",[A])};SWFUpload.prototype.setButtonImageURL=function(A){if(A==undefined){A=""}this.settings.button_image_url=A;this.callFlash("SetButtonImageURL",[A])};SWFUpload.prototype.setButtonDimensions=function(C,A){this.settings.button_width=C;this.settings.button_height=A;var B=this.getMovieElement();if(B!=undefined){B.style.width=C+"px";B.style.height=A+"px"}this.callFlash("SetButtonDimensions",[C,A])};SWFUpload.prototype.setButtonText=function(A){this.settings.button_text=A;this.callFlash("SetButtonText",[A])};SWFUpload.prototype.setButtonTextPadding=function(B,A){this.settings.button_text_top_padding=A;this.settings.button_text_left_padding=B;this.callFlash("SetButtonTextPadding",[B,A])};SWFUpload.prototype.setButtonTextStyle=function(A){this.settings.button_text_style=A;this.callFlash("SetButtonTextStyle",[A])};SWFUpload.prototype.setButtonDisabled=function(A){this.settings.button_disabled=A;this.callFlash("SetButtonDisabled",[A])};SWFUpload.prototype.setButtonAction=function(A){this.settings.button_action=A;this.callFlash("SetButtonAction",[A])};SWFUpload.prototype.setButtonCursor=function(A){this.settings.button_cursor=A;this.callFlash("SetButtonCursor",[A])};SWFUpload.prototype.queueEvent=function(B,C){if(C==undefined){C=[]}else{if(!(C instanceof Array)){C=[C]}}var A=this;if(typeof this.settings[B]==="function"){this.eventQueue.push(function(){this.settings[B].apply(this,C)});setTimeout(function(){A.executeNextEvent()},0)}else{if(this.settings[B]!==null){throw"Event handler "+B+" is unknown or is not a function"}}};SWFUpload.prototype.executeNextEvent=function(){var A=this.eventQueue?this.eventQueue.shift():null;if(typeof (A)==="function"){A.apply(this)}};SWFUpload.prototype.unescapeFilePostParams=function(C){var E=/[$]([0-9a-f]{4})/i;var F={};var D;if(C!=undefined){for(var A in C.post){if(C.post.hasOwnProperty(A)){D=A;var B;while((B=E.exec(D))!==null){D=D.replace(B[0],String.fromCharCode(parseInt("0x"+B[1],16)))}F[D]=C.post[A]}}C.post=F}return C};SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")}catch(A){return false}};SWFUpload.prototype.flashReady=function(){var A=this.getMovieElement();if(!A){this.debug("Flash called back ready but the flash movie can't be found.");return }this.cleanUp(A);this.queueEvent("swfupload_loaded_handler")};SWFUpload.prototype.cleanUp=function(A){try{if(this.movieElement&&typeof (A.CallFunction)==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for(var C in A){try{if(typeof (A[C])==="function"){A[C]=null}}catch(B){}}}}catch(D){}window["__flash__removeCallback"]=function(E,F){try{if(E){E[F]=null}}catch(G){}}};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")};SWFUpload.prototype.fileQueued=function(A){A=this.unescapeFilePostParams(A);this.queueEvent("file_queued_handler",A)};SWFUpload.prototype.fileQueueError=function(A,C,B){A=this.unescapeFilePostParams(A);this.queueEvent("file_queue_error_handler",[A,C,B])};SWFUpload.prototype.fileDialogComplete=function(B,C,A){this.queueEvent("file_dialog_complete_handler",[B,C,A])};SWFUpload.prototype.uploadStart=function(A){A=this.unescapeFilePostParams(A);this.queueEvent("return_upload_start_handler",A)};SWFUpload.prototype.returnUploadStart=function(A){var B;if(typeof this.settings.upload_start_handler==="function"){A=this.unescapeFilePostParams(A);B=this.settings.upload_start_handler.call(this,A)}else{if(this.settings.upload_start_handler!=undefined){throw"upload_start_handler must be a function"}}if(B===undefined){B=true}B=!!B;this.callFlash("ReturnUploadStart",[B])};SWFUpload.prototype.uploadProgress=function(A,C,B){A=this.unescapeFilePostParams(A);this.queueEvent("upload_progress_handler",[A,C,B])};SWFUpload.prototype.uploadError=function(A,C,B){A=this.unescapeFilePostParams(A);this.queueEvent("upload_error_handler",[A,C,B])};SWFUpload.prototype.uploadSuccess=function(B,A,C){B=this.unescapeFilePostParams(B);this.queueEvent("upload_success_handler",[B,A,C])};SWFUpload.prototype.uploadComplete=function(A){A=this.unescapeFilePostParams(A);this.queueEvent("upload_complete_handler",A)};SWFUpload.prototype.debug=function(A){this.queueEvent("debug_handler",A)};SWFUpload.prototype.debugMessage=function(C){if(this.settings.debug){var A,D=[];if(typeof C==="object"&&typeof C.name==="string"&&typeof C.message==="string"){for(var B in C){if(C.hasOwnProperty(B)){D.push(B+": "+C[B])}}A=D.join("\n")||"";D=A.split("\n");A="EXCEPTION: "+D.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(A)}else{SWFUpload.Console.writeLine(C)}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(D){var B,A;try{B=document.getElementById("SWFUpload_Console");if(!B){A=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(A);B=document.createElement("textarea");B.id="SWFUpload_Console";B.style.fontFamily="monospace";B.setAttribute("wrap","off");B.wrap="off";B.style.overflow="auto";B.style.width="700px";B.style.height="350px";B.style.margin="5px";A.appendChild(B)}B.value+=D+"\n";B.scrollTop=B.scrollHeight-B.clientHeight}catch(C){alert("Exception: "+C.name+" Message: "+C.message)}};function AC_AddExtension(B,A){if(B.indexOf("?")!=-1){return B.replace(/\?/,A+"?")}else{return B+A}}function AC_Generateobj(E,D,A){var C="<object ";for(var B in E){C+=B+"=\""+E[B]+"\" "}C+=">";for(var B in D){C+="<param name=\""+B+"\" value=\""+D[B]+"\" /> "}C+="<embed ";for(var B in A){C+=B+"=\""+A[B]+"\" "}C+=" ></embed></object>";document.write(C)}function AC_FL_RunContent(){var A=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_SW_RunContent(){var A=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_GetArgs(B,E,G,D,H){var A=new Object();A.embedAttrs=new Object();A.params=new Object();A.objAttrs=new Object();for(var C=0;C<B.length;C=C+2){var F=B[C].toLowerCase();switch(F){case"classid":break;case"pluginspage":A.embedAttrs[B[C]]=B[C+1];break;case"src":case"movie":B[C+1]=AC_AddExtension(B[C+1],E);A.embedAttrs["src"]=B[C+1];A.params[G]=B[C+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":A.objAttrs[B[C]]=B[C+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"id":case"tabindex":A.embedAttrs[B[C]]=A.objAttrs[B[C]]=B[C+1];break;default:A.embedAttrs[B[C]]=A.params[B[C]]=B[C+1]}}A.objAttrs["classid"]=D;if(H){A.embedAttrs["type"]=H}return A}var SolmetraUploader={instances:new Array(),ready:new Array(),allReady:false,errorHandler:"",eventHandler:"",currentForm:0,attach:function(){if(window.addEventListener){window.addEventListener("load",SolmetraUploader.initialize,false)}else{if(window.attachEvent){window.attachEvent("onload",SolmetraUploader.initialize)}}},initialize:function(){var A=document.getElementsByName("solmetraUploaderInstance");cnt=A.length;for(i=0;i<cnt;i++){if(!SolmetraUploader.inArray(A[i].value,SolmetraUploader.ready)){setTimeout("SolmetraUploader.initialize()",1000);return }}SolmetraUploader.allReady=true;SolmetraUploader.getForms()},getForms:function(){var B=document.getElementsByName("solmetraUploaderInstance");cnt=B.length;for(i=0;i<cnt;i++){var A={id:B[i].value,hijack:SolmetraUploader.getObject("solmetraUploaderHijack_"+B[i].value).value=="y"?true:false,required:SolmetraUploader.getObject("solmetraUploaderRequired_"+B[i].value).value=="y"?true:false,form:SolmetraUploader.getForm(B[i])};SolmetraUploader.instances.push(A);SolmetraUploader.hijackForm(A.form)}},hijackForm:function(A){if(A.solmetraUploaderOriginalOnSubmit||A.solmetraUploaderOriginalSubmit){return }A.solmetraId=SolmetraUploader.currentForm;SolmetraUploader.currentForm++;A.solmetraUploaderOriginalOnSubmit=A.onsubmit;A.onsubmit=function(){return SolmetraUploader.submit(this)?true:false};A.solmetraUploaderOriginalSubmit=A.submit;A.submit=function(){return SolmetraUploader.submit(this)?true:false}},submit:function(C){if(!SolmetraUploader.ready){return false}var E=new Array();var B=SolmetraUploader.instances.length;for(i=0;i<B;i++){instance=SolmetraUploader.instances[i];var D=false;var F="";if(instance.form.solmetraId==C.solmetraId){F=instance.id;var A=SolmetraUploader.flashGetUploadStatus(instance.id);if(instance.required&&A!="selected"&&A!="done"&&A!="uploading"){SolmetraUploader.broadcastError(instance.error,"Not selected");return false}else{if(A=="selected"){E.push(instance)}else{if(A=="uploading"){D=true}else{if(A=="error"){return false}}}}}}if(E.length==0&&!D){if(C.solmetraUploaderOriginalOnSubmit){C.solmetraUploaderOriginalOnSubmit()}C.solmetraUploaderOriginalSubmit();return false}while(instance=E.shift()){SolmetraUploader.flashTriggerUpload(instance.id)}setTimeout("SolmetraUploader.submit(SolmetraUploader.getInstanceForm('"+F+"'));",1000);return false},flashGetUploadStatus:function(B){var A=SolmetraUploader.getObject("solmetraUploaderMovie_"+B);return A.getUploadStatus()},flashTriggerUpload:function(B){var A=SolmetraUploader.getObject("solmetraUploaderMovie_"+B);return A.triggerUpload()},flashTriggerCancel:function(B){var A=SolmetraUploader.getObject("solmetraUploaderMovie_"+B);return A.triggerCancel()},setErrorHandler:function(A){SolmetraUploader.errorHandler=A},broadcastError:function(id,err){eval(SolmetraUploader.errorHandler+"('"+id+"', '"+err+"')")},setEventHandler:function(A){SolmetraUploader.eventHandler=A},broadcastEvent:function(id,evt,data){eval(SolmetraUploader.eventHandler+"('"+id+"', '"+evt+"', data)");if(evt=="complete"){objx=SolmetraUploader.getObject("solmetraUploaderData_"+id);objx.value+="|"+data.tmp_name+"|"+data.name}else{if(evt=="ready"){SolmetraUploader.ready.push(id)}}},getObject:function(A){if(document.getElementById&&document.getElementById(A)!=null){return document.getElementById(A)}else{if(document.layers&&document.layers[A]!=null){return document.layers[A]}else{if(document.all){return document.all(A)}else{return true}}}},getForm:function(A){while(A=A.parentNode){if(A.nodeName=="FORM"){return A}}return false},getInstanceForm:function(A){obj=SolmetraUploader.getObject("solmetraUploaderMovie_"+A);while(obj=obj.parentNode){if(obj.nodeName=="FORM"){return obj}}return false},inArray:function(B,A){cnt=A.length;for(fi=0;fi<cnt;fi++){if(B==A[fi]){return true}}return false}};SolmetraUploader.attach();if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";B+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var F=this.getParams();for(var E in F){B+=[E]+"=\""+F[E]+"\" "}var D=this.getVariablePairs().join("&");if(D.length>0){B+="flashvars=\""+D+"\""}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";B+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var C=this.getParams();for(var E in C){B+="<param name=\""+E+"\" value=\""+C[E]+"\" />"}var A=this.getVariablePairs().join("&");if(A.length>0){B+="<param name=\"flashvars\" value=\""+A+"\" />"}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function AC_AX_RunContent(){var A=AC_AX_GetArgs(arguments);AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_AX_GetArgs(B){var A=new Object();A.embedAttrs=new Object();A.params=new Object();A.objAttrs=new Object();for(var C=0;C<B.length;C=C+2){var D=B[C].toLowerCase();switch(D){case"pluginspage":case"type":case"src":A.embedAttrs[B[C]]=B[C+1];break;case"data":case"codebase":case"classid":case"id":case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":A.objAttrs[B[C]]=B[C+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":A.embedAttrs[B[C]]=A.objAttrs[B[C]]=B[C+1];break;default:A.embedAttrs[B[C]]=A.params[B[C]]=B[C+1]}}return A}var catalogs=[];function catalogselect(B,E,D,F,C,A){if(!B){return catalog_error("Error calling the CatalogSelect: no id_target control specified")}if(B.value==null){return catalog_error("Error calling the CatalogSelect: parameter id_target specified is not valid target control")}if(!E){return catalog_error("Error calling the CatalogSelect: no title_target control specified")}if(E.value==null){return catalog_error("Error calling the CatalogSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=E;this.vrootpath=D;this.parentId=F;this.catalogTypeId=C;this.ignoreCatalogId=A;this.popup=catalogselect_popup1;this.id=catalogs.length;catalogs[this.id]=this}function catalogselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/catalog/tree/catalogSelect.jsp?parentId="+this.parentId+"&objectid="+this.id+"&catalogTypeId="+this.catalogTypeId+"&ignoreCatalogId="+this.ignoreCatalogId,"CatalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function catalog_error(A){alert(A);return null}var catalogitems=[];function catalogitemselect(B,E,D,F,C,A){if(!B){return catalog_item_error("Error calling the CatalogItemSelect: no id_target control specified")}if(B.value==null){return catalog_item_error("Error calling the CatalogItemSelect: parameter id_target specified is not valid target control")}if(!E){return catalog_item_error("Error calling the CatalogItemSelect: no title_target control specified")}if(E.value==null){return catalog_item_error("Error calling the CatalogItemSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=E;this.vrootpath=D;this.parentId=F;this.catalogTypeId=C;this.ignoreCatalogId=A;this.popup=catalogitemselect_popup1;this.id=catalogitems.length;catalogitems[this.id]=this}function catalogitemselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/catalog/tree/catalogItemSelect.jsp?parentId="+this.parentId+"&objectid="+this.id+"&catalogTypeId="+this.catalogTypeId+"&ignoreCatalogId="+this.ignoreCatalogId,"CatalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function catalog_item_error(A){alert(A);return null}var resourcecatalogs=[];function resourcecatalogselect(G,H,F,E,C,A,I,B,D){if(!G){return resource_catalog_error("Error calling the catalogSelect: no id_target control specified")}if(G.value==null){return resource_catalog_error("Error calling the catalogSelect: parameter id_target specified is not valid target control")}if(!H){return resource_catalog_error("Error calling the catalogSelect: no title_target control specified")}if(H.value==null){return resource_catalog_error("Error calling the catalogSelect: parameter title_target specified is not valid target control")}this.id_target_field=G;this.title_target_field=H;this.vrootpath=F;this.catalogType=E;this.parentCatalogId=C;this.ignoreCatalogId=A;this.rootCatalogId=I;this.onlyContainer=B;this.callParentSetObject=D;this.popup=resourcecatalogselect_popup1;this.id=resourcecatalogs.length;resourcecatalogs[this.id]=this}function resourcecatalogselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/resourceCatalogSelect.jsp?objectid="+this.id+"&catalogType="+this.catalogType+"&parentCatalogId="+this.parentCatalogId+"&ignoreCatalogId="+this.ignoreCatalogId+"&rootCatalogId="+this.rootCatalogId+"&onlyContainer="+this.onlyContainer+"&callParentSetObject="+this.callParentSetObject,"catalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function resource_catalog_error(A){alert(A);return null}var completecatalogs=[];function completecatalogselect(C,A,B,F,D,G,E){if(!C){return completecatalog_error("Error calling the catalogSelect: no form_target control specified")}if(!A){return completecatalog_error("Error calling the catalogSelect: no catalogType_target control specified")}if(A.value==null){return completecatalog_error("Error calling the catalogSelect: parameter catalogType_target specified is not valid target control")}if(!B){return completecatalog_error("Error calling the catalogSelect: no catalogId_target control specified")}if(B.value==null){return completecatalog_error("Error calling the catalogSelect: parameter catalogId_target specified is not valid target control")}if(!F){return completecatalog_error("Error calling the catalogSelect: no catalogName_target control specified")}if(F.value==null){return completecatalog_error("Error calling the catalogSelect: parameter catalogName_target specified is not valid target control")}this.target_form=C;this.catalogType_target_field=A;this.catalogId_target_field=B;this.catalogName_target_field=F;this.vrootpath=D;this.catalogType=G;this.parentCatalogId=E;this.popup=completecatalogselect_popup1;this.id=completecatalogs.length;completecatalogs[this.id]=this}function completecatalogselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/completeCatalogSelect.jsp?objectid="+this.id+"&catalogType="+this.catalogType+"&parentCatalogId="+this.parentCatalogId,"catalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function completecatalog_error(A){alert(A);return null}var subjectknowledges=[];function subjectknowledgeselect(A,D,B,C){if(!A){return subject_knowledge_error("Error calling the catalogSelect: no id_target control specified")}if(A.value==null){return subject_knowledge_error("Error calling the catalogSelect: parameter id_target specified is not valid target control")}if(!D){return subject_knowledge_error("Error calling the catalogSelect: no title_target control specified")}if(D.value==null){return subject_knowledge_error("Error calling the catalogSelect: parameter title_target specified is not valid target control")}this.id_target_field=A;this.title_target_field=D;this.vrootpath=B;this.subjectId=C;this.popup=subjectknowledgeselect_popup1;this.id=subjectknowledges.length;subjectknowledges[this.id]=this}function subjectknowledgeselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/subjectKnowledgeSelect.jsp?objectid="+this.id+"&subjectId="+this.subjectId,"subjectKnowledgeSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function subject_knowledge_error(A){alert(A);return null}var bookknowledges=[];function bookknowledgeselect(A,F,D,E,B,C){if(!A){return book_knowledge_error("Error calling the catalogSelect: no id_target control specified")}if(A.value==null){return book_knowledge_error("Error calling the catalogSelect: parameter id_target specified is not valid target control")}if(!F){return book_knowledge_error("Error calling the catalogSelect: no title_target control specified")}if(F.value==null){return book_knowledge_error("Error calling the catalogSelect: parameter title_target specified is not valid target control")}this.id_target_field=A;this.title_target_field=F;this.vrootpath=D;this.subjectId=E;this.publisherId=B;this.gradeId=C;this.popup=bookknowledgeselect_popup1;this.id=bookknowledges.length;bookknowledges[this.id]=this}function bookknowledgeselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/bookKnowledgeSelect.jsp?objectid="+this.id+"&amp;subjectId="+this.subjectId+"&amp;publisherId="+this.publisherId+"&gradeId="+this.gradeId,"bookKnowledgeSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function book_knowledge_error(A){alert(A);return null}var productcecatalogs=[];function productcatalogselect(B,H,E,C,G,F,A,D){if(!B){return resource_catalog_error("Error calling the catalogSelect: no id_target control specified")}if(B.value==null){return resource_catalog_error("Error calling the catalogSelect: parameter id_target specified is not valid target control")}if(!H){return resource_catalog_error("Error calling the catalogSelect: no title_target control specified")}if(H.value==null){return resource_catalog_error("Error calling the catalogSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=H;this.vrootpath=E;this.productInstanceId=C;this.catalogType=G;this.parentCatalogId=F;this.ignoreCatalogId=A;this.rootCatalogId=D;this.popup=productcatalogselect_popup1;this.id=productcecatalogs.length;productcecatalogs[this.id]=this}function productcatalogselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/productCatalogSelect.jsp?objectid="+this.id+"&productInstanceId="+this.productInstanceId+"&catalogType="+this.catalogType+"&parentCatalogId="+this.parentCatalogId+"&ignoreCatalogId="+this.ignoreCatalogId+"&rootCatalogId="+this.rootCatalogId,"productCatalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}var subjectCatalogs=[];function subjectCatalogSelect(A,D,B,C){if(!A){alert("Error calling the catalogSelect: no id_target control specified");return }if(A.value==null){alert("Error calling the catalogSelect: parameter id_target specified is not valid target control");return }if(!D){alert("Error calling the catalogSelect: no title_target control specified");return }if(D.value==null){alert("Error calling the catalogSelect: parameter title_target specified is not valid target control");return }this.subject_id_target_field=A;this.subject_title_target_field=D;this.vrootpath=B;this.audienceEducationalTypeCatalogId=C;this.popup=subjectCatalogSelect_popup1;this.id=subjectCatalogs.length;subjectCatalogs[this.id]=this}function subjectCatalogSelect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/subjectCatalogSelect.jsp?objectid="+this.id+"&audienceEducationalTypeCatalogId="+this.audienceEducationalTypeCatalogId,"subjectCatalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}var publisherCatalogs=[];function publisherCatalogSelect(A,D,C,B){if(!A){alert("Error calling the catalogSelect: no id_target control specified");return }if(A.value==null){alert("Error calling the catalogSelect: parameter id_target specified is not valid target control");return }if(!D){alert("Error calling the catalogSelect: no title_target control specified");return }if(D.value==null){alert("Error calling the catalogSelect: parameter title_target specified is not valid target control");return }this.publisher_id_target_field=A;this.publisher_title_target_field=D;this.vrootpath=C;this.subjectCatalogId=B;this.popup=publisherCatalogSelect_popup1;this.id=publisherCatalogs.length;publisherCatalogs[this.id]=this}function publisherCatalogSelect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/publisherCatalogSelect.jsp?objectid="+this.id+"&subjectCatalogId="+this.subjectCatalogId,"publisherCatalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}var gradeCatalogs=[];function gradeCatalogSelect(A,E,C,B,D){if(!A){alert("Error calling the catalogSelect: no id_target control specified");return }if(A.value==null){alert("Error calling the catalogSelect: parameter id_target specified is not valid target control");return }if(!E){alert("Error calling the catalogSelect: no title_target control specified");return }if(E.value==null){alert("Error calling the catalogSelect: parameter title_target specified is not valid target control");return }this.grade_id_target_field=A;this.grade_title_target_field=E;this.vrootpath=C;this.subjectCatalogId=B;this.publisherCatalogId=D;this.popup=gradeCatalogSelect_popup1;this.id=gradeCatalogs.length;gradeCatalogs[this.id]=this}function gradeCatalogSelect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/resource/catalogtree/gradeCatalogSelect.jsp?objectid="+this.id+"&subjectCatalogId="+this.subjectCatalogId+"&publisherCatalogId="+this.publisherCatalogId,"gradeCatalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}var columns=[];function columnselect(B,F,E,G,A,D,C){if(!B){return column_error("Error calling the columnSelect: no id_target control specified")}if(B.value==null){return column_error("Error calling the columnSelect: parameter id_target specified is not valid target control")}if(!F){return column_error("Error calling the columnSelect: no title_target control specified")}if(F.value==null){return column_error("Error calling the columnSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=F;this.vrootpath=E;this.parentId=G;this.companyId=A;this.groupId=D;this.ignoreColumnId=C;this.popup=columnselect_popup1;this.id=columns.length;columns[this.id]=this}function columnselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/news/tree/columnSelect.jsp?rootColumnId="+this.parentId+"&parentId="+this.parentId+"&objectid="+this.id+"&companyId="+this.companyId+"&groupId="+this.groupId+"&ignoreColumnId="+this.ignoreColumnId,"columnSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function column_error(A){alert(A);return null}var newsentrys=[];function newsentryselect(B,F,E,G,A,D,C){if(!B){return news_entry_error("Error calling the newsentryselect: no id_target control specified")}if(B.value==null){return news_entry_error("Error calling the newsentryselect: parameter id_target specified is not valid target control")}if(!F){return news_entry_error("Error calling the newsentryselect: no title_target control specified")}if(F.value==null){return news_entry_error("Error calling the newsentryselect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=F;this.vrootpath=E;this.parentId=G;this.companyId=A;this.groupId=D;this.ignoreColumnId=C;this.popup=newsentryselect_popup1;this.id=newsentrys.length;newsentrys[this.id]=this}function newsentryselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/news/tree/newsEntrySelect.jsp?parentId="+this.parentId+"&objectid="+this.id+"&companyId="+this.companyId+"&groupId="+this.groupId+"&ignoreColumnId="+this.ignoreColumnId,"newsentryselect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function news_entry_error(A){alert(A);return null}var importercolumns=[];function importercolumnselect(C,F,D,G,B,E,A){if(!C){return importercolumn_error("Error calling the columnSelect: no id_target control specified")}if(C.value==null){return importercolumn_error("Error calling the columnSelect: parameter id_target specified is not valid target control")}if(!F){return importercolumn_error("Error calling the columnSelect: no title_target control specified")}if(F.value==null){return importercolumn_error("Error calling the columnSelect: parameter title_target specified is not valid target control")}this.id_target_field=C;this.title_target_field=F;this.vrootpath=D;this.parentId=G;this.companyId=B;this.importerId=E;this.importerType=A;this.popup=importercolumnselect_popup1;this.id=importercolumns.length;importercolumns[this.id]=this}function importercolumnselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/news/importer/tree/importerColumnSelect.jsp?parentId="+this.parentId+"&objectid="+this.id+"&companyId="+this.companyId+"&importerId="+this.importerId+"&importerType="+this.importerType,"importerColumnSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function importercolumn_error(A){alert(A);return null}var importerpublishdoccatalogs=[];function importerpublishdoccatalogselect(B,E,C,F,A,D){if(!B){return importerpublishdoccatalog_error("Error calling the columnSelect: no id_target control specified")}if(B.value==null){return importerpublishdoccatalog_error("Error calling the columnSelect: parameter id_target specified is not valid target control")}if(!E){return importerpublishdoccatalog_error("Error calling the columnSelect: no title_target control specified")}if(E.value==null){return importerpublishdoccatalog_error("Error calling the columnSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=E;this.vrootpath=C;this.parentId=F;this.companyId=A;this.importerId=D;this.popup=importerpublishdoccatalogselect_popup1;this.id=importerpublishdoccatalogs.length;importerpublishdoccatalogs[this.id]=this}function importerpublishdoccatalogselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/catalog/importer/tree/importerPublishDocCatalogSelect.jsp?parentId="+this.parentId+"&objectid="+this.id+"&companyId="+this.companyId+"&importerId="+this.importerId,"importerPublishDocCatalogSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function importerpublishdoccatalog_error(A){alert(A);return null}var flooble_perline=9;var flooble_divSet=false;var flooble_curId;var flooble_colorLevels=Array("0","3","6","9","C","F");var flooble_colorArray=Array();var flooble_ie=false;var flooble_nocolor="none";if(document.all){flooble_ie=true;flooble_nocolor=""}function flooble_getObj(A){if(flooble_ie){return document.all[A]}else{return document.getElementById(A)}}function flooble_addColor(D,C,B){var F=flooble_colorLevels[D];var E=flooble_colorLevels[C];var A=flooble_colorLevels[B];flooble_addColorValue(F,E,A)}function flooble_addColorValue(C,B,A){flooble_colorArray[flooble_colorArray.length]="#"+C+C+B+B+A+A}function flooble_setColor(color){var link=flooble_getObj(flooble_curId);var field=flooble_getObj(flooble_curId+"field");var picker=flooble_getObj("colorpicker");field.value=color;if(color==""){link.style.background=flooble_nocolor;link.style.color=flooble_nocolor;color=flooble_nocolor}else{link.style.background=color;link.style.color=color}picker.style.display="none";eval(flooble_getObj(flooble_curId+"field").title)}function flooble_setDiv(){if(!document.createElement){return }var A=document.createElement("div");if(typeof (A.innerHTML)!="string"){return }flooble_genColors();A.id="colorpicker";A.style.position="absolute";A.style.display="none";A.style.border="#000000 1px solid";A.style.background="#FFFFFF";A.innerHTML=flooble_getColorTable();document.body.appendChild(A);flooble_divSet=true}function flooble_pickColor(C){if(!flooble_divSet){flooble_setDiv()}var B=flooble_getObj("colorpicker");if(C==flooble_curId&&B.style.display=="block"){B.style.display="none";return }flooble_curId=C;var A=flooble_getObj(C);B.style.top=flooble_getAbsoluteOffsetTop(A)+20;B.style.left=flooble_getAbsoluteOffsetLeft(A);B.style.display="block"}function flooble_genColors(){flooble_addColorValue("0","0","0");flooble_addColorValue("3","3","3");flooble_addColorValue("6","6","6");flooble_addColorValue("8","8","8");flooble_addColorValue("9","9","9");flooble_addColorValue("A","A","A");flooble_addColorValue("C","C","C");flooble_addColorValue("E","E","E");flooble_addColorValue("F","F","F");for(a=1;a<flooble_colorLevels.length;a++){flooble_addColor(0,0,a)}for(a=1;a<flooble_colorLevels.length-1;a++){flooble_addColor(a,a,5)}for(a=1;a<flooble_colorLevels.length;a++){flooble_addColor(0,a,0)}for(a=1;a<flooble_colorLevels.length-1;a++){flooble_addColor(a,5,a)}for(a=1;a<flooble_colorLevels.length;a++){flooble_addColor(a,0,0)}for(a=1;a<flooble_colorLevels.length-1;a++){flooble_addColor(5,a,a)}for(a=1;a<flooble_colorLevels.length;a++){flooble_addColor(a,a,0)}for(a=1;a<flooble_colorLevels.length-1;a++){flooble_addColor(5,5,a)}for(a=1;a<flooble_colorLevels.length;a++){flooble_addColor(0,a,a)}for(a=1;a<flooble_colorLevels.length-1;a++){flooble_addColor(a,5,5)}for(a=1;a<flooble_colorLevels.length;a++){flooble_addColor(a,0,a)}for(a=1;a<flooble_colorLevels.length-1;a++){flooble_addColor(5,a,5)}return flooble_colorArray}function flooble_getColorTable(){var A=flooble_colorArray;var B="";B+="<table border=\"0\" cellspacing=\"1\" cellpadding=\"1\">";for(i=0;i<A.length;i++){if(i%flooble_perline==0){B+="<tr>"}B+="<td bgcolor=\"#000000\"><a style=\"outline: 1px solid #000000; color: "+A[i]+"; background: "+A[i]+";font-size: 14px;\" title=\""+A[i]+"\" href=\"javascript:flooble_setColor_local('"+A[i]+"');\">&nbsp;&nbsp;&nbsp;&nbsp;</a></td>";if(i%flooble_perline==flooble_perline-1){B+="</tr>"}}if(i%flooble_perline!=0){B+="</tr>"}B+="</table>";return B}function flooble_relateColor(id,color){var link=flooble_getObj(id);if(color==""){link.style.background=flooble_nocolor;link.style.color=flooble_nocolor;color=flooble_nocolor}else{link.style.background=color;link.style.color=color}eval(flooble_getObj(id+"field").title)}function flooble_getAbsoluteOffsetTop(C){var B=C.offsetTop;var A=C.offsetParent;while(A!=document.body){B+=A.offsetTop;A=A.offsetParent}return B}function flooble_getAbsoluteOffsetLeft(C){var B=C.offsetLeft;var A=C.offsetParent;while(A!=document.body){B+=A.offsetLeft;A=A.offsetParent}return B}var positions=[];function positionselect(B,D,C,E,A){if(!B){return column_error("Error calling the positionSelect: no id_target control specified")}if(B.value==null){return column_error("Error calling the positionSelect: parameter id_target specified is not valid target control")}if(!D){return column_error("Error calling the positionSelect: no title_target control specified")}if(D.value==null){return position_error("Error calling the positionSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=D;this.vrootpath=C;this.parentId=E;this.companyId=A;this.popup=positionselect_popup1;this.id=positions.length;positions[this.id]=this}function positionselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/profile/tree/positionSelect.jsp?parentId="+this.parentId+"&objectid="+this.id+"&companyId="+this.companyId,"positionSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function position_error(A){alert(A);return null}var departments=[];function departmentselect(C,E,D,B,A){if(!C){return column_error("Error calling the departmentSelect: no id_target control specified")}if(C.value==null){return column_error("Error calling the departmentSelect: parameter id_target specified is not valid target control")}if(!E){return column_error("Error calling the departmentSelect: no title_target control specified")}if(E.value==null){return department_error("Error calling the departmentSelect: parameter title_target specified is not valid target control")}this.id_target_field=C;this.title_target_field=E;this.vrootpath=D;this.positionId=B;this.companyId=A;this.popup=departmentselect_popup1;this.id=departments.length;departments[this.id]=this}function departmentselect_popup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/profile/tree/departmentSelect.jsp?positionId="+this.positionId+"&objectid="+this.id+"&companyId="+this.companyId,"departmentSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function department_error(A){alert(A);return null}var eduunits=[];function eduUnitSelect(B,G,E,D,A,F,C){if(!B){return edu_unit_error("Error calling the eduUnitSelect: no id_target control specified")}if(B.value==null){return edu_unit_error("Error calling the eduUnitSelect: parameter id_target specified is not valid target control")}if(!G){return edu_unit_error("Error calling the eduUnitSelect: no title_target control specified")}if(G.value==null){return edu_unit_error("Error calling the eduUnitSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=G;this.vrootpath=E;this.departmentId=D;this.parentUnitId=A;this.unitId=F;this.unitTypes=C;this.popup=eduUnitSelectPopup1;this.id=eduunits.length;eduunits[this.id]=this}function eduUnitSelectPopup1(){var A=window.open(this.vrootpath+"/html/portlet/ext/eduray/tree/eduUnitSelect.jsp?departmentId="+this.departmentId+"&parentUnitId="+this.parentUnitId+"&unitId="+this.unitId+"&unitTypes="+this.unitTypes+"&objectid="+this.id,"eduUnitSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}function edu_unit_error(A){alert(A);return null}var codeitems=[];function codeItemSelect(B,F,C,D,A,E){if(!B){return edurayCommonError("Error calling the codeItemSelect: no id_target control specified")}if(B.value==null){return edurayCommonError("Error calling the codeItemSelect: parameter id_target specified is not valid target control")}if(!F){return edurayCommonError("Error calling the codeItemSelect: no title_target control specified")}if(F.value==null){return edurayCommonError("Error calling the codeItemSelect: parameter title_target specified is not valid target control")}this.id_target_field=B;this.title_target_field=F;this.vrootpath=C;this.categoryId=D;this.parentItemId=A;this.itemId=E;this.popup=codeItemSelectPopup1;this.id=codeitems.length;codeitems[this.id]=this}function codeItemSelectPopup1(){url=this.vrootpath+"/html/portlet/eduray/code/tree/codeItemSelect.jsp?categoryId="+this.categoryId+"&parentItemId="+this.parentItemId+"&itemId"+this.itemId+"&objectid="+this.id;var A=window.open(url,"codeItemSelect","width=300,height=400,scrollbars=yes,status=yes,resizable=yes,top=200,left=200,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}if(DWREngine==null){var DWREngine={}}DWREngine.setErrorHandler=function(A){DWREngine._errorHandler=A};DWREngine.setWarningHandler=function(A){DWREngine._warningHandler=A};DWREngine.setTimeout=function(A){DWREngine._timeout=A};DWREngine.setPreHook=function(A){DWREngine._preHook=A};DWREngine.setPostHook=function(A){DWREngine._postHook=A};DWREngine.XMLHttpRequest=1;DWREngine.IFrame=2;DWREngine.setMethod=function(A){if(A!=DWREngine.XMLHttpRequest&&A!=DWREngine.IFrame){DWREngine._handleError("Remoting method must be one of DWREngine.XMLHttpRequest or DWREngine.IFrame");return }DWREngine._method=A};DWREngine.setVerb=function(A){if(A!="GET"&&A!="POST"){DWREngine._handleError("Remoting verb must be one of GET or POST");return }DWREngine._verb=A};DWREngine.setOrdered=function(A){DWREngine._ordered=A};DWREngine.setAsync=function(A){DWREngine._async=A};DWREngine.setTextHtmlHandler=function(A){DWREngine._textHtmlHandler=A};DWREngine.defaultMessageHandler=function(A){if(typeof A=="object"&&A.name=="Error"&&A.description){alert("Error: "+A.description)}else{if(A.toString().indexOf("0x80040111")==-1){alert(A)}}};DWREngine.beginBatch=function(){if(DWREngine._batch){DWREngine._handleError("Batch already started.");return }DWREngine._batch={map:{callCount:0},paramCount:0,ids:[],preHooks:[],postHooks:[]}};DWREngine.endBatch=function(B){var A=DWREngine._batch;if(A==null){DWREngine._handleError("No batch in progress.");return }if(B&&B.preHook){A.preHooks.unshift(B.preHook)}if(B&&B.postHook){A.postHooks.push(B.postHook)}if(DWREngine._preHook){A.preHooks.unshift(DWREngine._preHook)}if(DWREngine._postHook){A.postHooks.push(DWREngine._postHook)}if(A.method==null){A.method=DWREngine._method}if(A.verb==null){A.verb=DWREngine._verb}if(A.async==null){A.async=DWREngine._async}if(A.timeout==null){A.timeout=DWREngine._timeout}A.completed=false;DWREngine._batch=null;if(!DWREngine._ordered){DWREngine._sendData(A);DWREngine._batches[DWREngine._batches.length]=A}else{if(DWREngine._batches.length==0){DWREngine._sendData(A);DWREngine._batches[DWREngine._batches.length]=A}else{DWREngine._batchQueue[DWREngine._batchQueue.length]=A}}};DWREngine._errorHandler=DWREngine.defaultMessageHandler;DWREngine._warningHandler=null;DWREngine._preHook=null;DWREngine._postHook=null;DWREngine._batches=[];DWREngine._batchQueue=[];DWREngine._handlersMap={};DWREngine._method=DWREngine.XMLHttpRequest;DWREngine._verb="POST";DWREngine._ordered=false;DWREngine._async=true;DWREngine._batch=null;DWREngine._timeout=0;DWREngine._DOMDocument=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];DWREngine._XMLHTTP=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];DWREngine._execute=function(N,D,L,K){var H=false;if(DWREngine._batch==null){DWREngine.beginBatch();H=true}var J=[];for(var G=0;G<arguments.length-3;G++){J[G]=arguments[G+3]}if(DWREngine._batch.path==null){DWREngine._batch.path=N}else{if(DWREngine._batch.path!=N){DWREngine._handleError("Can't batch requests to multiple DWR Servlets.");return }}var F;var C;var E=J[0];var M=J[J.length-1];if(typeof E=="function"){C={callback:J.shift()};F=J}else{if(typeof M=="function"){C={callback:J.pop()};F=J}else{if(M!=null&&typeof M=="object"&&M.callback!=null&&typeof M.callback=="function"){C=J.pop();F=J}else{if(E==null){if(M==null&&J.length>2){DWREngine._handleError("Ambiguous nulls at start and end of parameter list. Which is the callback function?")}C={callback:J.shift()};F=J}else{if(M==null){C={callback:J.pop()};F=J}else{DWREngine._handleError("Missing callback function or metadata object.");return }}}}}var B=Math.floor(Math.random()*10001);var A=(B+"_"+new Date().getTime()).toString();var I="c"+DWREngine._batch.map.callCount+"-";DWREngine._batch.ids.push(A);if(C.method!=null){DWREngine._batch.method=C.method;delete C.method}if(C.verb!=null){DWREngine._batch.verb=C.verb;delete C.verb}if(C.async!=null){DWREngine._batch.async=C.async;delete C.async}if(C.timeout!=null){DWREngine._batch.timeout=C.timeout;delete C.timeout}if(C.preHook!=null){DWREngine._batch.preHooks.unshift(C.preHook);delete C.preHook}if(C.postHook!=null){DWREngine._batch.postHooks.push(C.postHook);delete C.postHook}if(C.errorHandler==null){C.errorHandler=DWREngine._errorHandler}if(C.warningHandler==null){C.warningHandler=DWREngine._warningHandler}DWREngine._handlersMap[A]=C;DWREngine._batch.map[I+"scriptName"]=D;DWREngine._batch.map[I+"methodName"]=L;DWREngine._batch.map[I+"id"]=A;for(G=0;G<F.length;G++){DWREngine._serializeAll(DWREngine._batch,[],F[G],I+"param"+G)}DWREngine._batch.map.callCount++;if(H){DWREngine.endBatch()}};DWREngine._sendData=function(E){if(E.map.callCount==0){return }for(var D=0;D<E.preHooks.length;D++){E.preHooks[D]()}E.preHooks=null;if(E.timeout&&E.timeout!=0){E.interval=setInterval(function(){DWREngine._abortRequest(E)},E.timeout)}var G;if(E.map.callCount==1){G=E.map["c0-scriptName"]+"."+E.map["c0-methodName"]+".dwr"}else{G="Multiple."+E.map.callCount+".dwr"}if(E.method==DWREngine.XMLHttpRequest){if(window.XMLHttpRequest){E.req=new XMLHttpRequest()}else{if(window.ActiveXObject&&!(navigator.userAgent.indexOf("Mac")>=0&&navigator.userAgent.indexOf("MSIE")>=0)){E.req=DWREngine._newActiveXObject(DWREngine._XMLHTTP)}}}var J="";var A;if(E.req){E.map.xml="true";if(E.async){E.req.onreadystatechange=function(){DWREngine._stateChange(E)}}var B=navigator.userAgent.indexOf("Safari/");if(B>=0){var H=navigator.userAgent.substring(B+7);if(parseInt(H,10)<400){E.verb=="GET"}}if(E.verb=="GET"){E.map.callCount=""+E.map.callCount;for(A in E.map){var C=encodeURIComponent(A);var K=encodeURIComponent(E.map[A]);if(K==""){DWREngine._handleError("Found empty qval for qkey="+C)}J+=C+"="+K+"&"}try{E.req.open("GET",E.path+"/exec/"+G+"?"+J,E.async);E.req.send(null);if(!E.async){DWREngine._stateChange(E)}}catch(I){DWREngine._handleMetaDataError(null,I)}}else{for(A in E.map){if(typeof E.map[A]!="function"){J+=A+"="+E.map[A]+"\n"}}try{E.req.open("POST",E.path+"/exec/"+G,E.async);E.req.setRequestHeader("Content-Type","text/plain");E.req.send(J);if(!E.async){DWREngine._stateChange(E)}}catch(I){DWREngine._handleMetaDataError(null,I)}}}else{E.map.xml="false";var F="dwr-if-"+E.map["c0-id"];E.div=document.createElement("div");E.div.innerHTML="<iframe src='javascript:void(0)' frameborder='0' width='0' height='0' id='"+F+"' name='"+F+"'></iframe>";document.body.appendChild(E.div);E.iframe=document.getElementById(F);E.iframe.setAttribute("style","width:0px; height:0px; border:0px;");if(E.verb=="GET"){for(A in E.map){if(typeof E.map[A]!="function"){J+=encodeURIComponent(A)+"="+encodeURIComponent(E.map[A])+"&"}}J=J.substring(0,J.length-1);E.iframe.setAttribute("src",E.path+"/exec/"+G+"?"+J);document.body.appendChild(E.iframe)}else{E.form=document.createElement("form");E.form.setAttribute("id","dwr-form");E.form.setAttribute("action",E.path+"/exec"+G);E.form.setAttribute("target",F);E.form.target=F;E.form.setAttribute("method","POST");for(A in E.map){var L=document.createElement("input");L.setAttribute("type","hidden");L.setAttribute("name",A);L.setAttribute("value",E.map[A]);E.form.appendChild(L)}document.body.appendChild(E.form);E.form.submit()}}};DWREngine._stateChange=function(batch){if(!batch.completed&&batch.req.readyState==4){try{var reply=batch.req.responseText;if(reply==null||reply==""){DWREngine._handleMetaDataWarning(null,"No data received from server")}else{var contentType=batch.req.getResponseHeader("Content-Type");if(!contentType.match(/^text\/plain/)&&!contentType.match(/^text\/javascript/)){if(DWREngine._textHtmlHandler&&contentType.match(/^text\/html/)){DWREngine._textHtmlHandler()}else{DWREngine._handleMetaDataWarning(null,"Invalid content type from server: '"+contentType+"'")}}else{if(reply.search("DWREngine._handle")==-1){DWREngine._handleMetaDataWarning(null,"Invalid reply from server")}else{eval(reply)}}}DWREngine._clearUp(batch)}catch(ex){if(ex==null){ex="Unknown error occured"}DWREngine._handleMetaDataWarning(null,ex)}finally{if(DWREngine._batchQueue.length!=0){var sendbatch=DWREngine._batchQueue.shift();DWREngine._sendData(sendbatch);DWREngine._batches[DWREngine._batches.length]=sendbatch}}}};DWREngine._handleResponse=function(E,D){var A=DWREngine._handlersMap[E];DWREngine._handlersMap[E]=null;if(A){try{if(A.callback){A.callback(D)}}catch(C){DWREngine._handleMetaDataError(A,C)}}if(DWREngine._method==DWREngine.IFrame){var B=DWREngine._batches[DWREngine._batches.length-1];if(B.map["c"+(B.map.callCount-1)+"-id"]==E){DWREngine._clearUp(B)}}};DWREngine._handleServerError=function(C,B){var A=DWREngine._handlersMap[C];DWREngine._handlersMap[C]=null;if(B.message){DWREngine._handleMetaDataError(A,B.message,B)}else{DWREngine._handleMetaDataError(A,B)}};DWREngine._eval=function(script){return eval(script)};DWREngine._abortRequest=function(B){if(B&&!B.completed){clearInterval(B.interval);DWREngine._clearUp(B);if(B.req){B.req.abort()}var A;for(var C=0;C<B.ids.length;C++){A=DWREngine._handlersMap[B.ids[C]];DWREngine._handleMetaDataError(A,"Timeout")}}};DWREngine._clearUp=function(A){if(A.completed){DWREngine._handleError("Double complete");return }if(A.div){A.div.parentNode.removeChild(A.div)}if(A.iframe){A.iframe.parentNode.removeChild(A.iframe)}if(A.form){A.form.parentNode.removeChild(A.form)}if(A.req){delete A.req}for(var B=0;B<A.postHooks.length;B++){A.postHooks[B]()}A.postHooks=null;for(var B=0;B<DWREngine._batches.length;B++){if(DWREngine._batches[B]==A){DWREngine._batches.splice(B,1);break}}A.completed=true};DWREngine._handleError=function(B,A){if(DWREngine._errorHandler){DWREngine._errorHandler(B,A)}};DWREngine._handleWarning=function(B,A){if(DWREngine._warningHandler){DWREngine._warningHandler(B,A)}};DWREngine._handleMetaDataError=function(A,C,B){if(A&&typeof A.errorHandler=="function"){A.errorHandler(C,B)}else{DWREngine._handleError(C,B)}};DWREngine._handleMetaDataWarning=function(A,C,B){if(A&&typeof A.warningHandler=="function"){A.warningHandler(C,B)}else{DWREngine._handleWarning(C,B)}};DWREngine._serializeAll=function(B,D,C,A){if(C==null){B.map[A]="null:null";return }switch(typeof C){case"boolean":B.map[A]="boolean:"+C;break;case"number":B.map[A]="number:"+C;break;case"string":B.map[A]="string:"+encodeURIComponent(C);break;case"object":if(C instanceof String){B.map[A]="String:"+encodeURIComponent(C)}else{if(C instanceof Boolean){B.map[A]="Boolean:"+C}else{if(C instanceof Number){B.map[A]="Number:"+C}else{if(C instanceof Date){B.map[A]="Date:"+C.getTime()}else{if(C instanceof Array){B.map[A]=DWREngine._serializeArray(B,D,C,A)}else{B.map[A]=DWREngine._serializeObject(B,D,C,A)}}}}}break;case"function":break;default:DWREngine._handleWarning("Unexpected type: "+typeof C+", attempting default converter.");B.map[A]="default:"+C;break}};DWREngine._lookup=function(E,C,A){var D;for(var B=0;B<E.length;B++){if(E[B].data==C){D=E[B];break}}if(D){return"reference:"+D.name}E.push({data:C,name:A});return null};DWREngine._serializeObject=function(C,H,G,B){var F=DWREngine._lookup(H,G,B);if(F){return F}if(G.nodeName&&G.nodeType){return DWREngine._serializeXml(C,H,G,B)}var E="Object:{";var D;for(D in G){C.paramCount++;var A="c"+DWREngine._batch.map.callCount+"-e"+C.paramCount;DWREngine._serializeAll(C,H,G[D],A);E+=encodeURIComponent(D)+":reference:"+A+", "}if(E.substring(E.length-2)==", "){E=E.substring(0,E.length-2)}E+="}";return E};DWREngine._serializeXml=function(C,F,E,B){var D=DWREngine._lookup(F,E,B);if(D){return D}var A;if(window.XMLSerializer){A=new XMLSerializer().serializeToString(E)}else{A=E.toXml}return"XML:"+encodeURIComponent(A)};DWREngine._serializeArray=function(C,H,G,B){var F=DWREngine._lookup(H,G,B);if(F){return F}var E="Array:[";for(var D=0;D<G.length;D++){if(D!=0){E+=","}C.paramCount++;var A="c"+DWREngine._batch.map.callCount+"-e"+C.paramCount;DWREngine._serializeAll(C,H,G[D],A);E+="reference:";E+=A}E+="]";return E};DWREngine._unserializeDocument=function(A){var C;if(window.DOMParser){var E=new DOMParser();C=E.parseFromString(A,"text/xml");if(!C.documentElement||C.documentElement.tagName=="parsererror"){var B=C.documentElement.firstChild.data;B+="\n"+C.documentElement.firstChild.nextSibling.firstChild.data;throw B}return C}else{if(window.ActiveXObject){C=DWREngine._newActiveXObject(DWREngine._DOMDocument);C.loadXML(A);return C}else{var D=document.createElement("div");D.innerHTML=A;return D}}};DWREngine._newActiveXObject=function(A){var D;for(var C=0;C<A.length;C++){try{D=new ActiveXObject(A[C]);break}catch(B){}}return D};if(typeof window.encodeURIComponent==="undefined"){DWREngine._utf8=function(B){B=""+B;var E;var D;var A="";var C=0;while(C<B.length){E=B.charCodeAt(C++);if(E>=56320&&E<57344){continue}if(E>=55296&&E<56320){if(C>=B.length){continue}D=B.charCodeAt(C++);if(D<56320||E>=56832){continue}E=((E-55296)<<10)+(D-56320)+65536}if(E<128){A+=String.fromCharCode(E)}else{if(E<2048){A+=String.fromCharCode(192+(E>>6),128+(E&63))}else{if(E<65536){A+=String.fromCharCode(224+(E>>12),128+(E>>6&63),128+(E&63))}else{A+=String.fromCharCode(240+(E>>18),128+(E>>12&63),128+(E>>6&63),128+(E&63))}}}}return A};DWREngine._hexchars="0123456789ABCDEF";DWREngine._toHex=function(A){return DWREngine._hexchars.charAt(A>>4)+DWREngine._hexchars.charAt(A&15)};DWREngine._okURIchars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";window.encodeURIComponent=function(C){C=DWREngine._utf8(C);var D;var A="";for(var B=0;B<C.length;B++){if(DWREngine._okURIchars.indexOf(C.charAt(B))==-1){A+="%"+DWREngine._toHex(C.charCodeAt(B))}else{A+=C.charAt(B)}}return A}}if(typeof Array.prototype.splice==="undefined"){Array.prototype.splice=function(C,B){if(arguments.length==0){return C}if(typeof C!="number"){C=0}if(C<0){C=Math.max(0,this.length+C)}if(C>this.length){if(arguments.length>2){C=this.length}else{return[]}}if(arguments.length<2){B=this.length-C}B=(typeof B=="number")?Math.max(0,B):0;removeArray=this.slice(C,C+B);endArray=this.slice(C+B);this.length=C;for(var A=2;A<arguments.length;A++){this[this.length]=arguments[A]}for(A=0;A<endArray.length;A++){this[this.length]=endArray[A]}return removeArray}}if(typeof Array.prototype.shift==="undefined"){Array.prototype.shift=function(C){var B=this[0];for(var A=1;A<this.length;++A){this[A-1]=this[A]}this.length--;return B}}if(typeof Array.prototype.unshift==="undefined"){Array.prototype.unshift=function(){var B=unshift.arguments.length;for(var A=this.length-1;A>=0;--A){this[A+B]=this[A]}for(A=0;A<B;++A){this[A]=unshift.arguments[A]}}}if(typeof Array.prototype.push==="undefined"){Array.prototype.push=function(){var B=this.length;for(var A=0;A<push.arguments.length;++A){this[B]=push.arguments[A];B++}}}if(typeof Array.prototype.pop==="undefined"){Array.prototype.pop=function(){var A=this[this.length-1];this.length--;return A}}function DWRUtil(){}DWRUtil.onReturn=function(A,B){if(!A){A=window.event}if(A&&A.keyCode&&A.keyCode==13){B()}};DWRUtil.selectRange=function(C,E,A){var D=C;C=$(C);if(C==null){DWRUtil.debug("selectRange() can't find an element with id: "+D+".");return }if(C.setSelectionRange){C.setSelectionRange(E,A)}else{if(C.createTextRange){var B=C.createTextRange();B.moveStart("character",E);B.moveEnd("character",A-C.value.length);B.select()}}C.focus()};DWRUtil._getSelection=function(A){var B=A;A=$(A);if(A==null){DWRUtil.debug("selectRange() can't find an element with id: "+B+".");return }return A.value.substring(A.selectionStart,A.selectionEnd)};var $;if(!$&&document.getElementById){$=function(){var C=new Array();for(var B=0;B<arguments.length;B++){var A=arguments[B];if(typeof A=="string"){A=document.getElementById(A)}if(arguments.length==1){return A}C.push(A)}return C}}else{if(!$&&document.all){$=function(){var C=new Array();for(var B=0;B<arguments.length;B++){var A=arguments[B];if(typeof A=="string"){A=document.all[A]}if(arguments.length==1){return A}C.push(A)}return C}}}DWRUtil.toDescriptiveString=function(H,C,F){var D="";var I=0;var L;var G;if(C==null){C=0}if(F==null){F=0}if(H==null){return"null"}if(DWRUtil._isArray(H)){if(H.length==0){D+="[]"}else{if(C!=0){D+="[\n"}else{D="["}for(I=0;I<H.length;I++){try{G=H[I];if(G==null||typeof G=="function"){continue}else{if(typeof G=="object"){if(C>0){L=DWRUtil.toDescriptiveString(G,C-1,F+1)}else{L=DWRUtil._detailedTypeOf(G)}}else{L=""+G;L=L.replace(/\/n/g,"\\n");L=L.replace(/\/t/g,"\\t")}}}catch(K){L=""+K}if(C!=0){D+=DWRUtil._indent(C,F+2)+L+", \n"}else{if(L.length>13){L=L.substring(0,10)+"..."}D+=L+", ";if(I>5){D+="...";break}}}if(C!=0){D+=DWRUtil._indent(C,F)+"]"}else{D+="]"}}return D}if(typeof H=="string"||typeof H=="number"||DWRUtil._isDate(H)){return H.toString()}if(typeof H=="object"){var E=DWRUtil._detailedTypeOf(H);if(E!="Object"){D=E+" "}if(C!=0){D+="{\n"}else{D="{"}var A=DWRUtil._isHTMLElement(H);for(var B in H){if(A){if(B.toUpperCase()==B||B=="title"||B=="lang"||B=="dir"||B=="className"||B=="form"||B=="name"||B=="prefix"||B=="namespaceURI"||B=="nodeType"||B=="firstChild"||B=="lastChild"||B.match(/^offset/)){continue}}L="";try{G=H[B];if(G==null||typeof G=="function"){continue}else{if(typeof G=="object"){if(C>0){L="\n";L+=DWRUtil._indent(C,F+2);L=DWRUtil.toDescriptiveString(G,C-1,F+1)}else{L=DWRUtil._detailedTypeOf(G)}}else{L=""+G;L=L.replace(/\/n/g,"\\n");L=L.replace(/\/t/g,"\\t")}}}catch(K){L=""+K}if(C==0&&L.length>13){L=L.substring(0,10)+"..."}var J=B;if(J.length>30){J=J.substring(0,27)+"..."}if(C!=0){D+=DWRUtil._indent(C,F+1)}D+=B+":"+L+", ";if(C!=0){D+="\n"}I++;if(C==0&&I>5){D+="...";break}}D+=DWRUtil._indent(C,F);D+="}";return D}return H.toString()};DWRUtil._indent=function(D,C){var B="";if(D!=0){for(var A=0;A<C;A++){B+="  "}B+=" "}return B};DWRUtil.useLoadingMessage=function(A){var B;if(A){B=A}else{B="Loading"}DWREngine.setPreHook(function(){var D=$("disabledZone");if(!D){D=document.createElement("div");D.setAttribute("id","disabledZone");D.style.position="absolute";D.style.zIndex="1000";D.style.left="0px";D.style.top="0px";D.style.width="100%";D.style.height="100%";document.body.appendChild(D);var C=document.createElement("div");C.setAttribute("id","messageZone");C.style.position="absolute";C.style.top="0px";C.style.right="0px";C.style.background="red";C.style.color="white";C.style.fontFamily="Arial,Helvetica,sans-serif";C.style.padding="4px";D.appendChild(C);var E=document.createTextNode(B);C.appendChild(E)}else{$("messageZone").innerHTML=B;D.style.visibility="visible"}});DWREngine.setPostHook(function(){$("disabledZone").style.visibility="hidden"})};DWRUtil.setValue=function(E,F,B){if(F==null){F=""}if(B!=null){if(B.escapeHtml){F=F.replace(/&/,"&amp;");F=F.replace(/'/,"&apos;");F=F.replace(/</,"&lt;");F=F.replace(/>/,"&gt;")}}var G=E;var A,D,C;E=$(E);if(E==null){A=document.getElementsByName(G);if(A.length>=1){E=A.item(0)}}if(E==null){DWRUtil.debug("setValue() can't find an element with id/name: "+G+".");return }if(DWRUtil._isHTMLElement(E,"select")){if(E.type=="select-multiple"&&DWRUtil._isArray(F)){DWRUtil._selectListItems(E,F)}else{DWRUtil._selectListItem(E,F)}return }if(DWRUtil._isHTMLElement(E,"input")){if(E.type=="radio"){if(A==null){A=document.getElementsByName(G)}if(A!=null&&A.length>1){for(C=0;C<A.length;C++){D=A.item(C);if(D.type=="radio"){D.checked=(D.value==F)}}}else{E.checked=(F==true)}}else{if(E.type=="checkbox"){E.checked=F}else{E.value=F}}return }if(DWRUtil._isHTMLElement(E,"textarea")){E.value=F;return }if(F.nodeType){if(F.nodeType==9){F=F.documentElement}F=DWRUtil._importNode(E.ownerDocument,F,true);E.appendChild(F);return }E.innerHTML=F};DWRUtil._selectListItems=function(D,E){var C=false;var B;var A;for(B=0;B<D.options.length;B++){D.options[B].selected=false;for(A=0;A<E.length;A++){if(D.options[B].value==E[A]){D.options[B].selected=true}}}if(C){return }for(B=0;B<D.options.length;B++){for(A=0;A<E.length;A++){if(D.options[B].text==E[A]){D.options[B].selected=true}}}};DWRUtil._selectListItem=function(C,D){var B=false;var A;for(A=0;A<C.options.length;A++){if(C.options[A].value==D){C.options[A].selected=true;B=true}else{C.options[A].selected=false}}if(B){return }for(A=0;A<C.options.length;A++){if(C.options[A].text==D){C.options[A].selected=true}else{C.options[A].selected=false}}};DWRUtil.getValue=function(F,B){if(B==null){B={}}var G=F;F=$(F);var A=document.getElementsByName(G);if(F==null&&A.length>=1){F=A.item(0)}if(F==null){DWRUtil.debug("getValue() can't find an element with id/name: "+G+".");return""}if(DWRUtil._isHTMLElement(F,"select")){var E=F.selectedIndex;if(E!=-1){var C=F.options[E].value;if(C==null||C==""){C=F.options[E].text}return C}else{return""}}if(DWRUtil._isHTMLElement(F,"input")){if(F.type=="radio"){var D;for(i=0;i<A.length;i++){D=A.item(i);if(D.type=="radio"){if(D.checked){if(A.length>1){return D.value}else{return true}}}}}switch(F.type){case"checkbox":case"check-box":case"radio":return F.checked;default:return F.value}}if(DWRUtil._isHTMLElement(F,"textarea")){return F.value}if(B.textContent){if(F.textContent){return F.textContent}else{if(F.innerText){return F.innerText}}}return F.innerHTML};DWRUtil.getText=function(B){var C=B;B=$(B);if(B==null){DWRUtil.debug("getText() can't find an element with id: "+C+".");return""}if(!DWRUtil._isHTMLElement(B,"select")){DWRUtil.debug("getText() can only be used with select elements. Attempt to use: "+DWRUtil._detailedTypeOf(B)+" from  id: "+C+".");return""}var A=B.selectedIndex;if(A!=-1){return B.options[A].text}else{return""}};DWRUtil.setValues=function(B){for(var A in B){if($(A)!=null||document.getElementsByName(A).length>=1){DWRUtil.setValue(A,B[A])}}};DWRUtil.getValues=function(F){var E;if(typeof F=="string"){E=$(F)}if(DWRUtil._isHTMLElement(F)){E=F}if(E!=null){if(E.elements==null){alert("getValues() requires an object or reference to a form element.");return null}var B={};var D;for(var A=0;A<E.elements.length;A++){if(E[A].id!=null){D=E[A].id}else{if(E[A].value!=null){D=E[A].value}else{D="element"+A}}B[D]=DWRUtil.getValue(E[A])}return B}else{for(var C in F){if($(C)!=null||document.getElementsByName(C).length>=1){F[C]=DWRUtil.getValue(C)}}return F}};DWRUtil.addOptions=function(K,E){var G=K;K=$(K);if(K==null){DWRUtil.debug("addOptions() can't find an element with id: "+G+".");return }var C=DWRUtil._isHTMLElement(K,"select");var F=DWRUtil._isHTMLElement(K,["ul","ol"]);if(!C&&!F){DWRUtil.debug("addOptions() can only be used with select/ul/ol elements. Attempt to use: "+DWRUtil._detailedTypeOf(K));return }if(E==null){return }var J;var H;var B;var I;if(DWRUtil._isArray(E)){for(var D=0;D<E.length;D++){if(C){if(arguments[2]!=null){if(arguments[3]!=null){J=DWRUtil._getValueFrom(E[D],arguments[3]);H=DWRUtil._getValueFrom(E[D],arguments[2])}else{H=DWRUtil._getValueFrom(E[D],arguments[2]);J=H}}else{J=DWRUtil._getValueFrom(E[D],arguments[3]);H=J}if(J||H){B=new Option(J,H);K.options[K.options.length]=B}}else{I=document.createElement("li");H=DWRUtil._getValueFrom(E[D],arguments[2]);if(H!=null){I.innerHTML=H;K.appendChild(I)}}}}else{if(arguments[3]!=null){for(var A in E){if(!C){alert("DWRUtil.addOptions can only create select lists from objects.");return }H=DWRUtil._getValueFrom(E[A],arguments[2]);J=DWRUtil._getValueFrom(E[A],arguments[3]);if(J||H){B=new Option(J,H);K.options[K.options.length]=B}}}else{for(var A in E){if(!C){DWRUtil.debug("DWRUtil.addOptions can only create select lists from objects.");return }if(typeof E[A]=="function"){J=null;H=null}else{if(arguments[2]){J=A;H=E[A]}else{J=E[A];H=A}}if(J||H){B=new Option(J,H);K.options[K.options.length]=B}}}}};DWRUtil._getValueFrom=function(A,B){if(B==null){return A}else{if(typeof B=="function"){return B(A)}else{return A[B]}}};DWRUtil.removeAllOptions=function(B){var D=B;B=$(B);if(B==null){DWRUtil.debug("removeAllOptions() can't find an element with id: "+D+".");return }var A=DWRUtil._isHTMLElement(B,"select");var C=DWRUtil._isHTMLElement(B,["ul","ol"]);if(!A&&!C){DWRUtil.debug("removeAllOptions() can only be used with select, ol and ul elements. Attempt to use: "+DWRUtil._detailedTypeOf(B));return }if(A){B.options.length=0}else{while(B.childNodes.length>0){B.removeChild(B.firstChild)}}};DWRUtil.addRows=function(E,D,A,B){var H=E;E=$(E);if(E==null){DWRUtil.debug("addRows() can't find an element with id: "+H+".");return }if(!DWRUtil._isHTMLElement(E,["table","tbody","thead","tfoot"])){DWRUtil.debug("addRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+DWRUtil._detailedTypeOf(E));return }if(!B){B={}}if(!B.rowCreator){B.rowCreator=DWRUtil._defaultRowCreator}if(!B.cellCreator){B.cellCreator=DWRUtil._defaultCellCreator}var C,F;if(DWRUtil._isArray(D)){for(F=0;F<D.length;F++){B.rowData=D[F];B.rowIndex=F;B.rowNum=F;B.data=null;B.cellNum=-1;C=DWRUtil._addRowInner(A,B);if(C!=null){E.appendChild(C)}}}else{if(typeof D=="object"){F=0;for(var G in D){B.rowData=D[G];B.rowIndex=G;B.rowNum=F;B.data=null;B.cellNum=-1;C=DWRUtil._addRowInner(A,B);if(C!=null){E.appendChild(C)}F++}}}};DWRUtil._addRowInner=function(A,B){var E=B.rowCreator(B);if(E==null){return null}for(var F=0;F<A.length;F++){var D=A[F];var C=D(B.rowData,B);B.data=C;B.cellNum=F;var G=B.cellCreator(B);if(G!=null){if(C!=null){if(DWRUtil._isHTMLElement(C)){G.appendChild(C)}else{G.innerHTML=C}}E.appendChild(G)}}return E};DWRUtil._defaultRowCreator=function(A){return document.createElement("tr")};DWRUtil._defaultCellCreator=function(A){return document.createElement("td")};DWRUtil.removeAllRows=function(A){var B=A;A=$(A);if(A==null){DWRUtil.debug("removeAllRows() can't find an element with id: "+B+".");return }if(!DWRUtil._isHTMLElement(A,["table","tbody","thead","tfoot"])){DWRUtil.debug("removeAllRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+DWRUtil._detailedTypeOf(A));return }while(A.childNodes.length>0){A.removeChild(A.firstChild)}};DWRUtil._isHTMLElement=function(C,E){if(C==null||typeof C!="object"||C.nodeName==null){return false}if(E!=null){var D=C.nodeName.toLowerCase();if(typeof E=="string"){return D==E.toLowerCase()}if(DWRUtil._isArray(E)){var A=false;for(var B=0;B<E.length&&!A;B++){if(D==E[B].toLowerCase()){A=true}}return A}DWRUtil.debug("DWRUtil._isHTMLElement was passed test node name that is neither a string or array of strings");return false}return true};DWRUtil._detailedTypeOf=function(A){var B=typeof A;if(B=="object"){B=Object.prototype.toString.apply(A);B=B.substring(8,B.length-1)}return B};DWRUtil._isArray=function(A){return(A&&A.join)?true:false};DWRUtil._isDate=function(A){return(A&&A.toUTCString)?true:false};DWRUtil._importNode=function(F,E,B){var D;if(E.nodeType==1){D=F.createElement(E.nodeName);for(var C=0;C<E.attributes.length;C++){var A=E.attributes[C];if(A.nodeValue!=null&&A.nodeValue!=""){D.setAttribute(A.name,A.nodeValue)}}if(typeof E.style!="undefined"){D.style.cssText=E.style.cssText}}else{if(E.nodeType==3){D=F.createTextNode(E.nodeValue)}}if(B&&E.hasChildNodes()){for(C=0;C<E.childNodes.length;C++){D.appendChild(DWRUtil._importNode(F,E.childNodes[C],true))}}return D};DWRUtil.debug=function(A){alert(A)};function Node(C,F,A,B,I,G,H,D,E){this.id=C;this.pid=F;this.name=A;this.url=B;this.title=I;this.target=G;this.icon=H;this.iconOpen=D;this._io=E||false;this._is=false;this._ls=false;this._hc=false;this._ai=0;this._p}function dTree(A){this.config={target:null,folderLinks:true,useSelection:true,useCookies:true,useLines:true,useIcons:true,useStatusText:false,closeSameLevel:false,inOrder:false};this.icon={root:"img/base.gif",folder:"img/folder.gif",folderOpen:"img/folderopen.gif",node:"img/page.gif",empty:"img/empty.gif",line:"img/line.gif",join:"img/join.gif",joinBottom:"img/joinbottom.gif",plus:"img/plus.gif",plusBottom:"img/plusbottom.gif",minus:"img/minus.gif",minusBottom:"img/minusbottom.gif",nlPlus:"img/nolines_plus.gif",nlMinus:"img/nolines_minus.gif"};this.obj=A;this.aNodes=[];this.aIndent=[];this.root=new Node(-1);this.selectedNode=null;this.selectedFound=false;this.completed=false}dTree.prototype.add=function(C,F,A,B,I,G,H,D,E){this.aNodes[this.aNodes.length]=new Node(C,F,A,B,I,G,H,D,E)};dTree.prototype.openAll=function(){this.oAll(true)};dTree.prototype.closeAll=function(){this.oAll(false)};dTree.prototype.toString=function(){var A="<div class=\"dtree\">\n";if(document.getElementById){if(this.config.useCookies){this.selectedNode=this.getSelected()}A+=this.addNode(this.root)}else{A+="Browser not supported."}A+="</div>";if(!this.selectedFound){this.selectedNode=null}this.completed=true;return A};dTree.prototype.addNode=function(A){var B="";var D=0;if(this.config.inOrder){D=A._ai}for(D;D<this.aNodes.length;D++){if(this.aNodes[D].pid==A.id){var C=this.aNodes[D];C._p=A;C._ai=D;this.setCS(C);if(!C.target&&this.config.target){C.target=this.config.target}if(C._hc&&!C._io&&this.config.useCookies){C._io=this.isOpen(C.id)}if(!this.config.folderLinks&&C._hc){C.url=null}if(this.config.useSelection&&C.id==this.selectedNode&&!this.selectedFound){C._is=true;this.selectedNode=D;this.selectedFound=true}B+=this.node(C,D);if(C._ls){break}}}return B};dTree.prototype.node=function(A,C){var B="<div class=\"dTreeNode\">"+this.indent(A,C);if(this.config.useIcons){if(!A.icon){A.icon=(this.root.id==A.pid)?this.icon.root:((A._hc)?this.icon.folder:this.icon.node)}if(!A.iconOpen){A.iconOpen=(A._hc)?this.icon.folderOpen:this.icon.node}if(this.root.id==A.pid){A.icon=this.icon.root;A.iconOpen=this.icon.root}B+="<img id=\"i"+this.obj+C+"\" src=\""+((A._io)?A.iconOpen:A.icon)+"\" alt=\"\" />"}if(A.url){B+="<a id=\"s"+this.obj+C+"\" class=\""+((this.config.useSelection)?((A._is?"nodeSel":"node")):"node")+"\" href=\""+A.url+"\"";if(A.title){B+=" title=\""+A.title+"\""}if(A.target){B+=" target=\""+A.target+"\""}if(this.config.useStatusText){B+=" onmouseover=\"window.status='"+A.name+"';return true;\" onmouseout=\"window.status='';return true;\" "}if(this.config.useSelection&&((A._hc&&this.config.folderLinks)||!A._hc)){B+=" onclick=\"javascript: "+this.obj+".s("+C+");\""}B+=">"}else{if((!this.config.folderLinks||!A.url)&&A._hc&&A.pid!=this.root.id){B+="<a href=\"javascript: "+this.obj+".o("+C+");\" class=\"node\">"}}B+=A.name;if(A.url||((!this.config.folderLinks||!A.url)&&A._hc)){B+="</a>"}B+="</div>";if(A._hc){B+="<div id=\"d"+this.obj+C+"\" class=\"clip\" style=\"display:"+((this.root.id==A.pid||A._io)?"block":"none")+";\">";B+=this.addNode(A);B+="</div>"}this.aIndent.pop();return B};dTree.prototype.indent=function(A,C){var B="";if(this.root.id!=A.pid){for(var D=0;D<this.aIndent.length;D++){B+="<img src=\""+((this.aIndent[D]==1&&this.config.useLines)?this.icon.line:this.icon.empty)+"\" alt=\"\" />"}(A._ls)?this.aIndent.push(0):this.aIndent.push(1);if(A._hc){B+="<a href=\"javascript: "+this.obj+".o("+C+");\"><img id=\"j"+this.obj+C+"\" src=\"";if(!this.config.useLines){B+=(A._io)?this.icon.nlMinus:this.icon.nlPlus}else{B+=((A._io)?((A._ls&&this.config.useLines)?this.icon.minusBottom:this.icon.minus):((A._ls&&this.config.useLines)?this.icon.plusBottom:this.icon.plus))}B+="\" alt=\"\" /></a>"}else{B+="<img src=\""+((this.config.useLines)?((A._ls)?this.icon.joinBottom:this.icon.join):this.icon.empty)+"\" alt=\"\" />"}}return B};dTree.prototype.setCS=function(A){var B;for(var C=0;C<this.aNodes.length;C++){if(this.aNodes[C].pid==A.id){A._hc=true}if(this.aNodes[C].pid==A.pid){B=this.aNodes[C].id}}if(B==A.id){A._ls=true}};dTree.prototype.getSelected=function(){var A=this.getCookie("cs"+this.obj);return(A)?A:null};dTree.prototype.s=function(B){if(!this.config.useSelection){return }var A=this.aNodes[B];if(A._hc&&!this.config.folderLinks){return }if(this.selectedNode!=B){if(this.selectedNode||this.selectedNode==0){eOld=document.getElementById("s"+this.obj+this.selectedNode);eOld.className="node"}eNew=document.getElementById("s"+this.obj+B);eNew.className="nodeSel";this.selectedNode=B;if(this.config.useCookies){this.setCookie("cs"+this.obj,A.id)}}};dTree.prototype.o=function(B){var A=this.aNodes[B];this.nodeStatus(!A._io,B,A._ls);A._io=!A._io;if(this.config.closeSameLevel){this.closeLevel(A)}if(this.config.useCookies){this.updateCookie()}};dTree.prototype.oAll=function(A){for(var B=0;B<this.aNodes.length;B++){if(this.aNodes[B]._hc&&this.aNodes[B].pid!=this.root.id){this.nodeStatus(A,B,this.aNodes[B]._ls);this.aNodes[B]._io=A}}if(this.config.useCookies){this.updateCookie()}};dTree.prototype.openTo=function(B,A,C){if(!C){for(var E=0;E<this.aNodes.length;E++){if(this.aNodes[E].id==B){B=E;break}}}var D=this.aNodes[B];if(D.pid==this.root.id||!D._p){return }D._io=true;D._is=A;if(this.completed&&D._hc){this.nodeStatus(true,D._ai,D._ls)}if(this.completed&&A){this.s(D._ai)}else{if(A){this._sn=D._ai}}this.openTo(D._p._ai,false,true)};dTree.prototype.closeLevel=function(A){for(var B=0;B<this.aNodes.length;B++){if(this.aNodes[B].pid==A.pid&&this.aNodes[B].id!=A.id&&this.aNodes[B]._hc){this.nodeStatus(false,B,this.aNodes[B]._ls);this.aNodes[B]._io=false;this.closeAllChildren(this.aNodes[B])}}};dTree.prototype.closeAllChildren=function(A){for(var B=0;B<this.aNodes.length;B++){if(this.aNodes[B].pid==A.id&&this.aNodes[B]._hc){if(this.aNodes[B]._io){this.nodeStatus(false,B,this.aNodes[B]._ls)}this.aNodes[B]._io=false;this.closeAllChildren(this.aNodes[B])}}};dTree.prototype.nodeStatus=function(A,C,B){eDiv=document.getElementById("d"+this.obj+C);eJoin=document.getElementById("j"+this.obj+C);if(this.config.useIcons){eIcon=document.getElementById("i"+this.obj+C);eIcon.src=(A)?this.aNodes[C].iconOpen:this.aNodes[C].icon}eJoin.src=(this.config.useLines)?((A)?((B)?this.icon.minusBottom:this.icon.minus):((B)?this.icon.plusBottom:this.icon.plus)):((A)?this.icon.nlMinus:this.icon.nlPlus);eDiv.style.display=(A)?"block":"none"};dTree.prototype.clearCookie=function(){var A=new Date();var B=new Date(A.getTime()-1000*60*60*24);this.setCookie("co"+this.obj,"cookieValue",B);this.setCookie("cs"+this.obj,"cookieValue",B)};dTree.prototype.setCookie=function(F,E,A,D,B,C){document.cookie=escape(F)+"="+escape(E)+(A?"; expires="+A.toGMTString():"")+(D?"; path="+D:"")+(B?"; domain="+B:"")+(C?"; secure":"")};dTree.prototype.getCookie=function(E){var D="";var B=document.cookie.indexOf(escape(E)+"=");if(B!=-1){var C=B+(escape(E)+"=").length;var A=document.cookie.indexOf(";",C);if(A!=-1){D=unescape(document.cookie.substring(C,A))}else{D=unescape(document.cookie.substring(C))}}return(D)};dTree.prototype.updateCookie=function(){var A="";for(var B=0;B<this.aNodes.length;B++){if(this.aNodes[B]._io&&this.aNodes[B].pid!=this.root.id){if(A){A+="."}A+=this.aNodes[B].id}}this.setCookie("co"+this.obj,A)};dTree.prototype.isOpen=function(C){var B=this.getCookie("co"+this.obj).split(".");for(var A=0;A<B.length;A++){if(B[A]==C){return true}}return false};if(!Array.prototype.push){Array.prototype.push=function array_push(){for(var A=0;A<arguments.length;A++){this[this.length]=arguments[A]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function array_pop(){lastElement=this[this.length-1];this.length=Math.max(this.length-1,0);return lastElement}}var users=[];function userSelect(E,D,C,A,B){if(!E){alert("Error calling the userSelect: no userId_field control specified");return null}if(!D){alert("Error calling the userSelect: no fullName_field control specified");return null}if(!C){alert("Error calling the userSelect: no screenName_field control specified");return null}if(!A){alert("Error calling the userSelect: no emailAddress_field control specified");return null}this.userId_field=E;this.fullName_field=D;this.screenName_field=C;this.emailAddress_field=A;this.vrootpath=B;this.popup=userSelect_popup1;this.id=users.length;users[this.id]=this}function userSelect_popup1(){var A=window.open(this.vrootpath+"/c/portal/selectUsers?&objectid="+this.id,"userSelect","width=640,height=480,scrollbars=yes,status=yes,resizable=yes,top=100,left=100,dependent=yes,alwaysRaised=yes");A.opener=window;A.object_id=this.id;A.focus()}