function wHELPERS(){}wHELPERS.prototype.addEvent=function(D,C,B){if(!D){return }if(D.attachEvent){D["e"+C+B]=B;D[C+B]=function(){D["e"+C+B](window.event)};D.attachEvent("on"+C,D[C+B])}else{if(D.addEventListener){D.addEventListener(C,B,false)}else{var A=D["on"+C];if(A){D["on"+C]=function(E){A(E);B(E)}}else{D["on"+C]=B}}}};wHELPERS.prototype.removeEvent=function(C,B,A){if(C.detachEvent){if(C[B+A]){C.detachEvent("on"+B,C[B+A]);C[B+A]=null}}else{if(C.removeEventListener){C.removeEventListener(B,A,false)}else{C["on"+B]=null}}};wHELPERS.prototype.getSourceElement=function(A){if(!A){A=window.event}if(A.target){var B=A.target}else{var B=A.srcElement}if(!B){return null}if(B.nodeType==3){B=B.parentNode}if(B.tagName.toUpperCase()=="LABEL"&&A.type=="click"){if(B.getAttribute("for")){B=document.getElementById(B.getAttribute("for"))}}return B};wHELPERS.prototype.preventEvent=function(A){if(!A){A=window.event}if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}return false};wHELPERS.prototype.stopPropagation=function(A){if(!A){var A=window.event}A.cancelBubble=true;if(A.stopPropagation){A.stopPropagation()}};wHELPERS.prototype.randomId=function(){var A=(new Date()).getTime();A=A.toString().substr(6);for(var B=0;B<6;B++){A+=String.fromCharCode(48+Math.floor((Math.random()*10)))}return"id-"+A};wHELPERS.prototype.activateStylesheet=function(C){if(document.getElementsByTagName){var B=document.getElementsByTagName("link")}else{if(document.styleSheets){var B=document.styleSheets}}for(var A=0;B[A];A++){if(B[A].href.indexOf(C)!=-1){B[A].disabled=true;B[A].disabled=false}}};wHELPERS.prototype.hasClass=function(A,B){if(A&&A.className){if((" "+A.className+" ").indexOf(" "+B+" ")!=-1){return true}}return false};wHELPERS.prototype.hasClassPrefix=function(A,B){if(A&&A.className){if((" "+A.className).indexOf(" "+B)!=-1){return true}}return false};wHELPERS.prototype.hasIdPrefix=function(A,B){if(A&&A.id){if(A.id.indexOf(B)!=-1){return true}}return false};wHELPERS.prototype.getTop=function(A){var B=0;if(A.offsetParent){while(A.offsetParent){if((new wHELPERS()).getComputedStyle(A,"position")=="relative"){return B}B+=A.offsetTop;A=A.offsetParent}}return B};wHELPERS.prototype.getLeft=function(A){var B=0;if(A.offsetParent){while(A.offsetParent){if((new wHELPERS()).getComputedStyle(A,"position")=="relative"){return B}B+=A.offsetLeft;A=A.offsetParent}}return B};wHELPERS.prototype.getComputedStyle=function(B,A){if(window.getComputedStyle){return window.getComputedStyle(B,"").getPropertyValue(A)}else{if(B.currentStyle){return B.currentStyle[A]}}return false};var wHelpers=wHELPERS;if(!Array.prototype.push){Array.prototype.push=function(){for(var A=0;A<arguments.length;++A){this[this.length]=arguments[A]}return this.length}}if(wHELPERS){var wFORMS={debugLevel:0,helpers:new wHELPERS(),behaviors:{},onLoadComplete:new Array(),processedForm:null,onLoadHandler:function(){for(var A in wFORMS.behaviors){wFORMS.debug("wForms/loaded behavior: "+A)}for(var B=0;B<document.forms.length;B++){wFORMS.debug("wForms/initialize: "+(document.forms[B].name||document.forms[B].id));wFORMS.processedForm=document.forms[B];wFORMS.addBehaviors(document.forms[B])}},addBehaviors:function(B){if(!B){return }var A=arguments[1]?arguments[1]:true;if(!B.nodeType){B=document.getElementById(B)}if(!B||B.nodeType!=1){return }A=(arguments.length>1)?arguments[1]:true;wFORMS._addBehaviors(B,A)},_addBehaviors:function(E,C){if(E.getAttribute("rel")=="no-behavior"){return false}if(E.nodeType==1){for(var B in wFORMS.behaviors){wFORMS.behaviors[B].evaluate(E)}if(C){for(var D=0,A=E.childNodes.length,F=E.childNodes;D<A;D++){if(F[D].nodeType==1){wFORMS._addBehaviors(F[D],C)}}}if(E.tagName.toUpperCase()=="FORM"){for(var D=0;D<wFORMS.onLoadComplete.length;D++){wFORMS.onLoadComplete[D]()}if(wFORMS.onLoadComplete.length>0){wFORMS.onLoadComplete=new Array()}}}},hasBehavior:function(A){if(wFORMS.behaviors[A]){return true}return false},debug:function(A){msgLevel=arguments[1]||10;if(wFORMS.debugLevel>0&&msgLevel>=wFORMS.debugLevel){if(!wFORMS.debugOutput){wFORMS.initDebug()}if(wFORMS.debugOutput){wFORMS.debugOutput.innerHTML+="<br />"+A}}},initDebug:function(){var A=document.getElementById("debugOutput");if(!A){A=document.createElement("div");A.id="debugOutput";A.style.position="absolute";A.style.right="10px";A.style.top="10px";A.style.zIndex="300";A.style.fontSize="x-small";A.style.fontFamily="courier";A.style.backgroundColor="#DDD";A.style.padding="5px";if(document.body){wFORMS.debugOutput=document.body.appendChild(A)}}if(wFORMS.debugOutput){wFORMS.debugOutput.ondblclick=function(){this.innerHTML=""}}}};wFORMS.NAME="wForms";wFORMS.VERSION="2.0";wFORMS.__repr__=function(){return"["+this.NAME+" "+this.VERSION+"]"};wFORMS.toString=function(){return this.__repr__()};wFORMS.utilities=wFORMS.helpers;var wf=wFORMS;wf.utilities.getSrcElement=wFORMS.helpers.getSourceElement;wf.utilities.XBrowserPreventEventDefault=wFORMS.helpers.preventEvent;wFORMS.helpers.activateStylesheet("wforms-jsonly.css");wFORMS.helpers.addEvent(window,"load",wFORMS.onLoadHandler)}