function Package(){}function Exception(A){this.description=A}Exception.prototype.toString=function(){return this.description};function namespace(D){function C(I){var F=this,H,G;for(G=0;G<I.length;G++){H=I[G];if(!F[H]){F[H]=new Package()}F=F[H]}return F}var B,A,E;if(D.indexOf("http://")===0){B=D.substr("http://".length);if(B.charAt(B.length-1)=="/"){B=B.substring(0,B.length-1)}A=B.split("/");E=A.shift().split(".");if(E[0]=="www"){E.shift()}E.reverse();return C(E.concat(A))}return C(D.split("."))}function URL(B,A){this.location=A?URL.parse(B,A):B
}URL.prototype.toString=function(){return this.location};URL.prototype.valueOf=function(){return this.location};URL.parse=function(C,B){var A;if(B.indexOf("http://")===0){A=B}else{if(B.charAt(0)=="/"){A=C.substring(0,C.indexOf("/","http://".length));A+=B}else{A=C.substring(0,C.lastIndexOf("/")+1);A+=B}}return A};namespace("org.dforms.v1");Object.prototype.toString=function(){var B="",A;if(this instanceof String){B=this}else{if(this instanceof Function){}else{B="{";for(A in this){if(this[A] instanceof Array){B+=A+":["+this[A].toString()+"],"}else{if(this[A] instanceof Function){}else{B+=A+":"+this[A].toString()+","}}}B=B.substring(0,B.length-1);B+="}\n"}}return B};org.dforms.v1.Object={clone:function(F,B){var C=new F.constructor(),D,E,A=org.dforms.v1.Object;for(D in F){E=F[D];C[D]=E;if(B&&E!=null&&typeof E==="object"){C[D]=A.clone(E,B)
}}return C},merge:function(E,D){var B,C,A=org.dforms.v1.Object;if(D!=null&&typeof D==="object"){for(B in D){C=D[B];if(typeof C==="object"){A.merge(E[B],C)}else{E[B]=C}}}}};namespace("org.dforms.v1.dom");org.dforms.v1.dom.Document={htmlns:"http://www.w3.org/1999/xhtml",createElementNS:function(B,A){return document.createElementNS?document.createElementNS(B,A):document.createElement(A)},getNamespace:function(C,B){var A=B.getAttributeNode("xmlns:"+C);if(A){return A.value}if(B.parentNode&&B.parentNode.nodeType==1){return this.getNamespace(C,B.parentNode)}return null}};namespace("org.dforms.v1.dom");org.dforms.v1.dom.Element={getLocalName:function(B){var A=B.localName;if(!A){A=B.nodeName;if(A.indexOf(":")>0){A=A.substr(A.indexOf(":")+1)}}return A},isDescendantOrSelf:function(D,C){var A=false,E=D.childNodes,F,B;if(D==C){A=true}else{for(B=0;B<E.length;B++){F=E[B];if(F.nodeType==1){A=this.isDescendantOrSelf(F,C);if(A==true){break}}}}return A},getParentByTagName:function(C,B){var A=C.parentNode;if(A!=null&&A.nodeName.toLowerCase()!=B.toLowerCase()){A=this.getParentByTagName(A,B)
}return A},getAttributeNS:function(C,D,B){var A=this.getAttributeNodeNS(C,D,B);return A==null?null:A.value},getAttributeNodeNS:function(D,E,B){var A=null,C,F;if(D.getAttributeNS){A=D.getAttributeNodeNS(E,B)}else{for(C=0;C<D.attributes.length;C++){attr=D.attributes[C];F=org.dforms.v1.xml.QNameFactory.getQName(D,attr.name);if(attr.name===B&&F.namespace===E){A=attr;break}}}return A},addEventListener:function(B,D,C,A){if(B.addEventListener){B.addEventListener(D,C,A)}else{B.attachEvent("on"+D,C)}},removeEventListener:function(A,C,B){if(A.removeEventListener){A.removeEventListener(C,B)
}else{A.detachEvent("on"+C,B)}}};namespace("org.dforms.v1.dom");org.dforms.v1.dom.Event={addEventListener:function(C,E,D,A){if(C.addEventListener){C.addEventListener(E,D,A)}else{B(C,E,D)}function B(G,J,I){var H=G[J+"Listeners"],K,F;if(!H){H=G[J+"Listeners"]=[];K=function(L){L.target=L.srcElement;L.currentTarget=G;L.pageX=L.clientX;L.pageX+=document.body?document.body.scrollLeft:0;L.pageX+=document.documentElement.scrollLeft;L.pageY=L.clientY;L.pageY+=document.body?document.body.scrollTop:0;L.pageY+=document.documentElement.scrollTop;L.layerX=L.offsetX;
L.layerY=L.offsetY;L.stopPropagation=function(){L.cancelBubble=true};for(F=0;F<H.length;F++){H[F](L)}};G.attachEvent("on"+J,K)}H[H.length]=I}},removeEventListener:function(B,D,C){if(B.removeEventListener){B.removeEventListener(D,C)}else{A(B,D,C)}function A(F,I,H){var G=F[I+"Listeners"],J=false,E;if(G){for(E=0;E<G.length;E++){if(G[E]==H){J=true}if(J&&E<G.length-1){G[E]=G[E+1]}}if(J){G.pop()}}}}};namespace("org.dforms.v1.xml");org.dforms.v1.xml.QName=function(B,A){this.namespace=B;this.localName=A};org.dforms.v1.xml.QName.prototype.toString=function(){return"{"+this.namespace+"}"+this.localName};org.dforms.v1.xml.QName.prototype.equals=function(A){if(A instanceof org.dforms.v1.xml.QName){return A.toString()==this.toString()}return false};namespace("org.dforms.v1.xml");org.dforms.v1.xml.QNameFactory={getQNameNS:function(C,A){var B=this[C];if(!B){B={};this[C]=B}if(!B[A]){B[A]=new org.dforms.v1.xml.QName(C,A)}return B[A]},getQName:function(B,E){var D="",C=E,A=E.split(":");if(A.length>1){D=A[0];C=A[1]}return this.getQNameNS(org.dforms.v1.xml.Document.getNamespace(D,B),C)}};namespace("org.dforms.ui.v1");
org.dforms.ui.v1.Movement={mouseDown:false,moveStarted:false,onselectstart:null,instance:null,handle:null,dx:0,dy:0,selectstart:function(){return false
},mousedown:function(event){event=event?event:window.event;
var movement=org.dforms.ui.v1.Movement;
movement.mouseDown=true;
movement.instance=event.currentTarget;
movement.handle=event.target
},mouseup:function(event){var movement=org.dforms.ui.v1.Movement;
if(movement.instance){movement.mouseDown=false;
movement.handle.style.cursor="";
if(movement.onselectstart){document.onselectstart=movement.onselectstart;
document.documentElement.style.MozUserSelect=""
}movement.moveStarted=false
}},mousemove:function(event){event=event?event:window.event;
var movement=org.dforms.ui.v1.Movement;
if(movement.mouseDown){var ctx=movement.instance,left,top;
if(movement.moveStarted){ctx.style.left=(event.pageX-movement.dx)+"px";
ctx.style.top=(event.pageY-movement.dy)+"px"
}else{movement.moveStarted=true;
movement.onselectstart=document.onselectstart;
document.onselectstart=movement.selectstart;
document.documentElement.style.MozUserSelect="none";
movement.handle.style.cursor="move";
left=parseInt(ctx.style.left.substring(0,ctx.style.left.length-2));
top=parseInt(ctx.style.top.substring(0,ctx.style.top.length-2));
movement.dx=event.pageX-left;
movement.dy=event.pageY-top
}movement.IEShit.adjustIFrame(ctx)
}},IEShit:{adjustIFrame:function(ctx){if(document.all){var win=ctx.window,iframe=ctx.iframe;
if(!iframe){iframe=org.dforms.v1.dom.Document.createElementNS(null,"iframe");
iframe.setAttribute("frameborder","0");
iframe.style.position="absolute";
iframe.style.width=win.offsetWidth;
iframe.style.height=win.offsetHeight;
ctx.style.zIndex=10000;
iframe.style.zIndex=9999;
ctx.iframe=iframe;
document.documentElement.getElementsByTagName("body")[0].appendChild(iframe)
}iframe.style.top=ctx.style.top;
iframe.style.left=ctx.style.left
}},disposeIFrame:function(ctx){if(ctx.iframe){var body=document.documentElement.getElementsByTagName("body")[0];
body.removeChild(ctx.iframe);
ctx.iframe=null
}}}};
org.dforms.v1.dom.Event.addEventListener(document,"mouseup",org.dforms.ui.v1.Movement.mouseup);
org.dforms.v1.dom.Event.addEventListener(document,"mousemove",org.dforms.ui.v1.Movement.mousemove);namespace("org.dforms.v1.dnd");
org.dforms.v1.dnd.DnD={mouseDown:false,dragStarted:false,source:null,target:null,undoHistory:[],init:function(event){event=event?event:window.event;
var node=event.target;
node.addEventListener("mousedown",this.mousedown,false);
node.addEventListener("mousemove",this.mousemove,false);
node.addEventListener("mouseup",this.mouseup,false)
},mousedown:function(event){this.mouseDown=true
},mousemove:function(event){event=event?event:window.event;
if(this.mouseDown){if(this.dragStarted){if(this.target!=event.target){if(this.target!=null){this.dispatchEvent("dragleave",event,this.target)
}this.target=event.target;
this.dispatchEvent("dragenter",event);
this.dispatchEvent("dragover",event)
}this.dispatchEvent("drag",event)
}else{this.source=event.target;
this.dragStarted=true;
this.dispatchEvent("dragstart",event);
this.dispatchEvent("drag",event)
}this.source.style.left=event.clientX+5+"px";
this.source.style.top=event.clientY-10+"px"
}},mouseup:function(event){event=event?event:window.event;
if(this.mouseDown){this.mouseDown=false;
if(this.dragStarted){this.dragStarted=false;
this.source.style.position="";
event.target.style.cursor="";
this.source.style.opacity=1;
this.dispatchEvent("dragend",event);
this.dispatchEvent("drop",event)
}}this.mouseDown=false
},dispatchEvent:function(name,event,source){var evt=this.createDragEvent(),des=source||event.target;
evt.initMouseEvent(name,true,true,window,event.detail,event.screenX,event.screenY,event.clientX,event.clientY,false,false,false,false,0,null);
des.dispatchEvent(evt)
},createDragEvent:function(){var ret=document.createEvent("MouseEvents");
return ret
},dragstart:function(event){var node=this.source=this;
document.documentElement.style.cursor="move";
node.style.position="absolute";
node.style.opacity=0.85
},dragend:function(event){var node=this.source;
document.documentElement.style.cursor="";
node.style.position="";
node.style.opacity=""
}};namespace("org.dforms.ui.v1");
org.dforms.ui.v1.AbstractBuilder=function(){};
org.dforms.ui.v1.AbstractBuilder.prototype={createElement:function(localName,attrs,events,value){var ns=org.dforms.v1.dom,ret=ns.Document.createElementNS(ns.Document.htmlns,localName),attr,evt;
for(attr in attrs){ret[attr]=attrs[attr]
}for(evt in events){ns.Event.addEventListener(ret,evt,events[evt])
}if(value){ret.appendChild(document.createTextNode(value))
}return ret
},addPropertyListener:function(propertyName,listener){var listeners=this[propertyName+"Listeners"];
if(listeners){listeners.push(listener)
}else{listeners=this[propertyName+"Listeners"]=[listener]
}},firePropertyChanged:function(propertyName,value,old){var listeners=this[propertyName+"Listeners"];
if(listeners){for(var i=0;
i<listeners.length;
i++){listeners[i].call(this,value,old)
}}},getResourceBundle:function(locale){var ret=this.l10n[locale];
if(!ret){ret=this.l10n
}return ret
},getPreferences:function(rb,prefs){var ret=this.l10n.preferences,nsObj=org.dforms.v1.Object;
ret=ret?nsObj.clone(ret,true):{};
if(rb.preferences){nsObj.merge(ret,rb.preferences)
}if(prefs){nsObj.merge(ret,prefs)
}return ret
}};namespace("org.dforms.ui.v1");
org.dforms.ui.v1.DateTimeZonePicker=function(model,locale,title,prefs){this.setZone=function(value){var old=zone;
zone=value;
self.firePropertyChanged("zone",zone,old)
};
this.getZone=function(){return zone
};
this.setHour=function(value){var old=hour;
hour=value%24;
self.firePropertyChanged("hour",hour,old)
};
this.getHour=function(){return hour
};
this.setMinute=function(value){var old=minute;
minute=value%60;
self.firePropertyChanged("minute",minute,old)
};
this.getMinute=function(){return minute
};
this.setSecond=function(value){var old=second;
second=value%60;
self.firePropertyChanged("second",second,old)
};
this.getSecond=function(){return second
};
this.setAM=function(value){var old=am;
am=value;
self.firePropertyChanged("am",am,old)
};
this.isAM=function(){return am
};
this.impl=this.build(this,this.locale);
var self=this,now=new Date(),hour=0,minute=0,second=0,am=false,zone=0;
this.model=model;
this.locale=locale;
this.title=title;
this.rb=this.getResourceBundle(locale);
this.preferences=this.getPreferences(this.rb,prefs);
this.setHour(now.getHours());
this.setMinute(now.getMinutes());
this.setSecond(now.getSeconds());
this.setZone(now.getHours());
delete now
};
org.dforms.ui.v1.DateTimeZonePicker.prototype={l10n:{close:"Close",now:"Now",preferences:{window:{className:"date-time-zone-picker"}}},build:function(obj,locale,preferences){var rb=this.getResourceBundle(locale),prefs=obj.getPreferences(rb,preferences),time=new org.dforms.ui.v1.time.TimeBuilder().build(obj,locale,prefs.time),zone=new org.dforms.ui.v1.zone.Zone().build(obj,locale,prefs.zone),window=new org.dforms.ui.v1.Window().build(obj,locale,prefs.window);
function onnow(event){var now=new Date();
obj.setHour(now.getHours());
obj.setMinute(now.getMinutes());
obj.setSecond(now.getSeconds());
obj.setZone(now.getTimezoneOffset()/60)
}function titleChanged(){}this.addPropertyListener("hour",titleChanged);
this.addPropertyListener("minute",titleChanged);
this.addPropertyListener("second",titleChanged);
this.addPropertyListener("zone",titleChanged);
window.titleBar.add("\u25CA",onnow,rb.now,true);
window.add(zone);
return window
},paint:function(event){var wimpl=this.impl,body,style;
if(wimpl){wimpl.setPosition(event);
wimpl.titleBar.setTitleText(this.title);
body=document.documentElement.getElementsByTagName("body")[0];
body.appendChild(wimpl)
}if(!document.all){style=wimpl.shade.style;
style.width=(wimpl.window.offsetWidth-4)+"px";
style.height=(wimpl.window.offsetHeight-4)+"px";
style.top="8px";
style.left="8px"
}org.dforms.v1.dom.Event.addEventListener(wimpl,"mousedown",org.dforms.ui.v1.Movement.mousedown);
org.dforms.ui.v1.Movement.IEShit.adjustIFrame(wimpl)
}};
org.dforms.v1.Object.merge(org.dforms.ui.v1.DateTimeZonePicker.prototype,new org.dforms.ui.v1.AbstractBuilder());namespace("org.dforms.ui.v1");
org.dforms.ui.v1.TitleBar=function(){};
org.dforms.ui.v1.TitleBar.prototype={build:function(){var createElement=this.createElement,titleBar=createElement("div",{className:"title-bar"}),title=createElement("div",{className:"title"});
titleBar.titleArea=title;
titleBar.appendChild(title);
titleBar.add=function(content,handler,titleText,left){var titleBar=this,ctrl=createElement("div",{className:"ctrl",title:titleText},{click:handler},content);
if(left){titleBar.insertBefore(ctrl,titleBar.titleArea)
}else{titleBar.appendChild(ctrl)
}};
titleBar.removeAll=function(left){var titleBar=this;
if(left){while(ctx.childNodes[0]!=titleBar.titleArea){ctx.removeChild(ctx.childNodes[0])
}}else{while(ctx.childNodes[ctx.childNodes.length-1]!=titleBar.titleArea){ctx.removeChild(ctx.childNodes[ctx.childNodes.length-1])
}}};
titleBar.setTitleText=function(title){var titleNode=this.titleArea,nodes=titleNode.childNodes,i;
for(i=0;
i<nodes.length;
i++){titleNode.removeChild(nodes[i])
}titleNode.appendChild(document.createTextNode(title))
};
return titleBar
}};
org.dforms.v1.Object.merge(org.dforms.ui.v1.TitleBar.prototype,new org.dforms.ui.v1.AbstractBuilder());namespace("org.dforms.ui.v1");
org.dforms.ui.v1.Window=function(){};
org.dforms.ui.v1.Window.prototype={l10n:{close:"Close"},build:function(obj,locale,preferences){var createElement=this.createElement,rb=this.getResourceBundle(locale),prefs=this.getPreferences(rb,preferences),cn=prefs.className?"window "+prefs.className:"window",ret=createElement("div",{className:cn}),shade=createElement("div",{className:"shade"}),window=createWindow();
function createWindow(){var win=createElement("div");
return win
}function setPosition(event){function getPageX(event){return event.pageX?event.pageX:event.clientX+document.body.scrollLeft+document.documentElement.scrollLeft
}function getPageY(event){return event.pageY?event.pageY:event.clientY+document.body.scrollTop+document.documentElement.scrollTop
}if(event){ret.style.left=getPageX(event)+"px";
ret.style.top=getPageY(event)+"px"
}}function add(node){window.appendChild(node)
}function onclose(event){var body=document.documentElement.getElementsByTagName("body")[0];
org.dforms.ui.v1.Movement.IEShit.disposeIFrame(ret);
body.removeChild(ret)
}ret.titleBar=new org.dforms.ui.v1.TitleBar().build();
add(ret.titleBar);
ret.window=window;
ret.appendChild(window);
ret.shade=shade;
ret.appendChild(shade);
ret.add=add;
ret.setPosition=setPosition;
return ret
}};
org.dforms.v1.Object.merge(org.dforms.ui.v1.Window.prototype,new org.dforms.ui.v1.AbstractBuilder());namespace("org.dforms.ui.v1.date");
org.dforms.ui.v1.date.DatePicker=function(view,model,locale,viewHandler){this.view=view;
this.model=model;
this.locale=locale;
this.viewHandler=viewHandler;
this.selected=model.value?new Date(this.parse(model.value)):null;
this.displayed=this.selected?this.selected:new Date();
this.x=view.offsetLeft;
this.y=view.offsetTop+view.offsetHeight;
var parent=view;
while(parent.offsetParent){parent=parent.offsetParent;
this.x+=parent.offsetLeft;
this.y+=parent.offsetTop
}this.rb=org.dforms.ui.v1.date.DatePicker.l10n[locale];
if(!this.rb){this.rb=org.dforms.ui.v1.date.DatePicker.l10n
}this.content=document.getElementById(model.id+"datePicker");
if(!this.content){this.content=this.createPicker();
this.content.id=model.id+"datePicker";
this.content.style.display="none";
document.documentElement.getElementsByTagName("body")[0].appendChild(this.content)
}};
org.dforms.ui.v1.date.DatePicker.l10n={weekStartDay:0,dayNamesShort:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesMed:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesLong:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthNamesMed:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],monthNamesLong:["January","February","March","April","May","June","July","August","September","October","November","December"],holidays:[{},{},{},{},{},{},{},{},{},{},{},{}],nextMonth:"Next Month",nextYear:"Next Year",previousMonth:"Previous Month",previousYear:"Previous Year",close:"Close",thisMonth:"This Month",selected:"Selected Day",today:"Today",format:function(dateInMilis){var date=new Date(dateInMilis);
return""+(date.getMonth()+1)+"/"+date.getDate()+"/"+date.getFullYear()
}};
org.dforms.ui.v1.date.DatePicker.prototype={dayClasses:["su","mo","tu","we","th","fr","sa"],format:function(dateInMilis){var date=new Date(dateInMilis),ret="";
ret+=date.getFullYear()+"-";
if(date.getMonth()<9){ret+="0"
}ret+=(date.getMonth()+1)+"-";
if(date.getDate()<10){ret+="0"
}ret+=date.getDate();
return ret
},parse:function(dateString){var re=/(\d{4})-(\d\d)-(\d\d)/,parts=dateString.match(re),ret=new Date();
ret.setFullYear(parts[1]);
ret.setMonth(new Number(parts[2])-1);
ret.setDate(new Number(parts[3]));
return ret
},paint:function(){var picker=this.createPicker(),body=document.documentElement.getElementsByTagName("body")[0];
body.removeChild(this.content);
this.content=picker;
body.appendChild(this.content);
if(!document.all){picker.shade.style.width=(picker.table.offsetWidth-4)+"px";
picker.shade.style.height=(picker.table.offsetHeight-4)+"px";
picker.shade.style.top="8px";
picker.shade.style.left="8px"
}org.dforms.ui.v1.date.DatePicker.IEShit.adjustIFrame(this)
},createPicker:function(){var table=this.createElement("table"),thead=this.createElement("thead",{onmousemove:this.onMouseMove,picker:this}),ret=this.createElement("div",{className:"date-picker"}),i;
for(i=0;
i<7;
i++){table.appendChild(this.createElement("col",{width:100/7+"%"}))
}thead.appendChild(this.createTitleBar());
thead.appendChild(this.createDayBar());
table.appendChild(thead);
table.appendChild(this.createMonthDays());
ret.style.left=this.x+"px";
ret.style.top=this.y+"px";
ret.style.zIndex=10000;
ret.appendChild(table);
ret.table=table;
ret.shade=this.createElement("div",{className:"shade"});
ret.appendChild(ret.shade);
return ret
},createTitleBar:function(){var tr=this.createElement("tr"),td=this.createElement("td",{colSpan:7}),div=this.createElement("div",{className:"ctrl-left"}),title=this.rb.monthNamesLong[this.displayed.getMonth()]+" "+this.displayed.getFullYear();
div.appendChild(this.createCtrl("\u25CA",this.onToday,this.rb.thisMonth));
div.appendChild(this.createCtrl("\u00AB",this.onPreviousYear,this.rb.previousYear));
div.appendChild(this.createCtrl("\u2039",this.onPreviousMonth,this.rb.previousMonth));
td.appendChild(div);
div=this.createElement("div",{className:"title",onmousedown:this.onMouseDown,onmouseup:this.onMouseUp},document.createTextNode(title));
div.picker=this;
td.appendChild(div);
div=this.createElement("div",{className:"ctrl-right"});
div.appendChild(this.createCtrl("\u203A",this.onNextMonth,this.rb.nextMonth));
div.appendChild(this.createCtrl("\u00BB",this.onNextYear,this.rb.nextYear));
div.appendChild(this.createCtrl("\u00D7",this.onClose,this.rb.close));
td.appendChild(div);
tr.appendChild(td);
return tr
},createDayBar:function(){var tr=this.createElement("tr"),i,index,args;
for(i=0;
i<7;
i++){index=(i+this.rb.weekStartDay)%7;
args={className:this.dayClasses[index],title:this.rb.dayNamesLong[index]};
tr.appendChild(this.createElement("td",args,document.createTextNode(this.rb.dayNamesShort[index])))
}return tr
},createMonthDays:function(){var tbody=this.createElement("tbody"),tr=this.createElement("tr"),today=new Date(),day=new Date(this.displayed.getTime()),done=false;
day.setDate(1);
day.setDate(day.getDate()-(7+day.getDay()-this.rb.weekStartDay)%7);
while(!done){tr.appendChild(this.createDay(today,day));
if(day.getDay()==(6+this.rb.weekStartDay)%7){tbody.appendChild(tr);
tr=this.createElement("tr");
day.setDate(day.getDate()+1);
if(day.getMonth()>this.displayed.getMonth()||day.getYear()>this.displayed.getYear()){done=true
}}else{day.setDate(day.getDate()+1)
}}return tbody
},createDay:function(today,day){var attrs={time:day.getTime(),picker:this,onclick:this.onSelect,onmouseover:org.dforms.ui.v1.date.DatePicker.IEShit.hover,onmouseout:org.dforms.ui.v1.date.DatePicker.IEShit.unhover},holiday=this.rb.holidays[day.getMonth()][day.getDate()];
if(this.selected&&day.getDate()==this.selected.getDate()&&day.getMonth()==this.selected.getMonth()){attrs.className="selected";
attrs.title=this.rb.selected
}else{if(holiday){attrs.className="holiday";
attrs.title=holiday
}else{if(day.getDate()==today.getDate()&&day.getMonth()==today.getMonth()&&day.getYear()==today.getYear()){attrs.className="today";
attrs.title=this.rb.today
}else{if(day.getMonth()!=this.displayed.getMonth()){attrs.className="other"
}}}}return this.createElement("td",attrs,document.createTextNode(day.getDate()))
},createCtrl:function(content,onclickHandler,titleText){return this.createElement("div",{className:"ctrl",title:titleText,onclick:onclickHandler,picker:this},document.createTextNode(content))
},createElement:function(localName,attrs,value){var ret=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,localName),attr;
for(attr in attrs){ret[attr]=attrs[attr]
}if(value){ret.appendChild(value)
}return ret
},onToday:function(){this.picker.displayed=new Date();
this.picker.paint()
},onPreviousYear:function(){var displayed=this.picker.displayed;
displayed.setFullYear(displayed.getFullYear()-1);
this.picker.paint()
},onPreviousMonth:function(){var displayed=this.picker.displayed;
displayed.setMonth(displayed.getMonth()-1);
this.picker.paint()
},onNextMonth:function(){var displayed=this.picker.displayed;
displayed.setMonth(displayed.getMonth()+1);
this.picker.paint()
},onNextYear:function(){var displayed=this.picker.displayed;
displayed.setFullYear(displayed.getFullYear()+1);
this.picker.paint()
},onClose:function(){var body=document.documentElement.getElementsByTagName("body")[0];
body.removeChild(this.picker.content);
delete this.picker.content;
if(this.picker.iframe){body.removeChild(this.picker.iframe);
delete this.picker.iframe
}},onSelect:function(){var picker=this.picker,value=this.picker.rb.format(this.time);
picker.model.value=picker.format(this.time);
if(picker.viewHandler){picker.viewHandler.call(picker,picker.view,value)
}else{picker.view.value=value
}picker.onClose.call(this)
},onMouseDown:function(event){event=event?event:window.event;
var picker=this.picker;
picker.mouseDown=true;
picker.dx=event.clientX-picker.x;
picker.dy=event.clientY-picker.y;
this.style.cursor="move"
},onMouseUp:function(){var picker=this.picker;
picker.mouseDown=false;
this.style.cursor="default"
},onMouseMove:function(event){event=event?event:window.event;
var picker=this.picker;
if(picker.mouseDown){picker.x=event.clientX-picker.dx;
picker.y=event.clientY-picker.dy;
picker.content.style.left=picker.x+"px";
picker.content.style.top=picker.y+"px";
org.dforms.ui.v1.date.DatePicker.IEShit.adjustIFrame(picker)
}}};
org.dforms.ui.v1.date.DatePicker.IEShit={hover:function(){this.className+=" hover"
},unhover:function(){this.className=this.className.substring(0,this.className.indexOf(" "))
},adjustIFrame:function(picker){if(document.all){var iframe=picker.iframe;
if(!iframe){iframe=picker.createElement("iframe");
iframe.setAttribute("frameborder","0");
iframe.style.position="absolute";
iframe.style.width=picker.content.offsetWidth;
iframe.style.height=picker.content.offsetHeight;
iframe.style.zIndex=picker.content.style.zIndex-1;
picker.iframe=iframe;
document.documentElement.getElementsByTagName("body")[0].appendChild(iframe)
}iframe.style.top=picker.content.style.top;
iframe.style.left=picker.content.style.left
}}};namespace("org.dforms.ui.v1");
org.dforms.ui.v1.date.DatePicker.l10n.sk={weekStartDay:1,dayNamesShort:["Ne","Po","Ut","St","Št","Pi","So"],dayNamesMed:["Ned","Pon","Uto","Str","Štv","Pia","Sob"],dayNamesLong:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],monthNamesMed:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],monthNamesLong:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],holidays:[{1:"Deň vzniku Slovenskej republiky",6:"Zjavenie Pána (Traja králi)"},{},{},{},{1:"Sviatok práce",8:"Deň víťazstva nad fašizmom"},{},{5:"Sviatok svätého Cyrila a Metoda"},{29:"Výročie SNP"},{1:"Deň ústavy Slovenskej republiky",15:"Sedembolestná Panna Mária"},{},{1:"Sviatok Všetkých svätých",17:"Deň boja za slobodu a demokraciu"},{24:"Štedrý deň",25:"prvý sviatok vianočný",26:"druhý sviatok vianočný"}],nextMonth:"Nasledujúci mesiac",nextYear:"Nasledujúci rok",previousMonth:"Predchádzajúci mesiac",previousYear:"Predchádzajúci rok",close:"Zatvoriť",thisMonth:"Tento mesiac",selected:"Vybraný deň",today:"Dnešok",format:function(dateInMilis){var date=new Date(dateInMilis);
return""+date.getDate()+"."+(date.getMonth()+1)+"."+date.getFullYear()
}};namespace("org.dforms.ui.v1.time");
org.dforms.ui.v1.time.TimeBuilder=function(){};
org.dforms.ui.v1.time.TimeBuilder.prototype={l10n:{hour:"Hour",minute:"Minute",second:"Second",am:"Ante Meridiem",pm:"Poste Meridiem",preferences:{displaySeconds:true,displayMinutes:true,format12:true},format:function(date,prefs){var ret,val=date.getHours();
if(prefs.format12&&val>12){val=val%12
}ret=val<10?"0"+val:""+val;
if(prefs.displayMinutes){val=date.getMinutes();
ret+=":";
ret+=val<10?"0"+val:""+val
}if(prefs.displaySeconds){val=date.getSeconds();
ret+=":";
ret+=val<10?"0"+val:""+val
}if(prefs.format12){ret+=" ";
ret+=date.getHours()<12?"AM":"PM"
}return ret
}},build:function(obj,locale,preferences){var createElement=this.createElement,rb=this.getResourceBundle(locale),prefs=this.getPreferences(rb,preferences),isAM=obj.isAM,setAM=obj.setAM,getHour=obj.getHour,getMinute=obj.getMinute,getSecond=obj.getSecond,setHour=obj.setHour,setMinute=obj.setMinute,setSecond=obj.setSecond;
function createAnalog(){function rotate(x,y,phi){var sin=Math.sin(phi),cos=Math.cos(phi);
return{x:cos*x-sin*y,y:sin*x+cos*y}
}function isInRectangle(x,y,phi,r,dw){var p=rotate(x,y,phi);
p.x=Math.round(p.x);
p.y=Math.round(p.y);
return 0<=p.x&&p.x<=r+1&&-dw<=p.y&&p.y<=dw
}function isOverAPM(event){var x=event.layerX,y=event.layerY;
return apm.x<x&&x<=apm.x+apm.width&&apm.y<y&&y<=apm.y+apm.height
}function isOverHour(event){var phi=Math.PI*(getHour()/6+Math.floor(getMinute()/12)/30-0.5),r=glass.radius;
return isInRectangle(event.layerX-r,r-event.layerY,phi,hours.radius,3)
}function isOver(event,value,radius){var phi=Math.PI*(value/30-0.5),x=event.layerX-glass.radius,y=glass.radius-event.layerY;
return isInRectangle(x,y,phi,radius,3)
}function onmousemove(event){var r=glass.radius,x=event.layerX-r,y=r-event.layerY,value,p,target=event.target,style=target.style;
function compute(target){var value=-Math.round(30*Math.atan(y/x)/Math.PI-15);
if(x<0){value+=30
}return value
}if(hours.mousedown===true){p=rotate(x,y,Math.PI*Math.floor(getMinute()/12)/30);
value=Math.abs(Math.round(6*Math.atan(p.y/p.x)/Math.PI-3));
if(p.x<0){value+=6
}value=value%12+apm.increment;
if(getHour()!=value){setHour(value)
}}else{if(minutes.mousedown===true){value=compute(event.target);
if(getMinute()!=value){setMinute(value)
}}else{if(seconds.mousedown===true){value=compute(event.target);
if(getSecond()!=value){setSecond(value)
}}else{if(isOverHour(event)){target.title=rb.hour;
style.cursor="pointer"
}else{if(isOver(event,getMinute(),minutes.radius)){target.title=rb.minute;
style.cursor="pointer"
}else{if(isOver(event,getSecond(),seconds.radius)){target.title=rb.second;
style.cursor="pointer"
}else{if(isOverAPM(event)){target.title=rb[isAM()?"am":"pm"];
style.cursor="pointer"
}else{target.title="";
style.cursor=""
}}}}}}}}function onmousedown(event){if(isOverAPM(event)){var val=getHour();
setHour(isAM()?val+12:val-12)
}else{if(isOverHour(event)){hours.mousedown=true
}else{if(isOver(event,getMinute(),minutes.radius)){minutes.mousedown=true
}else{if(isOver(event,getSecond(),seconds.radius)){seconds.mousedown=true
}}}}event.stopPropagation()
}function onmouseup(event){hours.mousedown=false;
minutes.mousedown=false;
seconds.mousedown=false;
event.stopPropagation()
}function createAPM(){var apm=createElement("div",{className:"apm"});
apm.increment=0;
apm.x=65;
apm.y=90;
apm.width=17;
apm.height=11;
obj.addPropertyListener("hour",function(value,old){setAM(value<12)
});
obj.addPropertyListener("am",function(value,old){var i,nodes=apm.childNodes;
for(i=0;
i<nodes.length;
i++){apm.removeChild(nodes[i])
}apm.appendChild(document.createTextNode(value?"AM":"PM"));
apm.increment=value?0:12
});
return apm
}function create(clName){var ret=createElement("div",{className:clName});
ret.width=111;
ret.radius=56;
ret.mousedown=false;
obj.addPropertyListener(clName,function(value){var position=-(value%60)*ret.width;
ret.style.backgroundPosition=position+"px 0";
setHour(getHour())
});
return ret
}function createHours(){var ret=createElement("div",{className:"hour"});
ret.width=69;
ret.radius=34;
ret.mousedown=false;
obj.addPropertyListener("hour",function(value){var position=-(value%12)*ret.width*5-Math.floor(getMinute()/12)*ret.width;
ret.style.backgroundPosition=position+"px 0"
});
return ret
}var ret=createElement("div",{className:"analog"},{mousedown:onmousedown,mouseup:onmouseup,mousemove:onmousemove}),glass=ret.glass=createElement("div",{className:"glass",title:""}),apm=ret.apm=createAPM(),seconds=ret.second=create("second"),minutes=ret.minute=create("minute"),hours=ret.hours=createHours();
glass.radius=73;
ret.appendChild(ret.apm);
if(prefs.displaySeconds){ret.appendChild(ret.second)
}if(prefs.displayMinutes){ret.appendChild(ret.minute)
}ret.appendChild(ret.hours);
glass.appendChild(createElement("div",{className:"os"}));
ret.appendChild(glass);
return ret
}function createDigital(){function onchange(event){function norm(value,def,over){if(isNaN(value)){value=def
}else{if(value<0){value=0
}else{if(value>over){value=over
}}}return value
}var input=event.target,value=Number(input.value);
if(input.className==="hour"){setHour(norm(value,getHour(),23))
}else{if(input.className==="minute"){setMinute(norm(value,getMinute(),59))
}else{setSecond(norm(value,getSecond(),59))
}}}function onfocus(event){event.target.parentNode.style.outline="solid rgb(102, 148, 255) 1px"
}function onblur(event){event.target.parentNode.style.outline=""
}function createInput(clName,handler){var ret=createElement("input",{className:clName,type:"text",size:2,maxLength:2,title:rb[clName]},{change:onchange,focus:onfocus,blur:onblur});
obj.addPropertyListener(clName,handler?handler:function(value){ret.value=value<10?"0"+value:""+value
});
return ret
}function createAPM(){function onclick(event){var val=getHour();
setHour(isAM()?val+12:val-12)
}var ret=createElement("input",{className:"apm",type:"button"},{click:onclick,focus:onfocus,blur:onblur});
if(prefs.format12){obj.addPropertyListener("hour",function(value,old){if(Math.floor(value/12)!=Math.floor(old/12)){setAM(value<12)
}});
obj.addPropertyListener("am",function(value){ret.value=value?"AM":"PM";
ret.title=rb[value?"am":"pm"]
})
}return ret
}var ret=createElement("div",{className:"digital"});
ret.hours=createInput("hour",function(value){var val=prefs.format12&&value>12?value%12:value;
ret.hours.value=val<10?"0"+val:""+val
});
ret.appendChild(ret.hours);
if(prefs.displayMinutes){ret.minute=createInput("minute");
ret.appendChild(document.createTextNode(":"));
ret.appendChild(ret.minute)
}if(prefs.displaySeconds){ret.second=createInput("second");
ret.appendChild(document.createTextNode(":"));
ret.appendChild(ret.second)
}if(prefs.format12){ret.apm=createAPM();
ret.appendChild(ret.apm)
}return ret
}return[createAnalog(),createDigital()]
}};
org.dforms.v1.Object.merge(org.dforms.ui.v1.time.TimeBuilder.prototype,new org.dforms.ui.v1.AbstractBuilder());namespace("org.dforms.ui.v1.time");
org.dforms.ui.v1.time.TimeBuilder.prototype.l10n.sk={close:"Zatvoriť",now:"Aktuálny čas",hour:"Hodina",minute:"Minúta",second:"Sekunda",am:"Pred poludním",pm:"Po poludní",preferences:{displaySeconds:false,format12:false},format:org.dforms.ui.v1.time.TimeBuilder.prototype.l10n.format};namespace("org.dforms.ui.v1.time");
org.dforms.ui.v1.time.TimePicker=function(model,locale,title,prefs){this.setHour=function(value){var old=hour;
hour=value%24;
self.firePropertyChanged("hour",hour,old)
};
this.getHour=function(){return hour
};
this.setMinute=function(value){var old=minute;
minute=value%60;
self.firePropertyChanged("minute",minute,old)
};
this.getMinute=function(){return minute
};
this.setSecond=function(value){var old=second;
second=value%60;
self.firePropertyChanged("second",second,old)
};
this.getSecond=function(){return second
};
this.setAM=function(value){var old=am;
am=value;
self.firePropertyChanged("am",am,old)
};
this.isAM=function(){return am
};
this.impl=this.build(this,this.locale,{});
var self=this,firePropertyChanged=this.firePropertyChanged,now=new Date(),hour=0,minute=0,second=0,am=false;
this.model=model;
this.locale=locale;
this.title=title;
this.rb=this.getResourceBundle(locale);
this.preferences=this.getPreferences(this.rb,prefs);
this.setHour(now.getHours());
this.setMinute(now.getMinutes());
this.setSecond(now.getSeconds());
delete now
};
org.dforms.ui.v1.time.TimePicker.prototype={l10n:{close:"Close",now:"Now",preferences:{window:{className:"time-picker"}}},build:function(obj,locale,preferences){var rb=this.getResourceBundle(locale),prefs=obj.getPreferences(rb,preferences),time=new org.dforms.ui.v1.time.TimeBuilder().build(obj,locale,prefs.time),window=new org.dforms.ui.v1.Window().build(obj,locale,prefs.window);
function onnow(event){var now=new Date();
obj.setHour(now.getHours());
obj.setMinute(now.getMinutes());
obj.setSecond(now.getSeconds())
}function titleChanged(){window.setTitle(time.rb.format(new Date(0,0,0,obj.getHour(),obj.getMinute(),obj.getSecond()),prefs))
}this.addPropertyListener("hour",titleChanged);
this.addPropertyListener("minute",titleChanged);
this.addPropertyListener("second",titleChanged);
this.analog=time[0];
this.digital=time[1];
window.addCtrl("\u25CA",onnow,rb.now,true);
window.add(time[0]);
window.add(time[1]);
return window
},paint:function(event){var wimpl=this.impl,body,style;
if(wimpl){wimpl.setPosition(event);
wimpl.setTitle(this.title);
body=document.documentElement.getElementsByTagName("body")[0];
body.appendChild(wimpl)
}if(!document.all){style=wimpl.shade.style;
style.width=(wimpl.window.offsetWidth-4)+"px";
style.height=(wimpl.window.offsetHeight-4)+"px";
style.top="8px";
style.left="8px"
}org.dforms.v1.dom.Event.addEventListener(wimpl,"mousedown",org.dforms.ui.v1.Movement.mousedown);
org.dforms.ui.v1.Movement.IEShit.adjustIFrame(wimpl)
}};
org.dforms.ui.v1.time.TimePicker.prototype.merge(new org.dforms.ui.v1.AbstractBuilder());namespace("org.dforms.ui.v1.zone");
org.dforms.ui.v1.zone.Zone=function(){};
org.dforms.ui.v1.zone.Zone.prototype={l10n:{preferences:{zones:{"-11.0":{"0":{Niue:"Niue",Samoa:"Midway, Pago Pago, Samoa","West Samoa":"Apia, MIT"}},"-10.0":{"0":{"Cook Is.":"Rarotonga",Hawaii:"HST, Hawaii, Honolulu, Johnston","Hawaii Aleutian":"Aleutian",Tahiti:"Tahiti",Tokelau:"Fakaofo"},"1":{"Hawaii Aleutian":"Adak, Aleutian, Atka"}},"-9.5":{"0":{Marquesas:"Marquesas"}},"-9.0":{"0":{Alaska:"Alaska",Gambier:"Gambier"},"1":{Alaska:"AST, Alaska, Anchorage, Juneau, Nome, Yakutat"}},"-8.0":{"0":{Pacific:"BajaNorte, PST, PST8PDT, Pacific, Pacific New",Pitcairn:"Pitcairn"},"1":{Pacific:"BajaNorte, Dawson, Ensenada, Los Angeles, PST, PST8PDT, Pacific, Pacific New, Tijuana, Vancouver, Whitehorse, Yukon"}},"-7.0":{"0":{Mountain:"Arizona, BajaSur, Dawson Creek, Denver, Edmonton, Hermosillo, Inuvik, MST, MST7MDT, Mazatlan, Mountain, Navajo, PNT, Phoenix, Shiprock, Yellowknife"},"1":{Mountain:"BajaSur, Boise, Cambridge Bay, Chihuahua, Denver, Edmonton, Inuvik, MST, MST7MDT, Mazatlan, Mountain, Navajo, Shiprock, Yellowknife"}},"-6.0":{"0":{Central:"Belize, CST, CST6CDT, Cancun, Center, Central, Chicago, Costa Rica, East Saskatchewan, El Salvador, General, Guatemala, Managua, Menominee, Merida, Mexico City, Monterrey, Rainy River, Rankin Inlet, Regina, Saskatchewan, Swift Current, Tegucigalpa, Winnipeg","Easter Is.":"Easter, EasterIsland",Galapagos:"Galapagos"},"1":{Central:"CST, CST6CDT, Cancun, Center, Central, Chicago, General, Menominee, Merida, Mexico City, Monterrey, Rainy River, Rankin Inlet, Winnipeg","Easter Is.":"Easter, EasterIsland"}},"-5.0":{"0":{Acre:"Acre, Eirunepe, Porto Acre, Rio Branco",Central:"Cuba, Havana",Colombia:"Bogota",Eastern:"Cayman, Coral Harbour, Detroit, EST, EST5EDT, East Indiana, Eastern, Fort Wayne, Grand Turk, IET, Indiana Starke, Indianapolis, Iqaluit, Jamaica, Knox, Knox IN, Louisville, Marengo, Michigan, Monticello, Montreal, Nassau, New York, Nipigon, Panama, Pangnirtung, Port au Prince, Thunder Bay, Toronto, Vevay",Ecuador:"Guayaquil",Peru:"Lima"},"1":{Central:"Cuba, Havana",Eastern:"Detroit, EST, EST5EDT, East Indiana, Eastern, Fort Wayne, Grand Turk, IET, Indiana Starke, Indianapolis, Iqaluit, Knox, Knox IN, Louisville, Marengo, Michigan, Monticello, Montreal, Nassau, New York, Nipigon, Pangnirtung, Thunder Bay, Toronto, Vevay"}},"-4.0":{"0":{Amazon:"Boa Vista, Campo Grande, Cuiaba, Manaus, Porto Velho, West",Atlantic:"Anguilla, Antigua, Aruba, Atlantic, Barbados, Bermuda, Curacao, Dominica, Glace Bay, Goose Bay, Grenada, Guadeloupe, Halifax, Martinique, Montserrat, PRT, Port of Spain, Puerto Rico, Santo Domingo, St Kitts, St Lucia, St Thomas, St Vincent, Thule, Tortola, Virgin",Bolivia:"La Paz",Chile:"Continental, Palmer, Santiago","Falkland Is.":"Stanley",Guyana:"Guyana",Paraguay:"Asuncion",Venezuela:"Caracas"},"1":{Amazon:"Campo Grande, Cuiaba",Atlantic:"Atlantic, Bermuda, Glace Bay, Goose Bay, Halifax, Thule",Chile:"Continental, Palmer, Santiago","Falkland Is.":"Stanley",Paraguay:"Asuncion"}},"-3.5":{"1":{Newfoundland:"CNT, Newfoundland, St Johns"}},"-3.0":{"0":{Argentine:"AGT, Buenos Aires, Catamarca, ComodRivadavia, Cordoba, Jujuy, La Rioja, Mendoza, Rio Gallegos, Rosario, San Juan, Tucuman, Ushuaia",Brasilia:"Araguaina, BET, Bahia, Belem, East, Fortaleza, Maceio, Recife, Sao Paulo","French Guiana":"Cayenne","Pierre & Miquelon":"Miquelon",Rothera:"Rothera",Suriname:"Paramaribo",Uruguay:"Montevideo","Western Greenland":"Godthab"},"1":{Brasilia:"BET, East, Sao Paulo","Pierre & Miquelon":"Miquelon","Western Greenland":"Godthab"}},"-2.0":{"0":{"Fernando de Noronha":"DeNoronha, Noronha","South Georgia":"South Georgia"}},"-1.0":{"0":{"Cape Verde":"Cape Verde"},"1":{Azores:"Azores","Eastern Greenland":"Scoresbysund"}},"0.0":{"0":{"Coordinated Universal Time":"UCT, UTC, Universal, Zulu","Greenwich Mean Time":"Abidjan, Accra, Bamako, Banjul, Belfast, Bissau, Conakry, Dakar, Danmarkshavn, Dublin, Eire, Freetown, GB, GB Eire, GMT, Greenwich, Iceland, Lome, London, Monrovia, Nouakchott, Ouagadougou, Reykjavik, Sao Tome, St Helena, Timbuktu","Western Europe":"Canary, Casablanca, El Aaiun, Faeroe, Lisbon, Madeira, Portugal, WET"},"1":{"Greenwich Mean Time":"Belfast, Dublin, Eire, GB, GB Eire, London","Western Europe":"Canary, Faeroe, Lisbon, Madeira, Portugal, WET"}},"1.0":{"0":{"Central Europe":"Algiers, Amsterdam, Andorra, Belgrade, Berlin, Bratislava, Brussels, Budapest, CET, Ceuta, Copenhagen, ECT, Gibraltar, Jan Mayen, Ljubljana, Longyearbyen, Luxembourg, Madrid, Malta, Monaco, Oslo, Paris, Poland, Prague, Rome, San Marino, Sarajevo, Skopje, Stockholm, Tirane, Tunis, Vaduz, Vatican, Vienna, Warsaw, Zagreb, Zurich","Middle Europe":"MET","Western Africa":"Bangui, Brazzaville, Douala, Kinshasa, Lagos, Libreville, Luanda, Malabo, Ndjamena, Niamey, Porto Novo, Windhoek"},"1":{"Central Europe":"Amsterdam, Andorra, Belgrade, Berlin, Bratislava, Brussels, Budapest, CET, Ceuta, Copenhagen, ECT, Gibraltar, Jan Mayen, Ljubljana, Longyearbyen, Luxembourg, Madrid, Malta, Monaco, Oslo, Paris, Poland, Prague, Rome, San Marino, Sarajevo, Skopje, Stockholm, Tirane, Vaduz, Vatican, Vienna, Warsaw, Zagreb, Zurich","Middle Europe":"MET","Western Africa":"Windhoek"}},"2.0":{"0":{"Central Africa":"Blantyre, Bujumbura, CAT, Gaborone, Harare, Kigali, Lubumbashi, Lusaka, Maputo","Eastern Europe":"Amman, Athens, Beirut, Bucharest, Cairo, Chisinau, Damascus, EET, Egypt, Gaza, Helsinki, Istanbul, Kaliningrad, Kiev, Libya, Mariehamn, Minsk, Nicosia, Riga, Simferopol, Sofia, Tallinn, Tiraspol, Tripoli, Turkey, Uzhgorod, Vilnius, Zaporozhye",Israel:"Israel, Jerusalem, Tel Aviv","South Africa":"Johannesburg, Maseru, Mbabane"},"1":{"Eastern Europe":"ART, Amman, Athens, Beirut, Bucharest, Cairo, Chisinau, Damascus, EET, Egypt, Gaza, Helsinki, Istanbul, Kaliningrad, Kiev, Mariehamn, Minsk, Nicosia, Riga, Simferopol, Sofia, Tallinn, Tiraspol, Turkey, Uzhgorod, Vilnius, Zaporozhye",Israel:"Israel, Jerusalem, Tel Aviv"}},"3.0":{"0":{Arabia:"Aden, Baghdad, Bahrain, Kuwait, Qatar, Riyadh","Eastern Africa":"Addis Ababa, Antananarivo, Asmera, Comoro, Dar es Salaam, Djibouti, EAT, Kampala, Khartoum, Mayotte, Mogadishu, Nairobi",Georgia:"Tbilisi",Moscow:"Moscow, W SU",Syowa:"Syowa"},"1":{Arabia:"Baghdad",Georgia:"Tbilisi",Moscow:"Moscow, W SU"}},"3.117777777777778":{"0":{"GMT+03:07":"Riyadh87, Riyadh88, Riyadh89"}},"3.5":{"1":{Iran:"Iran, Tehran"}},"4.0":{"0":{Armenia:"NET, Yerevan",Gulf:"Dubai, Muscat",Mauritius:"Mauritius",Reunion:"Reunion",Samara:"Samara",Seychelles:"Mahe"},"1":{Armenia:"NET, Yerevan",Azerbaijan:"Baku",Samara:"Samara"}},"4.5":{"0":{Afghanistan:"Kabul"}},"5.0":{"0":{Aqtau:"Aqtau",Aqtobe:"Aqtobe","French Southern & Antarctic Lands":"Kerguelen",Kirgizstan:"Bishkek",Maldives:"Maldives",Oral:"Oral",Pakistan:"Karachi, PLT",Tajikistan:"Dushanbe",Turkmenistan:"Ashgabat, Ashkhabad",Uzbekistan:"Samarkand, Tashkent",Yekaterinburg:"Yekaterinburg"},"1":{Kirgizstan:"Bishkek",Yekaterinburg:"Yekaterinburg"}},"5.5":{"0":{India:"Calcutta, IST"}},"5.75":{"0":{Nepal:"Katmandu"}},"6.0":{"0":{"Alma Ata":"Almaty",Bangladesh:"BST, Dacca, Dhaka",Bhutan:"Thimbu, Thimphu","Indian Ocean Territory":"Chagos",Mawson:"Mawson",Novosibirsk:"Novosibirsk",Omsk:"Omsk",Qyzylorda:"Qyzylorda","Sri Lanka":"Colombo",Vostok:"Vostok"},"1":{Novosibirsk:"Novosibirsk",Omsk:"Omsk"}},"6.5":{"0":{"Cocos Islands":"Cocos",Myanmar:"Rangoon"}},"7.0":{"0":{"Christmas Island":"Christmas",Davis:"Davis",Hovd:"Hovd",Indochina:"Bangkok, Phnom Penh, Saigon, VST, Vientiane",Krasnoyarsk:"Krasnoyarsk","West Indonesia":"Jakarta, Pontianak"},"1":{Hovd:"Hovd",Krasnoyarsk:"Krasnoyarsk"}},"8.0":{"0":{Brunei:"Brunei","Central Indonesia":"Makassar, Ujung Pandang",China:"CTT, Chongqing, Chungking, Harbin, Kashgar, Macao, Macau, PRC, Shanghai, Taipei, Urumqi","Hong Kong":"Hong Kong, Hongkong",Irkutsk:"Irkutsk",Malaysia:"Kuala Lumpur, Kuching",Philippines:"Manila",Singapore:"Singapore",Ulaanbaatar:"Ulaanbaatar, Ulan Bator","Western Australia":"Casey, Perth, West"},"1":{Irkutsk:"Irkutsk",Ulaanbaatar:"Ulaanbaatar, Ulan Bator"}},"9.0":{"0":{"East Indonesia":"Jayapura","East Timor":"Dili",Japan:"JST, Japan, Tokyo",Korea:"Pyongyang, ROK, Seoul",Palau:"Palau",Yakutsk:"Yakutsk"},"1":{Choibalsan:"Choibalsan",Yakutsk:"Yakutsk"}},"9.5":{"0":{"Northern Territory":"ACT, Darwin, North","South Australia":"Adelaide, South","South Australia/New South Wales":"Broken Hill, Yancowinna"},"1":{"South Australia":"Adelaide, South","South Australia/New South Wales":"Broken Hill, Yancowinna"}},"10.0":{"0":{Chamorro:"Guam, Saipan","Dumont d'Urville":"DumontDUrville","New South Wales":"ACT, Canberra, Currie, NSW, Sydney",Queensland:"Brisbane, Lindeman, Queensland",Tasmania:"Hobart, Tasmania",Victoria:"Melbourne, Victoria","Papua New Guinea":"Port Moresby",Sakhalin:"Sakhalin",Truk:"Truk",Vladivostok:"Vladivostok",Yap:"Yap"},"1":{"New South Wales":"ACT, AET, Canberra, Currie, NSW, Sydney",Tasmania:"Hobart, Tasmania",Victoria:"Melbourne, Victoria",Sakhalin:"Sakhalin",Vladivostok:"Vladivostok"}},"10.5":{"0":{"Load Howe":"LHI, Lord Howe"}},"11.0":{"0":{Kosrae:"Kosrae","New Caledonia":"Noumea",Ponape:"Ponape","Solomon Is.":"Guadalcanal, SST",Vanuatu:"Efate"},"1":{Magadan:"Magadan"}},"11.5":{"0":{Norfolk:"Norfolk"}},"12.0":{"0":{Fiji:"Fiji","Gilbert Is.":"Tarawa","Marshall Islands":"Kwajalein, Majuro",Nauru:"Nauru","New Zealand":"Auckland, NST, NZ",Tuvalu:"Funafuti",Wake:"Wake","Wallis & Futuna":"Wallis"},"1":{Anadyr:"Anadyr","New Zealand":"Auckland, McMurdo, NST, NZ, South Pole","Petropavlovsk Kamchatski":"Kamchatka"}},"12.75":{"1":{Chatham:"Chatham, NZ CHAT"}},"13.0":{"0":{"Phoenix Is.":"Enderbury",Tonga:"Tongatapu"}},"14.0":{"0":{"Line Is.":"Kiritimati"}}},charWidth:30},format:function(value){var val=Math.abs(value),hour=Math.floor(val),minute=Math.floor((val-hour)*60),ret=hour<10?"0":"";
ret+=hour;
ret+=":";
ret+=minute<10?"0":"";
ret+=minute;
if(value<0){ret="-"+ret
}else{if(value>0){ret="+"+ret
}else{ret="+"+ret
}}return ret
}},build:function(obj,locale,preferences){var createElement=this.createElement,rb=this.getResourceBundle(locale),prefs=this.getPreferences(rb,preferences),ret,offset,dstOffset,zones=prefs.zones,zone,dsts,dst,descs,desc,titles,title,label,group,i,tz=new Date().getTimezoneOffset()/60,opt,sel;
ret=createElement("select",{size:15});
for(zone in zones){offset=Number(zone);
dsts=zones[zone];
if(!dsts.call){for(dst in dsts){dstOffset=Number(dst);
if(dstOffset==0){title="GMT"+rb.format(offset);
label=rb.format(offset)
}else{label=rb.format(offset)+" (+"+dstOffset+"h Daylight Saving Time)";
title="GMT"+rb.format(offset+dstOffset)+" (Daylight Saving Time)"
}group=createElement("optgroup",{title:title,label:label});
descs=dsts[dst];
if(!descs.call){for(desc in descs){title=descs[desc];
if(!title.call){opt=createElement("option",{value:offset+dstOffset,title:title},null,desc);
if(tz*-1==offset+dstOffset){opt.selected=true
}group.appendChild(opt)
}}ret.appendChild(group)
}}}}return ret
}};
org.dforms.v1.Object.merge(org.dforms.ui.v1.zone.Zone.prototype,new org.dforms.ui.v1.AbstractBuilder());namespace("org.dforms.ui.v1.zone");
org.dforms.ui.v1.zone.ZonePicker=function(model,locale,title,prefs){this.setZone=function(value){var old=zone;
zone=value;
self.firePropertyChanged("zone",zone,old)
};
this.getZone=function(){return zone
};
this.impl=this.build(this,this.locale);
var self=this,now=new Date(),zone=0;
this.model=model;
this.locale=locale;
this.title=title;
this.rb=this.getResourceBundle(locale);
this.preferences=this.getPreferences(this.rb,prefs);
this.setZone(now.getHours());
delete now
};
org.dforms.ui.v1.zone.ZonePicker.prototype={l10n:{close:"Close",now:"Now",preferences:{window:{className:"zone-picker"}}},build:function(obj,locale,preferences){var rb=this.getResourceBundle(locale),prefs=obj.getPreferences(rb,preferences),zone=new org.dforms.ui.v1.zone.Zone().build(obj,locale,prefs.zone),window=new org.dforms.ui.v1.Window().build(obj,locale,prefs.window);
function onnow(event){obj.setZone(new Date().getTimezoneOffset()/60)
}function titleChanged(){}this.addPropertyListener("zone",titleChanged);
window.addCtrl("\u25CA",onnow,rb.now,true);
window.add(zone);
return window
},paint:function(event){var wimpl=this.impl,body,style;
if(wimpl){wimpl.setPosition(event);
wimpl.setTitle(this.title);
body=document.documentElement.getElementsByTagName("body")[0];
body.appendChild(wimpl)
}if(!document.all){style=wimpl.shade.style;
style.width=(wimpl.window.offsetWidth-4)+"px";
style.height=(wimpl.window.offsetHeight-4)+"px";
style.top="8px";
style.left="8px"
}org.dforms.v1.dom.Event.addEventListener(wimpl,"mousedown",org.dforms.ui.v1.Movement.mousedown);
org.dforms.ui.v1.Movement.IEShit.adjustIFrame(wimpl)
}};
org.dforms.ui.v1.zone.ZonePicker.prototype.merge(new org.dforms.ui.v1.AbstractBuilder());namespace("org.dforms.validation.v1.event");
org.dforms.validation.v1.event.Event=function(ctx){if(ctx){this.source=ctx.element
}this.context=ctx
};
org.dforms.validation.v1.event.Event.fireEvent=function(event,ctx){ctx=ctx||event.context;
var handler="on"+event.type;
if(ctx[handler]){ctx[handler](ctx.element,event)
}else{if(ctx.parent){org.dforms.validation.v1.event.Event.fireEvent(event,ctx.parent)
}}};namespace("org.dforms.validation.v1.event");
org.dforms.validation.v1.event.ChildSuccessEvent=function(ctx){org.dforms.validation.v1.event.Event.call(this,ctx);
this.type="ChildSuccess"
};
org.dforms.validation.v1.event.ChildSuccessEvent.protype=new org.dforms.validation.v1.event.Event();
org.dforms.validation.v1.event.ChildSuccessEvent.protype.constructor=org.dforms.validation.v1.event.ChildSuccessEvent;namespace("org.dforms.validation.v1.event");
org.dforms.validation.v1.event.ChildFailureEvent=function(ctx,messages){org.dforms.validation.v1.event.ChildSuccessEvent.call(this,ctx);
this.type="ChildFailure";
this.messages=messages
};
org.dforms.validation.v1.event.ChildFailureEvent.protype=new org.dforms.validation.v1.event.ChildSuccessEvent();
org.dforms.validation.v1.event.ChildFailureEvent.protype.constructor=org.dforms.validation.v1.event.ChildFailureEvent;namespace("org.dforms.validation.v1.event");
org.dforms.validation.v1.event.SuccessEvent=function(ctx){org.dforms.validation.v1.event.Event.call(this,ctx);
this.type="Success"
};
org.dforms.validation.v1.event.SuccessEvent.protype=new org.dforms.validation.v1.event.Event();
org.dforms.validation.v1.event.SuccessEvent.protype.constructor=org.dforms.validation.v1.event.SuccessEvent;namespace("org.dforms.validation.v1.event");
org.dforms.validation.v1.event.FailureEvent=function(ctx,events){org.dforms.validation.v1.event.SuccessEvent.call(this,ctx);
this.events=events;
this.type="Failure"
};
org.dforms.validation.v1.event.FailureEvent.protype=new org.dforms.validation.v1.event.SuccessEvent();
org.dforms.validation.v1.event.FailureEvent.protype.constructor=org.dforms.validation.v1.event.FailureEvent;namespace("org.dforms.validation.v1");
org.dforms.validation.v1.Context=function(element,parent){this.element=element;
if(element.nodeName.toLowerCase()==="select"){this.value=element.options[element.selectedIndex].value
}else{this.value=element.value
}if(this.value==null){this.value=""
}this.parent=parent;
this.children=[];
if(parent){this.validate=parent.validate;
parent.children.push(this)
}this.prefix="v";
var j,name,value,attrs=attributes=["type","required","minLength","maxLength","lengthUnit","pattern","minInclusive","minExclusive","maxInclusive","maxExclusive","fractionDigits","totalDigits","message","validate","onChildSuccess","onChildFailure","onSuccess","onFailure"];
for(j=0;
j<attrs.length;
j++){name=attrs[j];
value=element.getAttributeNode(this.prefix+":"+name);
if(value){value=value.value;
if(name.indexOf("on")==0||name=="validate"){value=new Function("element","event",value)
}this[name]=value
}}};
org.dforms.validation.v1.Context.prototype={validate:function(){var result=[],children=this.children,event,success,i,childContext,res,ns=org.dforms.validation.v1.event;
if(children.length==0&&this.type){event=this.validateImpl();
if(event){ns.Event.fireEvent(event);
if(event.type=="ChildFailure"){result.push(event)
}}else{alert(event)
}}else{success=true;
for(i=0;
i<children.length;
i++){childContext=children[i];
res=childContext.validate();
if(res.length!=0){result.push(new ns.FailureEvent(childContext,res));
success=false
}}if(success){ns.Event.fireEvent(new ns.SuccessEvent(this))
}else{ns.Event.fireEvent(new ns.FailureEvent(this,result))
}}return result
},validateImpl:function(){var ret;
switch(this.type){case"string":ret=this.validateString();
break;
case"integer":ret=this.validateInteger();
break;
case"decimal":ret=this.validateDecimal();
break;
case"boolean":ret=this.validateBoolean();
break;
case"date":ret=this.validateDate();
break;
case"choice":ret=this.validateChoice();
break
}return ret
},validateString:function(){try{var ns=org.dforms.validation.v1,value=this.value==null?"":this.value,required=this.required?this.required=="true":false,lengthUnit=this.lengthUnit?this.lengthUnit:"character",minLength=this.minLength?this.minLength:0,maxLength=this.maxLength,length=ns.Utils.getStringLength(value,lengthUnit),pattern=this.pattern,unitName=lengthUnit=="character"?"znakov":"bytov",messages=[],p,ret;
if(required&&value==""){messages.push("Text nemôže byť prázdny.")
}if(length<minLength){messages.push("Text musí byť dlhší alebo rovný ako "+minLength+" "+unitName+".")
}if(maxLength&&length>maxLength){messages.push("Text musí byť kratší alebo rovný ako "+maxLength+" "+unitName+".")
}if(pattern&&value&&value!=""){p=new RegExp("^"+pattern+"$");
if(!value.match(p)){messages.push("Text musí zodpovedať regulárnemu výrazu '"+pattern+"'.")
}}}catch(e){alert(e.name+": "+e.message)
}if(messages.length==0){ret=new ns.event.ChildSuccessEvent(this)
}else{ret=new ns.event.ChildFailureEvent(this,this.message?[this.message]:messages)
}return ret
},validateInteger:function(){var ns=org.dforms.validation.v1,element=this.element,value=Number(this.value),required=this.required?this.required=="true":fals,messages=[],label,labelName,minInclusive,maxInclusive,minExclusive,maxExclusive,totalDigits,fractionDigits,ret;
if(required&&(element.value==""||element.value==null)){label=ns.Utils.getLabelTextFor(element.getAttribute("id"));
labelName=label==null?"":"'"+label+"' ";
messages.push("Pole nemôže byť prázdne.")
}if(!isNaN(value)&&(value-Math.floor(value))==0){minInclusive=Number(this.minInclusive);
maxInclusive=Number(this.maxInclusive);
minExclusive=Number(this.minExclusive);
maxExclusive=Number(this.maxExclusive);
totalDigits=Number(this.totalDigits);
fractionDigits=Number(this.fractionDigits);
if(!isNaN(totalDigits)&&ns.Utils.getMaxPlaceValue(value)>totalDigits){messages.push("Hodnota musí mať nanajvyš "+totalDigits+" číslic.")
}if(!isNaN(minInclusive)&&(value<minInclusive)){messages.push("Hodnota musí byť vačšia alebo rovná ako "+minInclusive+".")
}if(!isNaN(minExclusive)&&value<=minExclusive){messages.push("Hodnota musí byť vačšia ako "+minExclusive+".")
}if(!isNaN(maxInclusive)&&value>maxInclusive){messages.push("Hodnota musí byť menšia alebo rovná ako "+maxInclusive+".")
}if(!isNaN(maxExclusive)&&value>=maxExclusive){messages.push("Hodnota musí byť menšia ako "+maxExclusive+".")
}}else{messages.push("Hodnota musí byť celé číslo.")
}if(messages.length==0){ret=new ns.event.ChildSuccessEvent(this)
}else{ret=new ns.event.ChildFailureEvent(this,this.message?[this.message]:messages)
}return ret
},validateDecimal:function(){var ns=org.dforms.validation.v1,element=this.element,value=Number(this.value),required=this.required?this.required=="true":false,messages=[],minInclusive,maxInclusive,minExclusive,maxExclusive,totalDigits,fractionDigits,ret;
if(required&&(element.value==""||element.value==null)){messages.push("Pole nemôže byť prázdne.")
}if(!isNaN(value)){minInclusive=Number(this.minInclusive);
maxInclusive=Number(this.maxInclusive);
minExclusive=Number(this.minExclusive);
maxExclusive=Number(this.maxExclusive);
totalDigits=Number(this.totalDigits);
fractionDigits=Number(this.fractionDigits);
if(!isNaN(fractionDigits)&&(ns.Utils.getFractionDigits(value)>fractionDigits)){messages.push("Hodnota musí mať počet desatinných miest vačší alebo rovný ako "+fractionDigits+".")
}if(!isNaN(totalDigits)&&ns.Utils.getMaxPlaceValue(value)+ns.Utils.getFractionDigits(value)>totalDigits){messages.push("Hodnota musí mať nanajvyš "+totalDigits+" číslic.")
}if(!isNaN(minInclusive)&&(value<minInclusive)){messages.push("Hodnota musí byť vačšia alebo rovná ako "+minInclusive+".")
}if(!isNaN(minExclusive)&&value<=minExclusive){messages.push("Hodnota musí byť vačšia ako "+minExclusive+".")
}if(!isNaN(maxInclusive)&&value>maxInclusive){messages.push("Hodnota musí byť menšia alebo rovná ako "+maxInclusive+".")
}if(!isNaN(maxExclusive)&&value>=maxExclusive){messages.push("Hodnota musí byť menšia ako "+maxExclusive+".")
}}else{messages.push("Hodnota musí byť celé číslo.")
}if(messages.length==0){ret=new ns.event.ChildSuccessEvent(this)
}else{ret=new ns.event.ChildFailureEvent(this,this.message?[this.message]:messages)
}return ret
},validateBoolean:function(){return[]
},validateDate:function(){return[]
},validateChoice:function(){try{var ns=org.dforms.validation.v1.event;
value=this.value,required=this.required?this.required=="true":false,messages=[],ret;
if(required&&value==""){messages.push("Musíte si vybrať jednu z možností.")
}}catch(e){alert(e.name+": "+e.message)
}if(messages.length==0){ret=new ns.ChildSuccessEvent(this)
}else{ret=new ns.ChildFailureEvent(this,this.message?[this.message]:messages)
}return ret
}};
org.dforms.validation.v1.Context.prototype.constructor=org.dforms.validation.v1.Context;namespace("org.dforms.validation.v1");
org.dforms.validation.v1.TreeBuilder={build:function(element,parent){var ctx=parent?parent:new org.dforms.validation.v1.Context(element),ext=this.isExtending(element),leaf=this.isLeaf(element),childNodes,node,i;
if(ext||leaf){ctx=new org.dforms.validation.v1.Context(element,ctx)
}childNodes=element.childNodes;
for(i=0;
i<childNodes.length;
i++){node=childNodes[i];
if(node.nodeType==1&&!node.disabled&&!this.isTemplate(node)){this.build(node,ctx)
}}return ctx
},isTemplate:function(element){var id=element.getAttribute("id");
return id!=null&&id.indexOf("-template")!=-1
},isExtending:function(element){return element.getAttributeNode("v:validate")||element.getAttributeNode("v:onChildSuccess")||element.getAttributeNode("v:onChildFailure")||element.getAttributeNode("v:onSuccess")||element.getAttributeNode("v:onFailure")
},isLeaf:function(element){return element.getAttributeNode("v:type")
}};namespace("org.dforms.validation.v1");
org.dforms.validation.v1.Utils={validate:function(element){var root=org.dforms.validation.v1.TreeBuilder.build(element);
var ret=root.validate();
return ret
},highlightLabel:function(id){var label=this.getLabelFor(id);
if(label!=null){label.style.color="red"
}},unhighlightLabel:function(id){var label=this.getLabelFor(id);
if(label!=null){label.style.color=""
}},showMessages:function(msgs,messages,addLabel){var i,message,span,Document=org.dforms.v1.dom.Document;
for(i=0;
i<messages.length;
i++){message=messages[i];
span=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"div");
span.appendChild(document.createTextNode(message));
span.className="dforms-m-error";
msgs.appendChild(span)
}},clearMessages:function(msgs){while(msgs.firstChild){msgs.removeChild(msgs.firstChild)
}},getLabelFor:function(id){var labels=document.getElementsByTagName("label"),label,i;
for(i=0;
i<labels.length;
i++){label=labels[i];
if(label.getAttribute("class")!="description"&&label.htmlFor==id){return label
}}return null
},getLabelText:function(label){var ret="",text="",nodes,node,j;
if(label!=null){nodes=label.childNodes;
for(j=0;
j<nodes.length;
j++){node=nodes[j];
if(node.nodeType==3){text=node.nodeValue;
break
}}ret=text.indexOf("*")==0?text.substr(1):text
}return ret
},getLabelTextFor:function(id){var label=this.getLabelFor(id);
return this.getLabelText(label)
},addLabelTextTo:function(event){var labelText=this.getLabelTextFor(event.source.id),i;
for(i=0;
i<event.messages.length;
i++){event.messages[i]=labelText+": "+event.messages[i]
}},getStringLength:function(string,lengthUnit){if(lengthUnit=="character"){return string.length
}else{var enters=0,i;
for(i=0;
i<string.length;
i++){if(string.charAt(i)=="\n"){enters++
}}string=encodeURI(string);
string=unescape(string);
return string.length+enters
}},getMaxPlaceValue:function(number){var text=""+Math.abs(number)+".";
return text.indexOf(".")
},getFractionDigits:function(number){var text=""+number,index=text.indexOf(".");
if(index!=-1){return text.substring(index).length-1
}return 0
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.ContextHelp=function(F,I,J,G){F=F?F:window.event;
org.dforms.ui.v1.Window.call(this,F,"contextHelp",I,J);
if(G){this.addContent(document.createTextNode(G))
}this.removeAllCtrl();
this.addCtrl("\u00D7",this.dispose,this.rb.close);
var H=this.impl.window.style;
H.width="150px";
H.height="104px"
};
org.dforms.rk.v1.ContextHelp.prototype=new org.dforms.ui.v1.Window();
org.dforms.rk.v1.ContextHelp.prototype.constructor=org.dforms.rk.v1.ContextHelp;
org.dforms.rk.v1.ContextHelp.l10n={close:"Close"};
org.dforms.rk.v1.ContextHelp.l10n.sk={close:"Zatvoriť"};
org.dforms.rk.v1.ContextHelp.prototype.dispose=function(){var B=org.dforms.rk.v1.ContextHelp.instance;
if(B){B.close()
}org.dforms.rk.v1.ContextHelp.instance=null
};
org.dforms.rk.v1.ContextHelp.onContextHelp=function(L,I,H){L=L?L:window.event;
var N=org.dforms.rk.v1.ContextHelp.instance,J=document.getElementById(I),K=J.getAttribute("title"),M;
if(N){N.dispose()
}N=org.dforms.rk.v1.ContextHelp.instance=new org.dforms.rk.v1.ContextHelp(L,H,K);
for(M=0;
M<J.childNodes.length;
M++){N.addContent(J.childNodes[M].cloneNode(true))
}N.paint()
};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.Grouper={showHideGroup:function(B){if(this.isCollapsed(B)){this.setCollapsed(B,false);
this.showGroup(B)
}else{this.hideGroup(B);
this.setCollapsed(B,true)
}},showGroup:function(E){var H=this.getGroupLevel(E),F=this.isCollapsed(E),G;
E=E.nextSibling;
G=this.getGroupLevel(E);
while(E!=null&&(G==null||G>H)){if(!F){if(document.all){E.style.display=""
}else{E.style.visibility=""
}}if(G==null){E=E.nextSibling
}else{E=this.showGroup(E)
}G=this.getGroupLevel(E)
}return E
},hideGroup:function(E){var D=this.getGroupLevel(E),F;
E=E.nextSibling;
F=this.getGroupLevel(E);
while(E!=null&&(F==null||F>D)){if(document.all){E.style.display="none"
}else{E.style.visibility="collapse"
}E=E.nextSibling;
F=this.getGroupLevel(E)
}return E
},isCollapsed:function(D){var C=D.getElementsByTagName("div")[0];
return C.childNodes[0].nodeValue=="+"
},setCollapsed:function(D,E){var F=D.getElementsByTagName("div")[0];
while(F.childNodes.length>0){F.removeChild(F.childNodes[0])
}F.appendChild(document.createTextNode(E?"+":"-"))
},getGroupLevel:function(E){var F=null,G,H;
if(E){G=E.className;
H=G.match(/dforms-d-group-(\d+)/);
F=H!=null?new Number(H[1]):null
}return F
}};namespace("org.dforms.rk.v1.p");
org.dforms.rk.v1.p.Combo={onSuccess:function(panel,event){var ns=org.dforms.validation.v1.event;
ns.Event.fireEvent(new ns.ChildSuccessEvent(event.context),event.context.parent);
this.getSelect(panel).style.color=""
},onFailure:function(panel,event){var ev=event.events[0],position=this.getPosition(ev.source),select=this.getSelect(panel),ns=org.dforms.validation.v1.event;
this.hideCombos(panel);
this.showCombo(panel.childNodes[1].childNodes[position-1]);
select.selectedIndex=position-1;
select.style.color="red";
ns.Event.fireEvent(new ns.ChildFailureEvent(event.context,[]),event.context.parent)
},onChildSuccess:function(panel,event){var id=event.source.id,msgs=document.getElementById("msgs."+id),position;
if(msgs){msgs.style.display="none";
org.dforms.validation.v1.Utils.clearMessages(msgs);
position=this.getPosition(event.source);
this.unhighlightHead(this.getHead(panel,position))
}},onChildFailure:function(panel,event){var id=event.source.id,msgs=document.getElementById("msgs."+id),position,Utils=org.dforms.validation.v1.Utils;
if(!msgs){msgs=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"div");
msgs.setAttribute("id","msgs."+id);
event.source.parentNode.insertBefore(msgs,event.source)
}msgs.style.display="none";
Utils.clearMessages(msgs);
Utils.showMessages(msgs,event.messages);
msgs.style.display="";
position=this.getPosition(event.source);
this.highlightHead(this.getHead(panel,position))
},getPosition:function(element){var select=element.parentNode.parentNode.parentNode.firstChild.firstChild;
return select.selectedIndex+1
},getHeads:function(panel){return this.getSelect(panel).options
},getSelect:function(panel){var head=panel.firstChild;
return head.firstChild
},getHead:function(panel,position){var heads=this.getHeads(panel);
return heads[position-1]
},highlightHead:function(head){head.style.color="red"
},unhighlightHead:function(head){head.style.color=""
},onCombo:function(id){var pane=document.getElementById(id),select=pane.firstChild.firstChild,position=select.selectedIndex;
body=pane.childNodes[1];
this.hideCombos(pane);
this.showCombo(body.childNodes[position])
},showCombo:function(pane){pane.style.display="block";
this.setEnabled(pane,true)
},hideCombo:function(pane){pane.style.display="none";
this.setEnabled(pane,false)
},hideCombos:function(pane){var body=pane.childNodes[1],i;
for(i=0;
i<body.childNodes.length;
i++){this.hideCombo(body.childNodes[i])
}},setEnabled:function(container,enabled){if(container.nodeName.toLowerCase()=="input"||container.nodeName.toLowerCase()=="textarea"||container.nodeName.toLowerCase=="select"){if(enabled){container.disabled=false;
container.removeAttribute("disabled")
}else{container.setAttribute("disabled","disabled");
container.disabled=true
}return 
}var i,node,id,nclass,childNodes=container.childNodes;
for(i=0;
i<childNodes.length;
i++){node=childNodes[i];
if(node.nodeType==1){id=node.getAttribute("id");
nclass=node.getAttribute("class");
if(id==null||id.lastIndexOf("-template")==-1){if(nclass!=null&&(nclass.lastIndexOf("dforms-p-combo")>-1)&&enabled){this.enableComboPanel(node)
}else{this.setEnabled(node,enabled)
}}}}},enableComboPanel:function(nnode){var id=nnode.getAttribute("id"),select=document.getElementById(id).firstChild.firstChild;
select.disabled=false;
select.removeAttribute("disabled");
this.onCombo(id)
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.Form={onFormSubmit:function(J){var G=false,F=J.validate===false,I=[],H;
if(!F){I=org.dforms.validation.v1.Utils.validate(J)
}if(I.length==0){this.disableActions(J);
switch(J.enctype){case"multipart/form-data":break;
case"application/xml":org.dforms.v1.io.XMLHttpClient.post(this.getActions(J),org.dforms.v1.dom.DElement.parse(J));
break;
case"application/x-www-form-urlencoded":break;
case"application/x-www-form-xmlencoded":org.dforms.v1.dom.DElement.parse(J);
H=document.getElementById("xml");
H.value=org.dforms.v1.dom.DElement.parse(J);
this.disableAll(J);
J.enctype="application/x-www-form-urlencoded";
break
}G=true
}return G
},disableActions:function(H){var I,J,F;
for(I=H.elements.length-1;
I>=0;
I--){try{J=H.elements[I];
F=J.nodeName.toLowerCase();
if(F=="button"||(F=="input"&&(J.type=="submit"||J.type=="button"))){J.disabled=true
}}catch(G){}}},getActions:function(H){var I,J,F;
for(I=H.elements.length-1;
I>=0;
I--){try{J=H.elements[I];
F=J.nodeName.toLowerCase();
if(F=="button"||(F=="input"&&(J.type=="submit"||J.type=="button"))){J.disabled=true
}}catch(G){}}return J.value
},disableAll:function(H){var I,J,F;
for(I=H.elements.length-1;
I>=0;
I--){try{J=H.elements[I];
F=J.nodeName.toLowerCase();
if(!(J.type=="hidden")){J.disabled=true
}}catch(G){}}}};namespace("org.dforms.rk.v1.d");
org.dforms.rk.v1.d.Multi={onChildFailure:function(L,K){var G=K.source.id,I=document.getElementById("msgs."+G),J,H;
if(!I){J=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"tr");
I=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td");
I.setAttribute("id","msgs."+G);
I.setAttribute("colspan",2);
J.appendChild(I);
H=org.dforms.v1.dom.Element.getParentByTagName(K.source,"tr");
H.parentNode.insertBefore(J,H)
}I.parentNode.style.display="none";
org.dforms.validation.v1.Utils.clearMessages(I);
org.dforms.validation.v1.Utils.showMessages(I,K.messages);
I.parentNode.style.display=""
},onChildSuccess:function(H,G){var E=G.source.id,F=document.getElementById("msgs."+E);
if(F){F.parentNode.style.display="none";
org.dforms.validation.v1.Utils.clearMessages(F);
org.dforms.validation.v1.Utils.unhighlightLabel(E)
}},onSuccess:function(D,C){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(C.context),C.context.parent)
},onFailure:function(D,C){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildFailureEvent(C.context,[]),C.context.parent)
},removeEditor:function(J){var H=org.dforms.v1.dom.Element.getParentByTagName(J,"table"),I=H.nextSibling,G,K,L;
H.parentNode.removeChild(H);
while(I!=null){G=I.parentNode.id;
G=G.substring(0,G.indexOf("-container"));
K=this.nameFromId(G);
L=this.getPosition(I);
this.replaceName(I,K,L);
this.replaceID(I,G,L+1,L);
I=I.nextSibling
}},addEditor:function(L,U,S){function M(A,G){function H(a,J){var Z=null,b,I,K;
if(a.id==J){Z=a
}else{b=a.childNodes;
for(I=0;
I<b.length;
I++){K=b[I];
if(K.nodeType==1){Z=H(K,J);
if(Z!=null){break
}}}}return Z
}var B,E,D,C,F=A.childNodes.length;
if(A.className.indexOf("dforms-p-combo")!=-1){B=A.id+"combo1",C=H(A,B);
org.dforms.rk.v1.p.Combo.showCombo(C);
return 
}if(A.nodeName.toLowerCase()=="input"||A.nodeName.toLowerCase()=="textarea"||A.nodeName.toLowerCase()=="select"){A.removeAttribute("disabled");
return 
}for(E=0;
E<F;
E++){D=A.childNodes[E];
if(D.nodeType==1){B=D.getAttribute("id");
if(B==null||B.lastIndexOf("-template")==-1){M(D,G)
}}}}function N(B){var D,C,A=B.childNodes.length;
for(D=0;
D<A;
D++){C=B.childNodes[D];
if(C.nodeType==1){return C
}}return B
}function Q(A){var E=0,C,B,D=A.childNodes.length;
for(C=0;
C<D;
C++){B=A.childNodes[C];
if(B.nodeType==1&&B.nodeName.toLowerCase()=="table"){E++
}}return E
}var O=document.getElementById(S+"-container"),P=document.getElementById(S+"-template"),T=N(P),R=T.cloneNode(true),V=Q(O)+1;
this.replaceID(R,S,0,V);
this.replaceName(R,U,V);
M(R,true);
O.appendChild(R);
return R
},moveUp:function(J){var H=org.dforms.v1.dom.Element.getParentByTagName(J,"table"),I=H.previousSibling,G,K,L;
if(I!=null){G=H.parentNode.id;
G=G.substring(0,G.indexOf("-container"));
K=this.nameFromId(G);
L=this.getPosition(I);
this.replaceName(H,K,L);
this.replaceName(I,K,L+1);
this.replaceID(H,G,L+1,L);
this.replaceID(I,G,L,L+1);
H.parentNode.insertBefore(H,I)
}},moveDown:function(J){var H=org.dforms.v1.dom.Element.getParentByTagName(J,"table"),I=H.nextSibling,G,K,L;
if(I!=null){G=H.parentNode.id;
G=G.substring(0,G.indexOf("-container"));
K=this.nameFromId(G);
L=this.getPosition(I);
this.replaceName(H,K,L);
this.replaceName(I,K,L-1);
this.replaceID(H,G,L-1,L);
this.replaceID(I,G,L,L-1);
I=I.nextSibling;
if(I==null){H.parentNode.appendChild(H)
}else{H.parentNode.insertBefore(H,I)
}}},nameFromId:function(C){var D=C.substring(C.indexOf("."));
D=D.replace(/\.(\d+)\.\./g,"[$1]/");
D=D.replace(/\./g,"/");
return D
},getPosition:function(G){var F=G.parentNode.childNodes,H,E;
for(H=0;
H<F.length;
H++){E=F[H];
if(E==G){return H+1
}}return -1
},replaceID:function(b,P,c,V){function Z(A){return A.replace(/([\.])/g,"\\$1")
}try{var W=b,S=["id","onclick","onchange","htmlFor"],a,d,Q,T,U,X,R=W.childNodes.length;
for(a=0;
a<S.length;
a++){Q=S[a];
T=W[Q];
if(T!=null&&T!=""){T=T.toString();
U=""+this.normalizeEventHandler(T);
X=new RegExp("("+Z(P)+")\\."+c+"\\.","g");
if(U.match(X)){U=U.replace(X,"$1."+V+".");
if(T.indexOf("function")==0){W.setAttribute(Q,U)
}else{W[Q]=U
}}}}for(a=0;
a<R;
a++){d=W.childNodes[a];
if(d.nodeType==1){this.replaceID(d,P,c,V)
}}}catch(Y){alert(P+": "+Y)
}},replaceName:function(T,V,R){function W(A){return A.replace(/([\[\]])/g,"\\$1")
}function Q(C){var D,A=C.parentNode;
try{D=document.createElement('<input type="radio" name="'+C.name+'">');
D.id=C.id;
D.value=C.value;
D.title=C.title;
if(C.disabled){D.disabled=true
}A.insertBefore(D,C);
A.removeChild(C)
}catch(B){}}try{var Y=["name","onclick","onchange"],S,U,Z,N,O,X=T.childNodes.length;
for(S=0;
S<Y.length;
S++){Z=T.getAttribute(Y[S]);
if(Z!=null&&Z!=""){Z=Z.toString();
N=""+this.normalizeEventHandler(Z);
O=new RegExp("("+W(V)+")\\[\\d+\\]","g");
if(N.match(O)){N=N.replace(O,V+"["+R+"]");
if(Z.indexOf("function")==0){N=new Function(N)
}T.setAttribute(Y[S],N);
if(T.type=="radio"){Q(T)
}}}}for(S=0;
S<X;
S++){U=T.childNodes[S];
if(U.nodeType==1){this.replaceName(U,V,R)
}}}catch(P){alert(P.name+": "+P.message)
}},normalizeEventHandler:function(C){var D=""+C;
if(D.indexOf("function")==0){D=D.substring(D.indexOf("{")+1,D.lastIndexOf("}"))
}return D
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.DateEditor={display:function(J,F,I){var G=document.getElementById(F),H=document.getElementById(J);
this.picking=true;
new org.dforms.ui.v1.date.DatePicker(H,G,I,this.handleView).paint()
},handleView:function(C,D){while(C.childNodes.length>0){C.removeChild(C.childNodes[0])
}C.appendChild(document.createTextNode(D))
},clear:function(G){var L=G.parentNode,J=L.getElementsByTagName("input")[0],I=L.getElementsByTagName("span")[0],H,K;
J.value="";
for(H=0;
H<I.childNodes.length;
H++){K=I.childNodes[H];
if("\u00A0"!=K.nodeValue){I.removeChild(K)
}}I.appendChild(document.createTextNode("\xA0"))
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.Check={validate:function(G){var J,I,F,H;
if(G.required&&G.required=="true"){I=G.element.getElementsByTagName("input");
F=true;
for(H=0;
H<I.length;
H++){F&=I[H].disabled
}if(F){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(G));
return[]
}for(H=0;
H<I.length;
H++){if(I[H].checked){org.dforms.validation.v1.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(G));
return[]
}}J=new org.dforms.validation.v1.event.ChildFailureEvent(G,G.message?[G.message]:["Musíte si vybrať jednu z možností."]);
org.dforms.validation.v1.event.Event.fireEvent(J);
return[J]
}else{J=new org.dforms.validation.v1.event.ChildSuccessEvent(G);
org.dforms.validation.v1.event.Event.fireEvent(J);
return[]
}}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.Radio={validate:function(H){var F,J,G=true,I;
if(H.required&&H.required=="true"){J=H.element.getElementsByTagName("input");
for(I=0;
I<J.length;
I++){G&=J[I].disabled
}if(G){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(H));
return[]
}for(I=0;
I<J.length;
I++){if(J[I].checked){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(H));
return[]
}}F=new org.dforms.validation.v1.event.ChildFailureEvent(H,H.message?[H.message]:["Musíte si vybrať jednu z možností."]);
org.dforms.validation.v1.event.Event.fireEvent(F);
return[F]
}else{F=new org.dforms.validation.v1.event.ChildSuccessEvent(H);
org.dforms.validation.v1.event.Event.fireEvent(F);
return[]
}}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.Grid={onChildFailure:function(K,J,N){var L=J.source.id,M=this.getPosition(K,J.source),O=document.getElementById("msgs."+L),P=org.dforms.validation.v1.Utils,I;
if(!O){M=org.dforms.v1.dom.Element.getParentByTagName(J.source,"tr");
I=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"tr");
if(M.childNodes.length>N){I.appendChild(org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td"))
}O=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td");
O.setAttribute("colspan",N*2);
O.setAttribute("id","msgs."+L);
I.appendChild(O);
if(K.tBodies.length>0){K=K.tBodies[0]
}K.insertBefore(I,M)
}O.parentNode.style.display="none";
P.clearMessages(O);
P.addLabelTextTo(J);
P.showMessages(O,J.messages);
O.parentNode.style.display="";
P.highlightLabel(L)
},onChildSuccess:function(I,H,F){var J=H.source.id,G=document.getElementById("msgs."+J);
if(G){G.parentNode.style.display="none";
org.dforms.validation.v1.Utils.clearMessages(G);
org.dforms.validation.v1.Utils.unhighlightLabel(J)
}},onSuccess:function(F,E,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(E.context),E.context.parent)
},onFailure:function(F,E,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildFailureEvent(E.context,[]),E.context.parent)
},getRows:function(I){var F=[],J=I.childNodes,H,G;
for(H=0;
H<J.length;
H++){G=J[H];
if(!G.id||G.id.indexOf("msgs.")!=0){F.push(G)
}}return F
},getPosition:function(G,E){var H=this.getRows(G),F;
for(F=0;
F<H.length;
F++){if(org.dforms.v1.dom.Element.isDescendantOrSelf(H[F],E)){return F+1
}}return -1
}};namespace("org.dforms.rk.v1.p");
org.dforms.rk.v1.p.Tab={onTab:function(J,I){var G=org.dforms.v1.dom.Element.getParentByTagName(J,"div"),H=org.dforms.rk.v1.p.Tab;
function L(A,B){H.getHead(A,B).className="sel";
H.getBody(A,B).style.display="block"
}function K(A,B){H.getHead(A,B).className="";
H.getBody(A,B).style.display="none"
}K(G,H.getSelectedPosition(G));
L(G,I)
},onSuccess:function(C,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(D.context),D.context.parent)
},onFailure:function(H,F){var G=F.events[0],J=H.getAttribute("id"),I=this.getPosition(G.source);
this.onTab(H.childNodes[0],I);
org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildFailureEvent(F.context,[]),F.context.parent)
},onChildSuccess:function(G,L){function H(A){A.style.color=""
}var J=L.source.id,K=document.getElementById("msgs."+J),I;
if(K){K.style.display="none";
org.dforms.validation.v1.Utils.clearMessages(K);
I=this.getPosition(L.source);
H(this.getHead(G,I))
}},onChildFailure:function(G,L){function H(A){A.style.color="red"
}var J=L.source.id,K=document.getElementById("msgs."+J),I;
if(!K){K=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"div");
K.setAttribute("id","msgs."+J);
L.source.parentNode.insertBefore(K,L.source)
}K.style.display="none";
org.dforms.validation.v1.Utils.clearMessages(K);
org.dforms.validation.v1.Utils.showMessages(K,L.messages);
K.style.display="";
I=this.getPosition(L.source);
H(this.getHead(G,I))
},getPosition:function(E){var D=E.parentNode.parentNode.childNodes,F;
for(F=0;
F<D.length;
F++){if(D[F].lastChild==E){return F+1
}}return -1
},getSelectedPosition:function(F,G){var H=this.getSize(F),E;
for(E=0;
E<H;
E++){if(this.getHead(F,E+1).className=="sel"){return E+1
}}return -1
},getSize:function(B){return B.childNodes[0].childNodes.length
},getHead:function(D,C){return D.childNodes[0].childNodes[C-1]
},getBody:function(D,C){return D.childNodes[1].childNodes[C-1]
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.p.Table={onChildFailure:function(H,N){var I=N.source.id,K=document.getElementById("msgs."+I),L=org.dforms.validation.v1.Utils,J,M;
if(!K){J=org.dforms.v1.dom.Element.getParentByTagName(N.source,"tr");
M=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"tr");
if(N.source.parentNode.previousSibling){M.appendChild(org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td"))
}K=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td");
K.setAttribute("id","msgs."+I);
M.appendChild(K);
if(H.tBodies&&H.tBodies.length>0){H=H.tBodies[0]
}H.insertBefore(M,J)
}K.parentNode.style.display="none";
L.clearMessages(K);
L.showMessages(K,N.messages);
K.parentNode.style.display="";
L.highlightLabel(I)
},onChildSuccess:function(I,H){var J=H.source.id,F=document.getElementById("msgs."+J),G=org.dforms.validation.v1.Utils;
if(F){F.parentNode.style.display="none";
G.clearMessages(F);
G.unhighlightLabel(J)
}},onSuccess:function(C,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(D.context),D.context.parent)
},onFailure:function(C,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildFailureEvent(D.context,[]),D.context.parent)
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.Tree={showHideGroup:function(B){if(this.isCollapsed(B)){this.setCollapsed(B,false);
this.showGroup(B)
}else{this.hideGroup(B);
this.setCollapsed(B,true)
}},showGroup:function(E){var D=this.getGroupLevel(E),F=this.isCollapsed(E);
cursorLevel;
E=E.nextSibling;
cursorLevel=this.getGroupLevel(E);
while(E!=null&&(cursorLevel==null||cursorLevel>D)){if(!F){if(document.all){E.style.display=""
}else{E.style.visibility=""
}}if(cursorLevel==null){E=E.nextSibling
}else{E=this.showGroup(E)
}cursorLevel=this.getGroupLevel(E)
}return E
},hideGroup:function(E){var D=this.getGroupLevel(E),F;
E=E.nextSibling;
F=this.getGroupLevel(E);
while(E!=null&&(F==null||F>D)){if(document.all){E.style.display="none"
}else{E.style.visibility="collapse"
}E=E.nextSibling;
F=this.getGroupLevel(E)
}return E
},isCollapsed:function(D){var C=D.getElementsByTagName("div")[0];
return C.childNodes[0].nodeValue=="+"
},setCollapsed:function(D,E){var F=D.getElementsByTagName("div")[0];
while(F.childNodes.length>0){F.removeChild(F.childNodes[0])
}F.appendChild(document.createTextNode(E?"+":"-"))
},getGroupLevel:function(E){var F=null,G,H;
if(E){G=E.className;
H=G.match(/dforms-p-tree-(\d+)/);
F=H!=null?new Number(H[1]):null
}return F
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.XBox={onChildFailure:function(K,I,M){var L=I.source.id,N=document.getElementById("msgs."+L),O=org.dforms.validation.v1.Utils,P,J;
if(!N){P=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"tr");
J=I.source.parentNode.parentNode.childNodes.length;
if(I.source.parentNode.parentNode.childNodes[0].childNodes[0].nodeName=="label"){P.appendChild(org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td"));
J--
}N=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td");
N.setAttribute("colspan",J);
N.setAttribute("id","msgs."+L);
P.appendChild(N);
if(K.tBodies.length>0){K=K.tBodies[0]
}K.insertBefore(P,I.source.parentNode.parentNode)
}N.parentNode.style.display="none";
O.clearMessages(N);
O.addLabelTextTo(I);
O.showMessages(N,I.messages);
N.parentNode.style.display="";
O.highlightLabel(L)
},onChildSuccess:function(I,H,K){var J=H.source.id,L=document.getElementById("msgs."+J),G=org.dforms.validation.v1.Utils;
if(L){L.parentNode.style.display="none";
G.clearMessages(L);
G.unhighlightLabel(J)
}},onSuccess:function(F,E,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(E.context),E.context.parent)
},onFailure:function(F,E,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildFailureEvent(E.context,[]),E.context.parent)
},getRows:function(I){var F=[],J=I.childNodes,H,G;
for(H=0;
H<J.length;
H++){G=J[H];
if(!G.id||G.id.indexOf("msgs.")!=0){F.push(G)
}}return F
},getPosition:function(G,E){var H=this.getRows(G),F;
for(F=0;
F<H.length;
F++){if(org.dforms.v1.dom.Element.isDescendantOrSelf(H[F],E)){return F+1
}}return -1
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.YBox={onChildFailure:function(H,N){var I=N.source.id,K=document.getElementById("msgs."+I),L=org.dforms.validation.v1.Utils,J,M;
if(!K){J=org.dforms.v1.dom.Element.getParentByTagName(N.source,"tr");
M=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"tr");
if(N.source.parentNode.previousSibling){M.appendChild(org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td"))
}K=org.dforms.v1.dom.Document.createElementNS(org.dforms.v1.dom.Document.htmlns,"td");
K.setAttribute("id","msgs."+I);
M.appendChild(K);
if(H.tBodies&&H.tBodies.length>0){H=H.tBodies[0]
}H.insertBefore(M,J)
}K.parentNode.style.display="none";
L.clearMessages(K);
L.showMessages(K,N.messages);
K.parentNode.style.display="";
L.highlightLabel(I)
},onChildSuccess:function(I,H){var J=H.source.id,F=document.getElementById("msgs."+J),G=org.dforms.validation.v1.Utils;
if(F){F.parentNode.style.display="none";
G.clearMessages(F);
G.unhighlightLabel(J)
}},onSuccess:function(C,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildSuccessEvent(D.context),D.context.parent)
},onFailure:function(C,D){org.dforms.validation.v1.event.Event.fireEvent(new org.dforms.validation.v1.event.ChildFailureEvent(D.context,[]),D.context.parent)
}};namespace("org.dforms.rk.v1");
org.dforms.rk.v1.IFrame={resize:function(J){var G=null,I=0,H=0;
try{G=top.document.getElementById(J);
if(!G){return 
}I=G.contentWindow.document.body.scrollHeight;
H=G.contentWindow.document.body.parentNode.clientHeight;
if(document.all&&H>I){I=H
}if(I>=25){G.style.height=I+"px";
G.style.overflowY="hidden"
}}catch(F){}return 
},updateSize:function(D){var C;
for(C=0;
C<D.length;
C++){org.dforms.rk.v1.IFrame.resize(D[C].id)
}}};