var onSubmitFunctions=new Array();
function addOnSubmitFunction(_1){
onSubmitFunctions[onSubmitFunctions.length]=_1;
}
function onSubmitFormHandler(){
for(var i=0;i<onSubmitFunctions.length;i++){
onSubmitFunctions[i]();
}
return true;
}
var onloadFunctionArray=new Array();
function addOnloadFunction(_3){
if(_3!=null){
onloadFunctionArray[onloadFunctionArray.length]=_3;
}
}
function doOnload(){
for(var i=0;i<onloadFunctionArray.length;i++){
onloadFunctionArray[i]();
}
}
window.onload=doOnload;


var onunloadFunctionArray=new Array();
function addOnunloadFunction(_1){
if(_1!=null){
onunloadFunctionArray[onunloadFunctionArray.length]=_1;
}
}
function doOnunload(){
for(var i=0;i<onunloadFunctionArray.length;i++){
onunloadFunctionArray[i]();
}
}
window.onunload=doOnunload;


if(window&&window.top&&(window!=window.top)){
top.location.href=location.href;
}
String.prototype.trim=function(){
return this.replace(/^\s+|\s+$/g,"");
};
function getElementByIdIndependant(_1){
var _2=null;
if(document.getElementById){
_2=document.getElementById(_1);
}else{
if(document.all){
_2=document.all[_1];
}
}
return _2;
}
function getElementsByTagNameIndependant(_3,_4){
var _5=null;
if(document.all){
alert("here: "+document+"  / "+_3);
alert("here: "+document.getElementsByTagName);
alert("here: "+_3.getElementsByTagName);
_5=_3.tags(_4);
}
}
function ie_getElementsByTagName(_6){
if(_6=="*"){
return document.all;
}else{
return document.all.tags(_6);
}
}
function getElementsByTagNameAndIdPrefix(_7,_8){
var _9=document.getElementsByTagName(_7);
var _a=new Array();
for(var i=0;i<_9.length;i++){
var _c=_9[i];
if(_c.id.indexOf(_8)==0){
_a[_a.length]=_c;
}
}
return _a;
}
function getChildNodesByTagName(_d,_e){
var _f=_e.toLowerCase();
var _10=_d.childNodes;
var _11=new Array();
for(var i=0;i<_10.length;i++){
var _13=_10[i];
if(_13.nodeName.toLowerCase()==_f){
_11[_11.length]=_13;
}
}
return _11;
}
function getMultipleFormElements(_14,_15){
var _16=_14.elements;
var _17=new Array();
for(var i=0;i<_16.length;i++){
var _19=_16[i];
if((_19!=null)&&(_19.name==_15)){
_17[_17.length]=_19;
}
}
return _17;
}
function hideElement(_1a){
if(_1a==null){
}else{
_1a.style.display="none";
}
}
function showElement(_1b){
if(_1b==null){
}else{
_1b.style.display="";
}
}
function clearSelectOptions(_1c){
if(_1c==null){
}else{
if(_1c.options!=null){
var _1d=_1c.options.length;
for(var j=(_1d-1);j>=0;j--){
_1c.options[j]=null;
}
}
}
}
function setDivText(_1f,_20){
var _21=getElementByIdIndependant(_1f);
_21.innerHTML=_20;
}
function simpleToggleElementDisplay(_22){
var el=getElementByIdIndependant(_22);
if(el==null){
return;
}
if(el.style.display=="none"){
el.style.display="";
}else{
el.style.display="none";
}
}
function toggleDisplay(_24,_25,_26,_27){
var el=null;
var _29;
if(document.getElementById){
el=document.getElementById(_25);
_29=document.getElementById(_24);
}else{
if(document.all){
el=document.all[_25];
_29=document.all[_24];
}
}
if(el==null||_29==null){
return;
}
if(el.style.display=="none"){
el.style.display="";
_29.innerHTML=_26;
}else{
el.style.display="none";
_29.innerHTML=_27;
}
}
function toggleStyle(_2a,_2b,_2c,_2d,_2e,_2f){
if(_2b.substr){
toggleIndividualStyle(_2a,_2b,_2c,_2d,_2e,_2f);
}else{
if(_2b.join){
for(var i=0;i<_2b.length;i++){
var _31=_2b[i];
toggleIndividualStyle(_2a,_31,_2c,_2d,_2e,_2f);
}
}else{
}
}
}
function toggleIndividualStyle(_32,_33,_34,_35,_36,_37){
el=getElementByIdIndependant(_33);
elLink=getElementByIdIndependant(_32);
if(el==null||elLink==null){
return;
}
if(el.className.indexOf(_37)>=0){
elLink.innerHTML=_34;
el.className=substituteText(el.className,_37,_36);
}else{
if(el.className.indexOf(_36)>=0){
elLink.innerHTML=_35;
el.className=substituteText(el.className,_36,_37);
}else{
el.className=el.className+" "+_36;
}
}
}
function substituteText(_38,_39,_3a){
var _3b=_38;
var _3c=_38.indexOf(_39);
if(_3c>=0){
var _3d=_38.substring(0,_3c);
var _3e=_38.substring(_3c+_39.length,_38.length);
_3b=_3d+_3a+_3e;
}else{
_3b=_38;
}
return _3b;
}
function addStyleClass(_3f,_40){
if(_3f&&_3f.className&&_40){
var _41=_40.trim();
var _42=_3f.className.trim();
if(!((_42.indexOf(_41)>=0))){
_3f.className+=" "+_41;
}
}else{
}
}
function removeStyleClass(_43,_44){
if(_43&&_43.className&&_44){
var _45=_43.className.trim();
var _46=_44.trim();
if(_45.indexOf(_46)>=0){
_43.className=substituteText(_45,_46,"");
_43.className=_43.className.trim();
}
}else{
}
}
function closewin(_47){
window.opener.focus();
window.opener.document.location.href=_47;
window.close();
}
function openwin(_48){
var _49=window.open(_48,"openwin","height=400,width=550,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_49.focus();
}
function openwinMoreImages(_4a){
var _4b=window.open(_4a,"openwin","height=640,width=640,resizable=0,scrollbars=0,status=0,location=0,menubar=0,toolbar=0");
_4b.focus();
}
function openwinSmall(_4c){
var _4d=window.open(_4c,"openwin","height=350,width=500,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_4d.focus();
}
function openwinTall(_4e){
var _4f=window.open(_4e,"openwin","height=850,width=800,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_4f.focus();
}
function openwinWide(_50){
var _51=window.open(_50,"openwin","height=730,width=920,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_51.focus();
}
function openwin(_52,_53){
var _54=window.open(_52,_53,"height=400,width=550,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_54.focus();
}
function openwin(_55,_56,_57,_58){
var _59="height="+_57+",width="+_58;
var _5a=window.open(_55,_56,_59+",resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_5a.focus();
}
function formSubmit(_5b,_5c,_5d,_5e,_5f,_60,_61,_62,_63,_64){
if(onSubmitFormHandler!=null){
onSubmitFormHandler();
}else{
}
if(document.forms[_5b]==null){
}
var _65=document.forms[_5b];
_65.elements["step"].value=_5c;
_65.elements["op_action"].value=_5d;
if(_5e!=null){
_65.elements["op_flavour"].value=_5e;
}
if(_5f!=null&&_60!=null){
if(_65.elements[_5f]==null){
}
_65.elements[_5f].value=_60;
}
if(_61!=null&&_62!=null){
_65.elements[_61].value=_62;
}
if(_63!=null&&_64!=null){
_65.elements[_63].value=_64;
}
_65.submit();
}
function toggleRadioControlledDisplay(_66){
var _67=_66.name;
var _68=_66.value;
var _69=_67+"_"+_68;
var _6a=null;
if(is_ie){
_6a=document.all.tags("div");
}else{
_6a=document.getElementsByTagName("div");
}
if(_6a!=null){
for(var i=0;i<_6a.length;i++){
var _6c=_6a[i];
if(_6c.id.indexOf(_67)>=0){
if(_6c.id==_69){
_6c.style.display="";
}else{
_6c.style.display="none";
}
}
}
}else{
}
}
var preloadedImages=new Array();
function preloadImages(){
var _6d=arguments;
for(var i=0;i<_6d.length;i++){
var _6f=new Image();
_6f.src=_6d[i];
preloadedImages[preloadedImages.length]=_6f;
}
}
function doTextFormElementMouseover(_70){
this.className="textFormFocus";
return false;
}
function doTextFormElementMouseout(_71){
if(!(this.hasFocus)||(!this.hasFocus)){
this.className="textFormBlur";
}
return false;
}
function doTextFormElementFocus(_72){
this.hasFocus=true;
this.className="textFormFocus";
return false;
}
function doTextFormElementBlur(_73){
this.hasFocus=false;
this.className="textFormBlur";
return false;
}
function link(_74){
window.location.href=_74;
}
function doNothing(){
return false;
}


function createOption(_1,_2){
var _3=new Option();
_3.value=_1;
_3.text=_2;
return _3;
}
function addOptions(_4,_5){
for(var i=0;i<_5.length;i++){
_4.options[i]=_5[i];
}
}
function getSelectedOptionValue(_7){
var _8;
var _9=getSelectedOption(_7);
if(_9){
_8=_9.value;
}else{
_8="";
}
return _8;
}
function getSelectedOption(_a){
var _b;
if(_a.selectedIndex>-1){
_b=_a.options[_a.selectedIndex];
}else{
_b=null;
}
return _b;
}
function clearSelect(_c){
if(!_c){
return;
}
var _d=_c.options;
for(var i=(_d.length-1);i>=0;i--){
_c.options[i]=null;
}
}
function doFormSubmit(_f){
var _10=_f.form;
if(!_10){
return;
}
if(onSubmitFormHandler!=null){
onSubmitFormHandler();
}
var _11=_f.action;
if(_11&&_10.op_action){
_10.op_action.value=action;
}
var _12=_f.step;
if(_12&&_10.step){
_10.step.value=_12;
}
var _13=_f.flavour;
if(_13&&_10.op_flavour){
_10.op_flavour.value=_13;
}
_10.submit();
}
function submitTheForm(_14,_15,_16){
if(onSubmitFormHandler!=null){
onSubmitFormHandler();
}
_14.op_action.value=_15;
_14.step.value=_16;
_14.submit();
}
function submitTheForm(_17,_18,_19,_1a){
if(onSubmitFormHandler!=null){
onSubmitFormHandler();
}
_17.op_action.value=_18;
_17.step.value=_19;
_17.op_flavour.value=_1a;
_17.submit();
}
function getRadioCheckedValue(_1b){
var _1c=null;
if(!_1b){
_1c="";
}else{
var _1d=_1b.length;
if(_1d==null){
if(_1b.checked){
_1c=_1b.value;
}else{
_1c="";
}
}
for(var i=0;i<_1d;i++){
if(_1b[i].checked){
_1c=_1b[i].value;
}
}
}
return _1c;
}
function getPleaseWaitOnSubmitButtonClosure(_1f,_20,_21){
var _22=function(){
var _23=document.forms[_1f];
pleaseWaitOnSubmitButton(_23,_20,_21);
};
return _22;
}
function pleaseWaitOnSubmitButton(_24,_25,_26){
if((!_24)||(!_25)){
}else{
var _27=getButtonSubmit(_24);
if(_27){
var _28=createPleaseWaitButton(_26);
_28.disabled=true;
_28.className=_27.className;
replaceNode(_28,_27);
}
}
}
function getPleaseWaitOnSubmitClosure(_29,_2a){
var _2b=function(){
var _2c=document.forms[_29];
pleaseWaitOnSubmit(_2c,_2a);
};
return _2b;
}
function pleaseWaitOnSubmit(_2d,_2e,_2f){
if((!_2d)||(!_2e)){
}else{
var _30=getImageInput(_2d);
if(_30){
var _31=null;
if(_2f){
_31=createImage(_2f);
}else{
_31=createImage("/images/please-wait-"+_2e+".gif");
}
if(!_30){
return true;
}
if(_30.className){
_31.className=_30.className;
}
if(_30){
replaceNode(_31,_30);
}
}
}
return true;
}
function getButtonSubmit(_32){
var _33=null;
var _34=_32.getElementsByTagName("input");
for(var i=0;i<_34.length;i++){
var _36=_34[i];
if((_36.type.toLowerCase()=="submit")||(_36.className&&((_36.className=="submitbutton")&&(_36.type.toLowerCase()=="button")))){
_33=_36;
break;
}
}
return _33;
}
function getImageInput(_37){
var _38=null;
var _39=_37.getElementsByTagName("input");
for(var i=0;i<_39.length;i++){
var _3b=_39[i];
if(_3b.type.toLowerCase()=="image"){
_38=_3b;
break;
}
}
return _38;
}
function replaceNode(_3c,_3d){
if(_3c&&_3d){
var _3e=_3d.parentNode;
if(_3e){
_3e.replaceChild(_3c,_3d);
}
}
}
function createPleaseWaitButton(_3f){
var _40=document.createElement("input");
_40.type="button";
_40.value=_3f;
return _40;
}
function createImage(_41){
var img=document.createElement("img");
img.src=_41;
return img;
}
function toggleBooleanRadioDisplay(_43,_44){
var _45=getRadioCheckedValue(_43);
var _46=getElementByIdIndependant(_44);
if(_46){
if(_45=="true"){
showElement(_46);
}else{
hideElement(_46);
}
}
}
function clearInputWithValue(_47,_48){
if(_47&&(_47.value==_48)){
_47.value="";
}
}
function checkInputWithValue(_49,_4a){
if(_49&&(new String(_49.value).trim()=="")){
_49.value=_4a;
}
}
function setRadioInnerHTML(_4b,_id,_4d){
var _4e=getElementByIdIndependant(_id);
if(_4e){
_4e.innerHTML=_4d;
}
}


function AjaxUtil(){
}
AjaxUtil.getElementByTagName=function(_1,_2){
var _3=null;
var _4=_1.getElementsByTagName(_2);
if(_4&&(_4.length>0)){
_3=_4[0];
}else{
_3=null;
}
return _3;
};
AjaxUtil.clearDivElement=function(_5){
if(_5&&_5.childNodes){
var _6=_5.childNodes.length-1;
for(var i=_6;i>=0;i--){
var _8=_5.childNodes[i];
_5.removeChild(_8);
}
}
};
AjaxUtil.createDivElement=function(_9,_a){
var _b=document.createElement("div");
if(_9){
_b.id=_9;
}
if(_a){
_b.className=_a;
}
return _b;
};
AjaxUtil.createLinkElement=function(_c,_d,_e,_f){
var _10=document.createElement("a");
_10.href=_d;
if(_f){
_10.target=_f;
}
if(_e&&(_e!=null)){
var _11=document.createTextNode(_e);
_10.appendChild(_11);
}
if(_c&&(_c!=null)){
_10.className=_c;
}
return _10;
};
AjaxUtil.createImageElement=function(_id,_13,_14,_15){
var _16=document.createElement("img");
AjaxUtil.setNodeIdAndClass(_16,_id,_13);
_16.src=_14;
if(_15&&(_15!=null)){
_16.alt=_15;
}
return _16;
};
AjaxUtil.setNodeIdAndClass=function(_17,_id,_19){
if(_17&&_id&&(_id!=null)){
_17.id=_id;
}
if(_17&&_19&&(_19!=null)){
_17.className=_19;
}
};
AjaxUtil.getText=function(_1a){
var _1b="";
if(_1a!=null){
if(_1a.nodeValue){
_1b+=_1a.nodeValue;
}else{
if(_1a.childNodes){
for(var i=0;i<_1a.childNodes.length;i++){
var _1d=_1a.childNodes[i];
if(_1d.nodeValue!=null){
_1b+=_1d.nodeValue;
}
}
}
}
}
return _1b;
};
AjaxUtil.disableButton=function(_1e,_1f){
if(_1e&&_1f){
_1e.disabled=true;
_1e.value=_1f;
}
};
AjaxUtil.enableButton=function(_20,_21){
if(_20&&_21){
_20.disabled=false;
_20.value=_21;
}
};
AjaxUtil.createBrElement=function(){
return document.createElement("br");
};
AjaxUtil.createBoldElement=function(_22){
var _23=document.createElement("b");
if(_22){
var _24=document.createTextNode(_22);
_23.appendChild(_24);
}
return _23;
};
AjaxUtil.appendSimpleNameValueDisplayPair=function(_25,_26,_27,_28){
_25.appendChild(AjaxUtil.createBoldElement(_26));
_25.appendChild(document.createTextNode(_27));
if(_28){
_25.appendChild(AjaxUtil.createBrElement());
_25.appendChild(AjaxUtil.createBrElement());
}
};
AjaxUtil.appendNameLinkDisplayPair=function(_29,_2a,_2b,_2c){
_29.appendChild(AjaxUtil.createBoldElement(_2a));
_29.appendChild(_2b);
if(_2c){
_29.appendChild(AjaxUtil.createBrElement());
_29.appendChild(AjaxUtil.createBrElement());
}
};
AjaxUtil.READY_STATE_UNINITIALIZED=0;
AjaxUtil.READY_STATE_LOADING=1;
AjaxUtil.READY_STATE_LOADED=2;
AjaxUtil.READY_STATE_INTERACTIVE=3;
AjaxUtil.READY_STATE_COMPLETE=4;
AjaxUtil.ContentLoader=function(_2d,_2e,_2f,_30,_31,_32){
this.url=_2d;
this.onload=_2e;
this.onerror=(_2f)?_2f:this.defaultError;
this.method=(_30)?_30:"GET";
this.data=_31;
this.req=null;
this.asynchronous=(_32!=null)&&(_32!=undefined)?_32:true;
this.loadContent();
};
AjaxUtil.ContentLoader.prototype={loadContent:function(){
if(window.XMLHttpRequest){
this.req=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
this.req=new ActiveXObject("Microsoft.XMLHTTP");
}
}
if(this.req){
try{
var _33=this;
this.req.onreadystatechange=function(){
_33.onReadyState.call(_33);
};
this.req.open(this.method,this.url,this.asynchronous);
this.req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=iso-8859-1");
this.req.send(this.data);
}
catch(err){
this.onerror.call(this);
}
}
},onReadyState:function(){
var _34=this.req.readyState;
if(_34==AjaxUtil.READY_STATE_COMPLETE){
var _35=this.req.status;
if(_35==200||_35==0){
this.onload.call(this);
}else{
this.onerror.call(this);
}
}
},defaultError:function(){
alert("error fetching data: "+"\n\nreadState: "+this.req.readyState+"\nstatus: "+this.req.status+"\nheaders: "+this.req.getAllResponseHeaders());
}};
AjaxUtil.setElementId=function(_36,_id){
if(_id&&(_id!=null)){
_36.id=_id;
}
};
AjaxUtil.setElementOnclick=function(_38,_39){
if(_39&&(_39!=null)){
_38.onclick=_39;
}
};
AjaxUtil.setElementClassName=function(_3a,_3b){
if(_3b&&(_3b!=null)){
_3a.className=_3b;
}
};


function doSsoCookie(_1){
var _2=_1.width;
if(_2==1){
updateSessionCookie(".tomcatA");
}else{
if(_2==2){
updateSessionCookie(".tomcatB");
}else{
if(_2==3){
updateSessionCookie(".tomcatC");
}else{
if(_2==42){
updateSessionCookie(".tomcatS");
}else{
window.locationBar="unknown : "+_2+" / "+_1.src;
}
}
}
}
}
function updateSessionCookie(_3){
var _4=new Cookie(document,"JSESSIONID");
_4.load();
var _5=_4.getValue();
var _6=false;
var _7=_5.substr(_5.indexOf(".tomcat"));
var _8=_5.indexOf(_3)<0;
if(_8||_6){
_4.remove();
_4=new Cookie(document,"JSESSIONID");
_4.load();
_5=_4.getValue();
var _9=document.location.href;
var _a=_9.replace(/^(http\:\/\/[a-z-]+\.[a-z-]+\.com?(?:\.[a-z]{2,6})?\/).*/,"$1");
var _b=_a+"setsession.do;jsessionid="+_3+"?t="+new Date().getTime();
var _c=new AjaxUtil.ContentLoader(_b,redoTracker,redoTrackerError,"GET",null,true);
}else{
}
}
function redoTracker(){
var _d=this.req.responseXML;
var _e=AjaxUtil.getText(AjaxUtil.getElementByTagName(_d,"result"));
var _f=new Cookie(document,"JSESSIONID");
_f.load();
var _10=_f.getValue();
var img=document.getElementById("tracker");
if(img){
var _12=img.src.replace(/^(http\:\/\/[a-z-]+\.[a-z-]+\.com?(?:\.[a-z]{2,6})?\/[a-z-]+\.[a-z]+).*/,"$1");
var _13=new Image();
_13.src=_12+"?sid="+_e+"&t="+new Date().getTime();
}
}
function redoTrackerError(){
window.locationBar="issue with the content loading: "+this.url;
}


function Cookie(_1,_2,_3,_4,_5,_6){
this.$document=_1;
this.$name=_2;
if(_3){
this.$expiration=new Date((new Date()).getTime()+_3*3600000);
}else{
this.$expiration=null;
}
if(_4){
this.$path=_4;
}else{
this.$path=null;
}
if(_5){
this.$domain=_5;
}else{
this.$domain=null;
}
if(_6){
this.$secure=true;
}else{
this.$secure=false;
}
}
function _Cookie_store(){
var _7="";
for(var _8 in this){
if((_8.charAt(0)=="$")||((typeof this[_8])=="function")){
continue;
}
if(_7!=""){
_7+="&";
}
_7+=_8+":"+escape(this[_8]);
}
var _9="";
if(this.$value){
_9=this.$name+"="+this.$value;
}else{
_9=this.$name+"="+_7;
}
if(this.$expiration){
_9+="; expires="+this.$expiration.toGMTString();
}
if(this.$path){
_9+="; path="+this.$path;
}
if(this.$domain){
_9+="; domain="+this.$domain;
}
if(this.$secure){
_9+="; secure";
}
this.$document.cookie=_9;
}
function _Cookie_load(){
var _a=this.$document.cookie;
if(_a==""){
return false;
}
var _b=_a.indexOf(this.$name+"=");
if(_b==-1){
return false;
}
_b+=this.$name.length+1;
var _c=_a.indexOf(";",_b);
if(_c==-1){
_c=_a.length;
}
var _d=_a.substring(_b,_c);
this.$value=_d;
var a=_d.split("&");
for(var i=0;i<a.length;i++){
a[i]=a[i].split(":");
}
for(var i=0;i<a.length;i++){
this[a[i][0]]=unescape(a[i][1]);
}
return true;
}
function _Cookie_remove(){
var _10;
_10=this.$name+"=";
if(this.$path){
_10+="; path="+this.$path;
}
if(this.$domain){
_10+="; domain="+this.$domain;
}
_10+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";
this.$document.cookie=_10;
}
function _Cookie_setValue(_11){
if(_11!=null){
this.$value=_11;
}
}
function _Cookie_getValue(){
var _12="";
if(this.$value){
_12=this.$value;
}else{
_12="";
}
return _12;
}
new Cookie();
Cookie.prototype.store=_Cookie_store;
Cookie.prototype.load=_Cookie_load;
Cookie.prototype.remove=_Cookie_remove;
Cookie.prototype.setValue=_Cookie_setValue;
Cookie.prototype.getValue=_Cookie_getValue;


function AjaxFormUtil(){
}
AjaxFormUtil.PREFIX_ERROR="error_";
AjaxFormUtil.STYLE_CLASS_FORM_ERROR="formerror";
function marshallFormToQueryString(_1){
var _2=_1.getElementsByTagName("input");
var _3=_1.getElementsByTagName("select");
var _4=_1.getElementsByTagName("textarea");
var _5="";
if(_2!=null){
for(var i=0;i<_2.length;i++){
var _7=_2[i];
if(_7.type){
if(_7.type=="checkbox"){
if(_7.checked){
_5+=_7.name+"="+_7.value;
_5+="&";
}
}else{
if(_7.type=="text"){
_5+=_7.name+"="+_7.value;
_5+="&";
}else{
if(_7.type=="hidden"){
_5+=_7.name+"="+_7.value;
_5+="&";
}else{
if((_7.type=="submit")||(_7.type=="button")){
}else{
alert("issue unknown type: "+_7.type);
}
}
}
}
}
}
}
return _5;
}
AjaxFormUtil.marshallFormToPostBody=function(_8){
var _9="";
if(_8){
var _a=_8.getElementsByTagName("input");
if(_a&&(_a.length>0)){
_9=AjaxFormUtil.getPostBodyInputString(_a);
_9+="&";
}
var _b=_8.getElementsByTagName("select");
if(_b&&(_b.length>0)){
_9+=AjaxFormUtil.getPostBodySelectString(_b);
_9+="&";
}
var _c=_8.getElementsByTagName("textarea");
if(_c&&(_c.length>0)){
_9+=AjaxFormUtil.getPostBodyTextareaString(_c);
_9+="&";
}
}else{
_9="";
}
return _9;
};
AjaxFormUtil.getPostBodyInputString=function(_d){
var _e="";
if(_d){
for(var i=0;i<_d.length;i++){
var _10=_d[i];
if(_10.name.length==0){
continue;
}
if(_10.type=="checkbox"||_10=="radio"){
if(_10.checked){
_e+=escape(_10.name)+"="+escape(_10.value);
_e+="&";
}
}else{
if(_10.type=="text"){
_e+=escape(_10.name)+"="+escape(_10.value);
_e+="&";
}else{
if(_10.type=="hidden"){
_e+=escape(_10.name)+"="+escape(_10.value);
_e+="&";
}else{
if((_10.type=="submit")||(_10.type=="button")){
}else{
alert("issue unknown type: "+_10.type);
}
}
}
}
}
_e=AjaxFormUtil.stripTrailingAmpersand(_e);
}else{
_e="";
}
return _e;
};
AjaxFormUtil.getPostBodySelectString=function(_11){
var _12="";
if(_11){
for(var i=0;i<_11;i++){
var _14=_11[i];
var _15=escape(_14.name);
var _16=_14.getElementsByTagName("option");
for(var j=0;j<_16.length;j++){
var _18=_16[j];
if(_18.selected){
_12+=_15+"="+escape(_18.value);
_12+="&";
}
}
_12=AjaxFormUtil.stripTrailingAmpersand(_12);
}
}else{
_12="";
}
return _12;
};
AjaxFormUtil.getPostBodyTextareaString=function(_19){
var _1a="";
if(_19){
for(var i=0;i<_19.length;i++){
var _1c=_19[i];
_1a+=escape(_1c.name)+"="+escape(_1c.value);
_1a+="&";
}
_1a=AjaxFormUtil.stripTrailingAmpersand(_1a);
}else{
_1a="";
}
return _1a;
};
AjaxFormUtil.stripTrailingAmpersand=function(_1d){
return _1d.replace(/\&$/g,"");
};
AjaxFormUtil.displayFormErrors=function(_1e,_1f){
var _20=_1e.getElementsByTagName("tr");
for(var i=0;i<_20.length;i++){
var _22=_20[i];
if(_22&&_22.id&&_22.id.match(/^box_/)){
var _23=_22.id.replace(/^box_/g,"");
var _24=AjaxFormUtil.getFormError(_1f,_23);
AjaxFormUtil.removeFormError(_22,_23);
if(_24&&getText(_24.getAttributeNode("identifier"))){
AjaxFormUtil.displayFormError(_22,_24);
}
}else{
}
}
};
AjaxFormUtil.getFormError=function(_25,_26){
var _27=null;
var _28=_25.getElementsByTagName("form-error");
for(var i=0;i<_28.length;i++){
var _2a=_28[i];
var _2b=getText(_2a.getAttributeNode("identifier"));
if(_2b&&(_2b==_26)){
_27=_2a;
break;
}
}
return _27;
};
AjaxFormUtil.displayFormError=function(_2c,_2d){
_2c.className+=" errorarrow";
var _2e=AjaxFormUtil.createErrorRow(_2d);
_2c.parentNode.insertBefore(_2e,_2c.nextSibling);
};
AjaxFormUtil.removeFormError=function(_2f,_30){
var _31=document.getElementById(AjaxFormUtil.PREFIX_ERROR+"_"+_30);
if(_31){
var _32=_31.parentNode;
_32.removeChild(_31);
}
if(_2f&&_2f.className){
_2f.className=_2f.className.replace(/ ?errorarrow/g,"");
}
};
AjaxFormUtil.createErrorRow=function(_33){
var _34=document.createElement("tr");
var _35=getText(_33);
var _36=getText(_33.getAttributeNode("identifier"));
_34.id=AjaxFormUtil.PREFIX_ERROR+"_"+_36;
var _37=document.createTextNode(_35);
var _38=document.createElement("td");
_38.className=AjaxFormUtil.STYLE_CLASS_FORM_ERROR;
_38.colSpan=2;
_38.innerHTML=_35;
_34.appendChild(_38);
return _34;
};
function createForm(_id,_3a){
var _3b=document.createElement("form");
var _3c=document.createAttribute("name");
_3b.setAttributeNode(_3c);
AjaxUtil.setElementId(_3b,_id);
return _3b;
}
function createButton(_3d,_id,_3f,_40,_41){
var _42=document.createElement("div");
var _43=document.createElement("input");
var _44=document.createAttribute("type");
_44.value="button";
_43.setAttributeNode(_44);
var _45=document.createAttribute("name");
_45.value=_3f;
_43.setAttributeNode(_45);
var _46=document.createAttribute("value");
_46.value=_40;
_43.setAttributeNode(_46);
AjaxUtil.setElementClassName(_43,_3d);
AjaxUtil.setElementClassName(_42,_3d);
AjaxUtil.setElementId(_42,_id);
AjaxUtil.setElementOnclick(_43,_41);
_42.appendChild(_43);
return _42;
}
function createTextarea(_47,_id,_49,_4a){
var _4b=document.createElement("textarea");
_4b.setAttribute("id",_id);
_4b.setAttribute("class",_47);
_4b.setAttribute("name",_49);
_4b.appendChild(document.createTextNode(_4a));
return _4b;
}
function createTextInput(_4c,_id,_4e,_4f){
var _50=document.createElement("input");
_50.setAttribute("id",_id);
_50.setAttribute("class",_4c);
_50.setAttribute("type","text");
_50.setAttribute("name",_4e);
_50.setAttribute("value",_4f);
return _50;
}
function createCheckbox(_51,_id,_53,_54,_55,_56,_57){
var _58=document.createElement("div");
var _59=document.createElement("input");
var _5a=document.createAttribute("type");
_5a.value="checkbox";
_59.setAttributeNode(_5a);
var _5b=document.createAttribute("name");
_5b.value=_54;
_59.setAttributeNode(_5b);
var _5c=document.createAttribute("value");
_5c.value=_55;
_59.setAttributeNode(_5c);
if(_56){
var _5d=document.createAttribute("checked");
_5d.value="true";
_59.setAttributeNode(_5d);
}
_58.appendChild(_59);
if(_53&&(_53!=null)){
var _5e=document.createTextNode(_53);
_58.appendChild(_5e);
}
AjaxUtil.setElementClassName(_58,_51);
AjaxUtil.setElementId(_58,_id);
AjaxUtil.setElementOnclick(_59,_57);
return _58;
}


function LinkTo(_1,_2,_3){
this.url=_1;
this.title=_2;
this.blurb=_3;
}
LinkTo.prototype.getTitle=function(){
return this.title;
};
LinkTo.prototype.getBlurb=function(){
return this.blurb;
};
LinkTo.prototype.getUrl=function(){
return this.url;
};
LinkTo.prototype.showTheContents=function(_4){
var _5=AjaxUtil.createDivElement("linkto","linkto");
var _6=this.getBlurb();
var _7=this.getUrl();
var _8=createTextarea("linkcopy","linkcopy","linkcopy","<a href=\""+_7+"\"> "+_7+"</a>");
_8.readOnly=true;
_8.wrap="soft";
_8.onclick=function(){
this.focus();
this.select();
};
_5.appendChild(document.createTextNode(_6));
_5.appendChild(AjaxUtil.createBrElement());
_5.appendChild(AjaxUtil.createBrElement());
_5.appendChild(_8);
_4.appendChild(_5);
};
function doModalLinkTo(_9,_a,_b){
var _c=new Date().getTime();
var _d=new LinkTo(_9,_a,_b);
var md=new ModalDialog(_d,300,450);
md.init();
md.showDialog();
var _f=new Date().getTime();
}
function ModalDialog(_10,_11,_12){
this.dialogable=_10;
this.height=_11;
this.width=_12;
}
ModalDialog.prototype.getDialogable=function(){
return this.dialogable;
};
ModalDialog.prototype.getHeight=function(){
return this.height;
};
ModalDialog.prototype.getWidth=function(){
return this.width;
};
ModalDialog.prototype.getLoadingImageSrc=function(){
return "/images/rank/dialog-loading.gif";
};
ModalDialog.prototype.getCloseButtonSrc=function(){
return "/images/rank/dialog-close.gif";
};
ModalDialog.prototype.getLicense=function(){
var _13="check out - Lightbox JS: Fullsize Image Overlays ";
var _14="by Lokesh Dhakar - http://www.huddletogether.com";
alert(_13+_14);
};
ModalDialog.prototype.showDialog=function(){
var _15=document.getElementById("overlay");
var _16=document.getElementById("modalDialog");
var _17=document.getElementById("dialogTitle");
var _18=document.getElementById("dialogContent");
AjaxUtil.clearDivElement(_18);
var _19=document.getElementById("titleText");
AjaxUtil.clearDivElement(_19);
_19.appendChild(document.createTextNode(this.getDialogable().getTitle()));
var _1a=document.getElementById("titleClose");
var _1b=getPageSize();
var _1c=getPageScroll();
_15.style.height=(_1b[1]+"px");
_15.style.display="block";
var _1d=this.getHeight();
var _1e=this.getWidth();
dialogTop=_1c[1]+((_1b[3]-35-_1d)/2);
dialogLeft=((_1b[0]-20-_1e)/2);
_16.style.top=(dialogTop<0)?"0px":dialogTop+"px";
_16.style.left=(dialogLeft<0)?"0px":dialogLeft+"px";
_16.style.display="block";
this.getDialogable().showTheContents(_18);
};
ModalDialog.prototype.init=function(){
if(!document.getElementsByTagName){
return;
}
var _1f=document.getElementsByTagName("body").item(0);
var _20=this.createOverlayDiv();
_1f.insertBefore(_20,_1f.firstChild);
var _21=this.createDialog();
_1f.insertBefore(_21,_20.nextSibling);
var _22=document.createElement("a");
_22.setAttribute("href","#");
_22.setAttribute("title","Click to close");
_22.onclick=function(){
hideLightbox();
return false;
};
_21.appendChild(_22);
};
ModalDialog.prototype.createOverlayDiv=function(){
var _23=this;
var _24=document.createElement("div");
_24.setAttribute("id","overlay");
_24.onclick=function(){
_23.hideDialog();
return false;
};
_24.style.display="none";
_24.style.position="absolute";
_24.style.top="0";
_24.style.left="0";
_24.style.zIndex="90";
_24.style.width="100%";
return _24;
};
ModalDialog.prototype.createDialog=function(){
var _25=document.createElement("div");
_25.setAttribute("id","modalDialog");
_25.style.display="none";
_25.style.position="absolute";
_25.style.zIndex="100";
var _26=AjaxUtil.createDivElement("dialogTitle","dialogTitle");
var _27=AjaxUtil.createDivElement("titleText","titleText");
_26.appendChild(_27);
var _28=AjaxUtil.createDivElement("titleClose","titleClose");
var _29=this;
_28.onclick=function(){
_29.hideDialog();
return false;
};
_26.appendChild(_28);
_25.appendChild(_26);
var _2a=AjaxUtil.createDivElement("dialogContent","dialogContent");
_25.appendChild(_2a);
return _25;
};
ModalDialog.prototype.hideDialog=function(){
var _2b=document.getElementById("overlay");
var _2c=document.getElementById("modalDialog");
_2b.style.display="none";
_2c.style.display="none";
selects=document.getElementsByTagName("select");
for(i=0;i!=selects.length;i++){
selects[i].style.visibility="visible";
}
document.onkeypress="";
};
function getPageSize(){
var _2d,_2e;
if(window.innerHeight&&window.scrollMaxY){
_2d=document.body.scrollWidth;
_2e=window.innerHeight+window.scrollMaxY;
}else{
if(document.body.scrollHeight>document.body.offsetHeight){
_2d=document.body.scrollWidth;
_2e=document.body.scrollHeight;
}else{
_2d=document.body.offsetWidth;
_2e=document.body.offsetHeight;
}
}
var _2f,_30;
if(self.innerHeight){
_2f=self.innerWidth;
_30=self.innerHeight;
}else{
if(document.documentElement&&document.documentElement.clientHeight){
_2f=document.documentElement.clientWidth;
_30=document.documentElement.clientHeight;
}else{
if(document.body){
_2f=document.body.clientWidth;
_30=document.body.clientHeight;
}
}
}
if(_2e<_30){
pageHeight=_30;
}else{
pageHeight=_2e;
}
if(_2d<_2f){
pageWidth=_2f;
}else{
pageWidth=_2d;
}
arrayPageSize=new Array(pageWidth,pageHeight,_2f,_30);
return arrayPageSize;
}
function getPageScroll(){
var _31;
if(self.pageYOffset){
_31=self.pageYOffset;
}else{
if(document.documentElement&&document.documentElement.scrollTop){
_31=document.documentElement.scrollTop;
}else{
if(document.body){
_31=document.body.scrollTop;
}
}
}
arrayPageScroll=new Array("",_31);
return arrayPageScroll;
}


