FormErrorHdl=function(_d8,_d9){
this.cleanAttachedEvents=function _cleanAttachedEvents(){
if(window.removeEventListener){
window.removeEventListener("load",this.markErrorfield,false);
window.removeEventListener("load",this.cleanAttachedEvents,false);
}
if(window.detachEvent){
window.detachEvent("onload",_markErrorfield);
window.detachEvent("onload",_cleanAttachedEvents);
}
};
this.markErrorfield=function _markErrorfield(_da,_db){
var el=document.getElementById(_da);
if(el){
var _dd=document.getElementById(_da+".msg");
if(_dd){
while(_dd.hasChildNodes()&&!(_dd.lastChild.nodeName=="IMG")){
_dd.removeChild(_dd.lastChild);
}
var _de=document.createElement("div");
_de.innerHTML=_db;
_dd.appendChild(_de.childNodes[0]);
LRPConfig.showElementById(_da+".msg");
}
if(el.className){
el.className=el.className+" lotusFormErrorField";
}else{
el.className="lotusFormErrorField";
}
var _df=document.getElementById(_d8+"formErrorList");
if(_df){
var _e0=document.createTextNode(_db);
var li=document.createElement("li");
li.setAttribute("id",_da+".li");
li.appendChild(_e0);
_df.appendChild(li);
LRPConfig.showElementById(_d8+"lotusFormTable");
_df.setAttribute("role","alert");
}
}
};
this.removeFormError=function(_e2){
var _e3=document.getElementById(_d8+"formErrorList");
if(_e3){
var _e4=_e3.getElementsByTagName("li");
var _e5=document.getElementById(_e2+".li");
if(_e4.length==1&&_e5){
LRPConfig.hideElementById(_d8+"lotusFormTable");
}
if(_e5){
_e3.removeChild(_e5);
}
}
var el=document.getElementById(_e2);
if(el){
var _e7=document.getElementById(_e2+".msg");
if(_e7){
while(_e7.hasChildNodes()&&!(_e7.lastChild.nodeName=="IMG")){
_e7.removeChild(_e7.lastChild);
LRPConfig.hideElementById(_e2+".msg");
}
}
if(el.className){
el.className=el.className.replace("lotusFormErrorField","");
}
}
};
this.viewDetailedMessage=function(msg,_e9,_ea,_eb){
w=window.open("","status","width=780,height=450,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");
w.document.write("<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd>");
w.document.write("<html><head><title>Status</title>");
w.document.write("<link href=\"");
w.document.write(document.getElementById(_d8+"messagesCss").getAttribute("href"));
w.document.write("\" rel=\"styleSheet\" type=\"text/css\">");
w.document.write("<link href=\"");
w.document.write(document.getElementById(_d8+"messagesThemeCss").getAttribute("href"));
w.document.write("\" rel=\"styleSheet\" type=\"text/css\">");
w.document.write("</head><body><table cellpadding=4><tr><td>");
w.document.write("<div class=\"");
w.document.write(_e9);
w.document.write(" lotusMessage\" role=\"alert\"><img src=\"");
w.document.write(_ea);
w.document.write("\" title=\"");
w.document.write(LRPErrorUtil.escapeHTML(_eb));
w.document.write("\" alt=\"");
w.document.write(LRPErrorUtil.escapeHTML(_eb));
w.document.write("\" />");
w.document.write(LRPErrorUtil.escapeHTML(msg));
w.document.write("</div>");
w.document.write("");
w.document.write("</td></tr></table></body></html>");
w.document.close();
w.focus();
return false;
};
};
DetailsHdl=function(_ec){
this.viewDetails=function(_ed,_ee){
w=window.open("","status","width=780,height=450,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");
w.document.write("<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd>");
w.document.write("<html><head><title>Status</title>");
w.document.write("<link href=\"");
w.document.write(document.getElementById(_ec+"messagesCss").getAttribute("href"));
w.document.write("\" rel=\"styleSheet\" type=\"text/css\">");
w.document.write("<link href=\"");
w.document.write(document.getElementById(_ec+"messagesThemeCss").getAttribute("href"));
w.document.write("\" rel=\"styleSheet\" type=\"text/css\">");
w.document.write("</head><body");
w.document.write(_ed);
w.document.write("><table cellpadding=4><tr><td>");
w.document.write(_ee);
w.document.write("");
w.document.write("</td></tr></table></body></html>");
w.document.close();
w.focus();
return false;
};
};
if((typeof LRPErrorUtil=="undefined")||!LRPErrorUtil){
(function(){
if((typeof this["LRPErrorUtil"]=="undefined")||!LRPErrorUtil){
this.LRPErrorUtil={};
}
})();
LRPErrorUtil.escapeHTML=function(_ef){
if(!_ef){
return;
}
return _ef.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");
};
}
StringBuilder=function(){
this._strings=[];
this.append=function(s){
this._strings.push(s);
};
this.toString=function(){
return this._strings.join("");
};
};


