function setInputValue(_1,_2){
if(typeof (_1)=="string"){
_1=document.getElementById(_1);
}
if(null!=_1){
_1.value=_2;
}
}
functions={setInputValue:function(_3,_4){
if(typeof (_3)=="string"){
_3=document.getElementById(_3);
}
if(null!=_3){
_3.value=_4;
}
},getPageSize:function(){
var _5,yScroll;
if(window.innerHeight&&window.scrollMaxY){
_5=window.innerWidth+window.scrollMaxX;
yScroll=window.innerHeight+window.scrollMaxY;
}else{
if(document.body.scrollHeight>document.body.offsetHeight){
_5=document.body.scrollWidth;
yScroll=document.body.scrollHeight;
}else{
_5=document.body.offsetWidth;
yScroll=document.body.offsetHeight;
}
}
var _6,windowHeight;
if(self.innerHeight){
if(document.documentElement.clientWidth){
_6=document.documentElement.clientWidth;
}else{
_6=self.innerWidth;
}
windowHeight=self.innerHeight;
}else{
if(document.documentElement&&document.documentElement.clientHeight){
_6=document.documentElement.clientWidth;
windowHeight=document.documentElement.clientHeight;
}else{
if(document.body){
_6=document.body.clientWidth;
windowHeight=document.body.clientHeight;
}
}
}
if(yScroll<windowHeight){
pageHeight=windowHeight;
}else{
pageHeight=yScroll;
}
if(_5<_6){
pageWidth=_5;
}else{
pageWidth=_6;
}
arrayPageSize=new Array(pageWidth,pageHeight,_6,windowHeight);
return arrayPageSize;
},findPos:function(_7){
var _8=(typeof (_7)=="string")?document.getElementById(_7):_7;
var _9=curtop=0;
if(null!=_8){
if(_8.offsetParent){
_9=_8.offsetLeft;
curtop=_8.offsetTop;
while(_8=_8.offsetParent){
_9+=_8.offsetLeft;
curtop+=_8.offsetTop;
}
}
}
return [_9,curtop];
},updateElementHTML:function(_a,_b){
var _c=(typeof (_a)=="string")?document.getElementById(_a):_a;
if(null!=_c){
_c.innerHTML=_b;
}
},trim:function(_d){
return _d.replace(/^\s+/,"").replace(/\s+$/,"");
},doErrorAlert:function(_e){
var _f="We're sorry, an error has occurred on this page. Please try your submission again.\nIf this problem persists, please contact ala6@compassbank.com";
alert((null==_e)?_f:_e);
},setOpacity:function(obj,_11,_12){
if(typeof obj=="string"){
obj=document.getElementById(obj);
}
if(null!=obj){
obj.style.opacity=_11;
obj.style.filter="alpha(opacity="+_12+")";
}
},autotab:function(_13,_14){
try{
if(typeof (_13)=="string"){
_13=document.getElementById(_13);
}
if(typeof (_14)=="string"){
_14=document.getElementById(_14);
}
if(_13.getAttribute&&_13.value.length==_13.getAttribute("maxlength")){
_14.focus();
}
}
catch(err){
}
},emailTab:function(_15,_16){
try{
if(typeof (_15)=="string"){
_15=document.getElementById(_15);
}
if(typeof (_16)=="string"){
_16=document.getElementById(_16);
}
if(_15.value.length>0&&_15.value.indexOf("@")!=-1){
_16.focus();
_15.value=_15.value.substr(0,_15.value.length-1);
}
}
catch(err){
}
},removeCharFromEnd:function(str,_18){
if(str.length>0){
var len=str.length;
if(str.charAt(len-1)==_18){
return str.substring(0,len-1);
}
}
return str;
},removeCharFromStart:function(str,_1b){
if(str.length>0){
var len=str.length;
if(str.charAt(0)==_1b){
return str.substring(1,len);
}
}
return str;
},
isIE:function(){return(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;}
};

