var gstrActiveLayer="";
var is;
function changecss(_1,_2,_3){
var _4;
var _5=false;
for(var S=0;S<document.styleSheets.length;S++){
if(document.styleSheets[S]["rules"]){
_4="rules";
}else{
if(document.styleSheets[S]["cssRules"]){
_4="cssRules";
}else{
}
}
for(var R=0;R<document.styleSheets[S][_4].length;R++){
if(document.styleSheets[S][_4][R].selectorText==_1){
if(document.styleSheets[S][_4][R].style[_2]){
document.styleSheets[S][_4][R].style[_2]=_3;
_5=true;
break;
}
}
}
if(!_5){
if(document.styleSheets[S].insertRule){
document.styleSheets[S].insertRule(_1+" { "+_2+": "+_3+"; }",document.styleSheets[S][_4].length);
}else{
if(document.styleSheets[S].addRule){
document.styleSheets[S].addRule(_1,_2+": "+_3+";");
}
}
}
}
};
function Is(){
var _8=window.navigator.userAgent.toLowerCase();
this.major=parseInt(navigator.appVersion);
this.minor=parseFloat(navigator.appVersion);
this.nav=((_8.indexOf("mozilla")!=-1)&&(_8.indexOf("spoofer")==-1)&&(_8.indexOf("compatible")==-1)&&(_8.indexOf("opera")==-1)&&(_8.indexOf("webtv")==-1)&&(_8.indexOf("hotjava")==-1));
this.nav4=(this.nav&&(this.major==4));
this.nav6up=(this.nav&&(this.major>=5));
this.ie=((_8.indexOf("msie")!=-1)&&(_8.indexOf("opera")==-1));
this.ie4=(this.ie&&(this.major==4)&&(_8.indexOf("msie 5")==-1));
this.ie4up=(this.ie&&(this.major>=4));
this.ie6down=(this.ie&&(this.major<=6));
this.mac=(_8.indexOf("mac")!=-1);
this.iphone=(_8.indexOf("iphone")!=-1);
this.ipad=(_8.indexOf("ipad")>-1);
this.ff=(_8.indexOf("firefox")>-1);
this.ff2=(_8.indexOf("firefox/2.")>-1);
this.ff3=(_8.indexOf("firefox/3.")>-1);
this.ff4=(_8.indexOf("firefox/4.")>-1);
this.webkit=(_8.indexOf("applewebkit")>-1);
if(this.iphone||this.ipad){
this.webkit=true;
}
};
is=new Is();
function addTooltip(_9,_a){
TooltipManager.options={cssClassName:_a,delayOver:200,delayOut:1000,shiftX:5,shiftY:5,className:_a,width:200,height:null,draggable:false,minimizable:false,maximizable:false,showEffect:Element.show,hideEffect:Element.hide};
TooltipManager.addURL("tooltip_"+_9,"http://www.extentech.com/uimodules/docs/docs_minimal_detail.jsp?meme_id="+_9,200,300);
};
function getBrowserWidth(){
var _b=0,_c=0;
if(typeof (window.innerWidth)=="number"){
return window.innerWidth;
}else{
if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
return document.documentElement.clientWidth;
}else{
if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
return document.body.clientWidth;
}
}
}
};
function getBrowserHeight(){
if(typeof (window.innerWidth)=="number"){
return window.innerHeight;
}else{
if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
return document.documentElement.clientHeight;
}else{
if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
return document.body.clientHeight;
}
}
}
};
function callInProgress(_d){
switch(_d.readyState){
case 1:
case 2:
case 3:
return true;
break;
default:
return false;
break;
}
};
function showFailureMessage(){
showError("Server Timeout. Server is unable to respond in time.");
};
if(Ajax!=undefined){
Ajax.Responders.register({onCreate:function(_e){
_e["timeoutId"]=window.setTimeout(function(){
if(callInProgress(_e.transport)){
if(_e.options["onFailure"]){
_e.options["onFailure"](_e.transport,_e.json);
}
}
},120000);
},onComplete:function(_f){
window.clearTimeout(_f["timeoutId"]);
}});
}
function deleteDoc(_10){
Dialog.confirm("Permanently Delete "+_10+"?",{okLabel:"delete",top:100,width:200,height:150,className:"extentech",id:"delete_prompt",cancel:function(win){
try{
parent.showStatus("Delete canceled.");
}
catch(e){
}
},ok:function(win){
parent.showStatus("deleting "+_10+"...");
new Ajax.Request("/workbook/id/"+_10+"/xml/workbook/delete/0",{method:"get",onSuccess:function(_13){
parent.showStatus("Deleted: "+_13.responseText);
},onFailure:function(){
var _14=transport.responseText||"failure";
parent.showStatus("Delete failed: "+_14);
}});
return true;
}});
};
function getElement(_15){
return $(_15);
};
function appear(d){
d=$(d);
var vx=false;
try{
vx=d.visible();
}
catch(e){
}
if(vx){
try{
new Effect.SwitchOff(d);
}
catch(e){
}
}else{
try{
new Effect.Appear(d);
}
catch(e){
}
}
};
function createNewSpreadsheet(_18){
var _19=-1;
var _1a="/workbook/id/-1/json/workbook/getid/";
new Ajax.Request(_1a,{method:"get",onSuccess:function(_1b){
_19=_1b.responseText.evalJSON().midi;
showStatus("Created new spreadsheet with id: "+_19);
createWindow("New Spreadsheet","/grid/grid.jsp?maximize=true&meme_id="+_19,_18);
uiWindowing.reloadFileMenu();
},onFailure:function(_1c){
var _1d=_1c.responseText||"failure";
showError("Unable to create new spreadsheet: "+_1d);
}});
};
function createNewDoc(_1e){
var _1f=-1;
var _20="/doc/id/-1/json/document/getid/";
new Ajax.Request(_20,{method:"get",onSuccess:function(_21){
_1f=_21.responseText.evalJSON().midi;
showStatus("Created new doc with id: "+_1f);
createWindow("New Doc","/doc_edit/doc.jsp?maximize=true&meme_id="+_1f,_1e);
uiWindowing.reloadFileMenu();
},onFailure:function(_22){
var _23=_22.responseText||"failure";
showError("Unable to create new doc: "+_23);
}});
};
function saveDoc(){
};
function ajaxBind(div,url){
var _26=$(div);
if(_26==null){
return;
}
if(is.ie){
_26.innerHTML="";
new Ajax.Updater(div,url,{method:"get",evalScripts:true,onSuccess:function(_27){
_26.style.overflow="auto";
},onFailure:function(_28){
var _29=_28.responseText||"failure";
parent.showError("Communication problem with "+url+":<br>"+_29);
},insertion:Insertion.Top});
_26.style.overflow="auto";
}else{
new Ajax.Updater(div,url,{method:"get",evalScripts:true,onSuccess:function(_2a){
_26.setStyle({overflow:"auto"});
},onFailure:function(_2b){
var _2c=_2b.responseText||"failure";
parent.showError("Communication problem with "+url+":<br>"+_2c);
}});
_26.setStyle({overflow:"auto"});
}
};
function setCellRangeBoxText(txt){
try{
$("cellrangebox").setValue(txt);
}
catch(e){
}
};
function setCellEditBoxText(_2e){
try{
var _2f=$("celleditbox");
_2f.setValue(_2e);
}
catch(e){
}
};
function ajaxCall(url){
new Ajax.Request(url,{method:"get",onSuccess:function(_31){
showStatus("success: "+_31.responseText);
},onFailure:function(){
var _32=transport.responseText||"failure";
showError("AJAX request failed: "+_32);
}});
};
function getActiveWindow(){
var _33=Windows.getFocusedWindow();
var _34=_33.getId();
_34=_34+"_content";
return $(_34);
};
function getActiveSheet(){
try{
if(parent.sheet!=undefined){
return parent.sheet;
}
}
catch(e){
}
try{
if(uiWindowing){
return uiWindowing.getActiveSheet();
}
}
catch(e){
}
try{
if(parent.uiWindowing){
return parent.uiWindowing.getActiveSheet();
}
}
catch(e){
}
try{
if(parent.parent.uiWindowing){
return parent.parent.uiWindowing.getActiveSheet();
}
}
catch(e){
}
try{
if(top.uiWindowing){
return top.uiWindowing.getActiveSheet();
}
}
catch(e){
}
showError("Could not find active sheet.");
};
function srcWindow(el){
if(el.ownerDocument.parentWindow){
var _36=el.ownerDocument.parentWindow.frameElement;
return _36.contentWindow;
}else{
if(el.ownerDocument.defaultView){
return el.ownerDocument.defaultView;
}
}
return null;
};
function setUserDiv(id,_38){
try{
var _39="&nbsp;<a href=\"javascript:createWindow('edit user data','/uimodules/user/user_update.jsp','extentech');\" onMouseOver=\"ddrivetip('Click to edit your user information')\"; onMouseOut=\"hideddrivetip()\">";
_39+=_38;
_39+="</a>&nbsp;";
$("user_login_links").innerHTML=_39;
}
catch(e){
showError(e);
}
};
var dLog=function(s){
if(typeof console!="undefined"){
return console.log(s);
}else{
if(typeof Debug!="undefined"){
return Debug.write(s);
}
}
};
function addEvent(obj,_3c,fn){
if(obj.attachEvent){
obj["e"+_3c+fn]=fn;
obj[_3c+fn]=function(){
obj["e"+_3c+fn](window.event);
};
obj.attachEvent("on"+_3c,obj[_3c+fn]);
}else{
obj.addEventListener(_3c,fn,false);
}
};
function removeEvent(obj,_3f,fn){
if(obj.detachEvent){
obj.detachEvent("on"+_3f,obj[_3f+fn]);
obj[_3f+fn]=null;
}else{
obj.removeEventListener(_3f,fn,false);
}
};
function evtAttach(obj,_42,_43){
if(obj.attachEvent){
for(var i=1;i+1<arguments.length;i+=2){
obj.attachEvent("on"+arguments[i],arguments[i+1]);
}
}else{
if(obj.addEventListener){
for(var i=1;i+1<arguments.length;i+=2){
obj.addEventListener(arguments[i],arguments[i+1],false);
}
}else{
for(var i=1;i+1<arguments.length;i+=2){
obj["on"+arguments[i]]=arguments[i+1];
}
}
}
};
function evtDetach(obj,_46,_47){
if(obj.detachEvent){
for(var i=1;i+1<arguments.length;i+=2){
obj.detachEvent("on"+arguments[i],arguments[i+1]);
obj["on"+arguments[i]]=null;
}
}else{
if(obj.removeEventListener){
for(var i=1;i+1<arguments.length;i+=2){
obj.removeEventListener(arguments[i],arguments[i+1],false);
}
}else{
for(var i=1;i+1<arguments.length;i+=2){
obj["on"+arguments[i]]=null;
}
}
}
};
function evtSwallow(evt){
if(window.event){
window.event.cancelBubble=true;
}
if(evt.cancelBubble){
evt.cancelBubble=true;
}
if(evt&&evt.stopPropagation){
evt.stopPropagation();
}
};
function copy2clipboard(_4a){
showStatus("copy2clipboard called: "+_4a);
if(window.clipboardData){
window.clipboardData.setData("Text",_4a);
}else{
var _4b="flashcopier";
if(!document.getElementById(_4b)){
var _4c=document.createElement("div");
_4c.id=_4b;
document.body.appendChild(_4c);
}
document.getElementById(_4b).innerHTML="";
var _4d="<embed src=\"/common/js/_clipboard.swf\" FlashVars=\"clipboard="+escape(_4a)+"\" width=\"0\" height=\"0\" type=\"application/x-shockwave-flash\"></embed>";
document.getElementById(_4b).innerHTML=_4d;
}
};
function elementPos(obj){
return Position.cumulativeOffset(obj);
};
function getParent(_4f,_50){
while(_4f!=null&&_4f.tagName!=_50){
_4f=_4f.parentNode;
}
return _4f;
};
function curPos(evt){
var _52=[Event.pointerX(evt),Event.pointerY(evt)];
return _52;
};
function addElementToDOM(id,tag,_55){
if($(id)){
return $(id);
}
var _56;
_56=document.createElement(tag);
_56.setAttribute("id",id);
if(_56){
_55.appendChild(_56);
}
return _56;
};
var SCROLLBARLEFT=(is.ie)?12:12;
var SCROLLBARBOTTOM=(is.ie)?6:12;
function submitAndClose(_57,txt){
};
function fullScreen(_59){
if(is.ie){
window.open(_59,"","fullscreen=yes, scrollbars=auto");
}else{
window.locationbar.visible=false;
window.toolbar.visible=false;
window.personalbar.visible=false;
window.statusbar.visible=false;
document.documentElement.setAttribute("width","1024");
document.documentElement.setAttribute("height","768");
window.menubar.visible=false;
}
};
var erring=false;
var singledoc=false;
var titleBarHolder=null;
var editBarHolder=null;
var miniStatusBarHolder=null;
var miniErrorBarHolder=null;
var show_mini_error_bar=false;
var show_mini_status_bar=false;
function showError(_5a){
if(_5a==undefined){
return;
}
var bar=$("errorbar");
var _5c=miniErrorBarHolder;
if(_5c==null){
_5c=$("minierrorbar");
}
if(_5c==null){
_5c=document.createElement("div");
miniStatusBarHolder=_5c;
}
if(bar==null){
bar=window.parent.document.getElementById("errorbar");
_5c=window.parent.document.getElementById("minierrorbar");
}
if(bar!=null){
bar.className="errorbar";
if(_5c!=null){
_5c.className="minierrorbar";
_5c.innerHTML="<img align=\"right\" src=\"/themes/icons/tango/16x16/emblems/emblem-unreadable.png\" onClick=\"$('minierrorbar').toggle();\" style=\"cursor:pointer;\" title=\"close error message\"><img src=\"/themes/icons/tango/16x16/status/dialog-error.png\" align=\"absmiddle\">&nbsp;ERROR: "+_5a;
_5c.toggle();
}
var _5d=false;
try{
if(show_mini_error_bar){
_5d=uiWindowing.getActiveDoc().maximized;
}
}
catch(e){
}
if(!bar.visible()&&!_5d){
bar.toggle();
new Effect.Morph(bar);
}
if(bar.getStyle("height")!="30px"){
bar.setStyle({height:"30px"});
}
_5a="<img align=\"right\" src=\"/themes/icons/tango/16x16/emblems/emblem-unreadable.png\" onClick=\"$('errorbar').toggle();\" style=\"cursor:pointer;\" title=\"close error message\"><img src=\"/themes/icons/tango/32x32/status/dialog-error.png\" align=\"absmiddle\">&nbsp;ERROR: "+_5a;
bar.innerHTML=_5a;
bar.setStyle({backgroundColor:"#FF0000"});
bar.setStyle({backgroundImage:"url(/themes/extentech/alertback.png)"});
bar.setStyle({backgroundRepeat:"no-repeat"});
bar.setStyle({zIndex:"101"});
bar.setStyle({position:"absolute"});
bar.setStyle({width:"100%"});
erring=true;
try{
setTimeout("hideError()",16000);
}
catch(e){
}
}else{
if(show_mini_error_bar){
if(_5c==null){
_5c=$("minierrorbar");
}
if(_5c==null){
_5c=document.createElement("div");
miniStatusBarHolder=_5c;
}
_5c.innerHTML="<img align=\"right\" src=\"/themes/icons/tango/16x16/emblems/emblem-unreadable.png\" onClick=\"$('errorbar').toggle();\" style=\"cursor:pointer;\" title=\"close error message\"><img src=\"/themes/icons/tango/16x16/status/dialog-error.png\" align=\"absmiddle\">&nbsp;ERROR: "+_5a;
_5c.className="minierrorbar";
try{
_5c.toggle();
}
catch(e){
}
}
}
};
var stimeout=3;
function showInfoDialog(_5e,_5f){
var _60="<img src='/themes/icons/tango/32x32/status/dialog-information.png' style='float:left; margin-right:-32px;'>";
Dialog.info(_60+_5e,{windowParameters:{className:_5f,width:250,height:150},showProgress:true});
setTimeout("infoTimeout()",1000);
};
function infoTimeout(){
stimeout--;
if(stimeout>0){
setTimeout("infoTimeout()",1000);
}else{
Dialog.closeInfo();
}
};
function showStatus(_61){
if(_61==undefined){
return;
}
var bar=$("statusbar");
miniStatusBarHolder=$("ministatusbar");
if(miniStatusBarHolder==null){
miniStatusBarHolder=document.createElement("div");
}
try{
if(bar==null){
bar=window.parent.document.getElementById("statusbar");
}
}
catch(e){
}
if(bar!=null){
bar.className="statusbar";
if(miniStatusBarHolder!=null&&show_mini_status_bar){
try{
miniStatusBarHolder.className="ministatusbar";
miniStatusBarHolder.innerHTML="<img align=\"right\" src=\"/themes/icons/tango/16x16/emblems/emblem-unreadable.png\" onClick=\"$('statusbar').toggle();\" style=\"cursor:pointer;\" title=\"close status message\"><img src=\"/themes/icons/tango/16x16/status/dialog-information.png\" align=\"absmiddle\">&nbsp;"+_61;
miniStatusBarHolder.toggle();
}
catch(e){
}
}
var _63=false;
try{
if(show_mini_status_bar){
_63=uiWindowing.getActiveDoc().maximized;
}
}
catch(e){
}
if(!bar.visible()&&!_63){
bar.toggle();
}
if(bar.getStyle("height")!="30px"){
bar.setStyle({height:"30px"});
}
_61="<img align=\"right\" src=\"/themes/icons/tango/16x16/emblems/emblem-unreadable.png\" onClick=\"$('statusbar').toggle();\" style=\"cursor:pointer;\" title=\"close status message\"><img src=\"/themes/icons/tango/32x32/status/dialog-information.png\" align=\"absmiddle\">&nbsp;INFO: "+_61;
bar.innerHTML=_61;
bar.setStyle({backgroundColor:"#00FF00"});
bar.setStyle({zIndex:"100"});
bar.setStyle({position:"absolute"});
bar.setStyle({width:"100%"});
bar.setStyle({backgroundImage:"url(/themes/extentech/infoback.png)"});
bar.setStyle({backgroundRepeat:"no-repeat"});
try{
setTimeout("hideStatus()",12000);
}
catch(e){
}
}else{
}
};
function toggleUpDown(_64){
var bar=$(_64);
if(bar==null){
return;
}
if(!bar.visible()){
new Effect.Appear(bar);
}else{
try{
new Effect.SwitchOff(bar);
}
catch(e){
}
}
};
function hideError(){
var bar=$("errorbar");
var _67=miniErrorBarHolder;
if(_67==null){
_67=$("minierrorbar");
}
if(bar==null){
bar=window.parent.document.getElementById("errorbar");
_67=window.parent.document.getElementById("minierrorbar");
}
if(bar!=null){
try{
bar.style.height="25px";
_67.style.height="25px";
new Effect.Fold(bar);
new Effect.Fold(_67);
}
catch(e){
}
}
try{
bar.innerHTML="";
_67.innerHTML="";
}
catch(e){
}
erring=false;
};
function hideStatus(){
var bar=$("statusbar");
var _69=miniStatusBarHolder;
if(_69==null){
_69=$("ministatusbar");
}
if(bar==null){
bar=window.parent.document.getElementById("statusbar");
_69=window.parent.document.getElementById("ministatusbar");
}
if(bar!=null){
try{
bar.style.height="25px";
_69.style.height="25px";
new Effect.Fold(bar);
new Effect.Fold(_69);
}
catch(e){
}
}
bar.innerHTML="";
_69.innerHTML="";
erring=false;
};
var idx=0;
var menuOffset=70;
var wincount=0;
var xidx=0;
var cascade=0;
var cOffset=23;
var activeWindowTitles=new Array();
function createWindow(_6a,_6b,_6c,_6d,_6e){
var ht=_6e;
if(ht==null){
ht=500;
}
if(activeWindowTitles.indexOf(_6a)>-1){
Windows.close(_6a);
}
if(_6b.indexOf("?")>-1){
_6b+="&frame="+_6a;
}else{
_6b+="?frame="+_6a;
}
var lx=320;
var wx=getBrowserWidth()-(lx+10);
if(_6e!=null){
ht=getBrowserHeight()-100;
}
var _72=new Window(_6a,{title:_6a,className:_6c,top:80,left:lx,width:wx,height:ht,gridX:10,gridY:10,destroyOnClose:true,resizable:true,url:_6b,showEffectOptions:{duration:0}});
if(_6d){
_72.content.setStyle({overflowY:"scroll"});
}else{
_72.content.setStyle({overflow:"hidden"});
}
_72.setDestroyOnClose(true);
_72.showCenter();
activeWindowTitles.push(_6a);
_72.show();
};
function createBigWindow(_73,_74,_75,_76){
if(activeWindowTitles.indexOf(_73)>-1){
Windows.close(_73);
}
if(_74.indexOf("?")>-1){
_74+="&frame="+_73;
}else{
_74+="?frame="+_73;
}
var _77=new Window(_73,{title:_73,className:_75,top:25,left:330,width:850,height:530,gridX:10,gridY:10,destroyOnClose:true,resizable:true,url:_74,showEffectOptions:{duration:0}});
if(_76){
_77.content.setStyle({overflowY:"scroll"});
}else{
_77.content.setStyle({overflow:"hidden"});
}
_77.setDestroyOnClose(true);
activeWindowTitles.push(_73);
_77.show();
};
function createSheetDialog(_78,_79,_7a,w,h){
var wdx=350;
var htx=375;
if(w!=null){
wdx=w;
}
if(h!=null){
htx=h;
}
if(_7a==null){
_7a="extentech";
}
var dlg=new Window(_78,{title:_78,className:_7a,width:wdx,height:htx,destroyOnClose:true,minimizable:false,maximizable:false,closable:true,resizable:true,draggable:false,url:_79,opacity:1,cancel:function(win){
return true;
},showEffectOptions:{duration:0}});
dlg.content.setStyle({overflow:"hidden"});
dlg.setDestroyOnClose(true);
dlg.showCenter(true);
};
function openWindow(tt,url,_83,x,y,w,h){
var _88=new Window(tt,{title:tt,className:_83,top:y,left:x,width:w,height:h,resizable:true,minimizable:false,maximizable:false,destroyOnClose:true,url:url,showEffectOptions:{duration:0}});
_88.content.setStyle({overflow:"hidden"});
_88.setDestroyOnClose(true);
activeWindowTitles.push(tt);
_88.show();
};
function createDialogWindow(_89,_8a,_8b){
createSizedDialogWindow(_89,380,220,_8a,_8b);
};
function createSizedDialogWindow(_8c,_8d,_8e,_8f,_90){
var _91=new Window(_8c,{title:_8c,className:_90,top:70,bottom:0,left:0,width:_8d,height:_8e,gridX:10,gridY:10,opacity:5,zIndex:100,destroyOnClose:true,minimizable:false,maximizable:false,resizable:true,destroyOnClose:true,url:_8f,showEffectOptions:{duration:0}});
_91.content.setStyle({overflow:"hidden"});
_91.showCenter();
activeWindowTitles.push(_8c);
_91.show();
};
function createDialog(_92,_93,_94){
var _95=new Window(_92,{title:_92,className:_94,width:350,height:300,zIndex:150,opacity:5,resizable:false,minimizable:false,maximizable:false,draggable:false,url:_93,destroyOnClose:true,showEffectOptions:{duration:0}});
_95.content.setStyle({overflow:"hidden"});
_95.showCenter();
_95.show(true);
};
function createModalDialog(_96,_97,_98){
var _99=new Window(_96,{title:_96,className:_98,url:_97,width:350,height:300,zIndex:100,opacity:1,resizable:false,closable:false,minimizable:false,maximizable:false,draggable:false,destroyOnClose:true,showEffectOptions:{duration:0}});
_99.content.setStyle({overflow:"hidden"});
_99.setContent("select");
_99.setDestroyOnClose(true);
_99.showCenter();
_99.show(true);
};
function openSave(_9a){
Dialog.confirm(_9a,{top:150,width:250,className:"extentech_minimus",okLabel:"Yes",cancelLabel:"No",showEffectOptions:{duration:0}});
};
function openAlert(_9b){
Dialog.alert(_9b,{windowParameters:{className:"extentech",top:300,showEffectOptions:{duration:0}}});
};
function openConfirm(_9c){
return Dialog.confirm(_9c,{top:150,width:250,className:"extentech",okLabel:"Yes",cancelLabel:"No",showEffectOptions:{duration:0}});
};
function confirmDialog(_9d,_9e){
Dialog.confirm({url:_9d,options:{method:"get"}},{top:300,width:250,className:_9e,okLabel:"Yes",cancelLabel:"No",showEffectOptions:{duration:0}});
};
function errorDialog(_9f,_a0){
Dialog.confirm({url:urlx,options:{method:"get"}},{top:300,width:250,className:_a0,showEffectOptions:{duration:0}});
};
function setTheme(_a1,doc){
var _a3=$("themepreload");
_a3.href="/themes/"+_a1+".css";
var _a4=$("theme");
_a4.href="/themes/"+_a1+".css";
if(_a4.length){
for(i=0;i<_a4.length;i++){
_a4[i].href="/themes/"+_a1+".css";
}
}
var _a6=document.childNodes;
if(doc){
_a6=doc.childNodes;
}
var _a7=_a6.length;
for(var i=_a7-1;i>=0;i--){
try{
var kk=Element.extend(_a6[i]);
if(kk.setTheme){
kk.setTheme(_a1);
}
}
catch(e){
}
}
};
function loadCSS(url){
var e=document.createElement("include");
e.src=url;
e.type="html/css";
document.getElementsByTagName("head")[0].appendChild(e);
};
function loadScript(url){
var e=document.createElement("script");
e.src=url;
e.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(e);
};
function reverse(n){
var _ae=n.childNodes;
var _af=_ae.length;
for(var i=_af-1;i>=0;i--){
reverse(_ae[i]);
var c=n.removeChild(_ae[i]);
n.appendChild(c);
}
};
function MM_validateForm(){
var i,p,q,nm,_b6,num,min,max,_ba="",_bb=MM_validateForm.arguments;
for(i=0;i<(_bb.length-2);i+=3){
_b6=_bb[i+2];
val=MM_findObj(_bb[i]);
if(val){
nm=val.name;
if((val=val.value)!=""){
if(_b6.indexOf("isEmail")!=-1){
p=val.indexOf("@");
if(p<1||p==(val.length-1)){
_ba+="- "+nm+" must contain an e-mail address.\n";
}
}else{
if(_b6!="R"){
num=parseFloat(val);
if(val!=""+num){
_ba+="- "+nm+" must contain a number.\n";
}
if(_b6.indexOf("inRange")!=-1){
p=_b6.indexOf(":");
min=_b6.substring(8,p);
max=_b6.substring(p+1);
if(num<min||max<num){
_ba+="- "+nm+" must contain a number between "+min+" and "+max+".\n";
}
}
}
}
}else{
if(_b6.charAt(0)=="R"){
_ba+="- "+nm+" is required.\n";
}
}
}
}
if(_ba){
showStatus("The following error(s) occurred:\n"+_ba);
}
document.MM_returnValue=(_ba=="");
};
function MM_openBrWindow(_bc,_bd,_be){
window.open(_bc,_bd,_be);
};
function MM_popupMsg(msg){
showStatus(msg);
};
function MM_preloadImages(){
var d=document;
if(d.images){
if(!d.MM_p){
d.MM_p=new Array();
}
var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
for(i=0;i<a.length;i++){
if(a[i].indexOf("#")!=0){
d.MM_p[j]=new Image;
d.MM_p[j++].src=a[i];
}
}
}
};
function MM_findObj(n,d){
var p,i,x;
if(!d){
d=document;
}
if((p=n.indexOf("?"))>0&&parent.frames.length){
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
}
if(!(x=d[n])&&d.all){
x=d.all[n];
}
for(i=0;!x&&i<d.forms.length;i++){
x=d.forms[i][n];
}
for(i=0;!x&&d.layers&&i<d.layers.length;i++){
x=MM_findObj(n,d.layers[i].document);
}
if(!x&&document.getElementById){
x=document.getElementById(n);
}
return x;
};
function setfocus(){
if(document.form1!=null){
if(document.form1.username!=null){
document.form1.username.focus();
}
}
};
function ddrivetip(_c9,_ca,_cb){
showStatus(_c9);
};
function hideddrivetip(){
};
function autoComplete(_cc,_cd,_ce,_cf){
var _d0=false;
for(var i=0;i<_cd.options.length;i++){
if(_cd.options[i][_ce].toUpperCase().indexOf(_cc.value.toUpperCase())==0){
_d0=true;
break;
}
}
if(_d0){
_cd.selectedIndex=i;
}else{
_cd.selectedIndex=-1;
}
if(_cc.createTextRange){
if(_cf&&!_d0){
_cc.value=_cc.value.substring(0,_cc.value.length-1);
return;
}
var _d2="8;46;37;38;39;40;33;34;35;36;45;";
if(_d2.indexOf(event.keyCode+";")==-1){
var r1=_cc.createTextRange();
var _d4=r1.text;
var _d5=_d0?_cd.options[i][_ce]:_d4;
if(_d5!=_cc.value){
_cc.value=_d5;
var _d6=_cc.createTextRange();
_d6.moveStart("character",_d4.length);
_d6.select();
}
}
}
};
var lastshown=null,lasthiifrm=null;
function toggleShow(_d7){
var _d8=$(_d7);
if(lastshown!=null){
lastshown.style.visibility="hidden";
}
lastshown=_d8;
if(_d8.style.visibility=="hidden"){
_d8.style.visibility="visible";
}else{
_d8.style.visibility="hidden";
}
};
