function ReMapControlOnClick(_1,_2,_3){
if(_1!=null){
var f=_1.onclick;
if(f!=null){
_1.onclick=function(){
if(_2(_1,_3)){
f();
}else{
return false;
}
};
}else{
_1.onclick=function(){
return _2(_1,_3);
};
}
}
};
function ReMapControlJSHref(_5,_6,_7){
if(_5!=null){
var f=unescape(_5.href);
f=f.substring(11);
_5.href="#";
_5.onclick=function(){
if(_6(_5,_7)){
eval(f);
}else{
return false;
}
};
}
};
function ShowConfirmDialog(_9,_a){
return confirm(_a);
};
function addLoadEvent(_b){
var _c=window.onload;
if(typeof window.onload!="function"){
window.onload=_b;
}else{
window.onload=function(){
_c();
_b();
};
}
};
function getCookie(_d){
var _e=document.cookie.split(";");
for(var i=0;i<_e.length;i++){
var _10=_e[i].split("=");
if(trim(_10[0])==_d){
return trim(_10[1]);
}
}
return false;
};
function setCookie(_11,_12,_13){
var _14=_11+"="+_12;
if(_13==true){
var _15=new Date();
_15.setTime(_15.getTime()+10*365*(24*60*60*1000));
_14+="; expires="+_15.toGMTString();
}
_14+="; path=/";
document.cookie=_14;
};
function externalLinks(){
if(!document.getElementsByTagName){
return;
}
var _16=document.getElementsByTagName("a");
for(var i=0;i<_16.length;i++){
var _18=_16[i];
if(_18.getAttribute("href")&&_18.getAttribute("rel")=="external"){
_18.target="_blank";
}
}
};
addLoadEvent(externalLinks);
function CheckForbiddenExtension(_19,_1a){
var reg=new RegExp(".("+_1a+")$","i");
if(reg.test(_19)){
return false;
}else{
return true;
}
};
function CheckPathChars(_1c){
var reg=new RegExp("[\\*|\\?|\\\"|\\<|\\>|\\|]","i");
if(reg.test(_1c)){
return false;
}else{
return true;
}
};
function ClientValidateForbiddenChars(_1e,_1f){
if(CheckPathChars(_1f.Value)){
_1f.IsValid=true;
}else{
_1f.IsValid=false;
}
};
function IsPerCharLanguage(_20){
var i;
for(i=0;i<arCharCountedLanguages.length;i++){
if(arCharCountedLanguages[i]==_20){
return true;
}
}
return false;
};
function IsIE7(){
return document.all&&window.XMLHttpRequest&&!window.opera;
};
function isSafari(){
if(self.screenTop&&self.screenX){
return true;
}else{
return false;
}
};
function getElementPosition(obj){
var _23=0,_24=0;
if(obj.offsetParent){
_23=obj.offsetLeft;
_24=obj.offsetTop;
if(IsIE7()&&typeof PageHasPositionQuirks!="undefined"){
return [_23,_24];
}
while(obj=obj.offsetParent){
_23+=obj.offsetLeft;
_24+=obj.offsetTop;
}
}else{
if(obj.x){
_23+=obj.x;
_24+=obj.y;
}
}
_23-=document.body.offsetLeft;
return [_23,_24];
};
function getElementSize(obj){
return [obj.offsetWidth,obj.offSetHeight];
};
function getWindowSize(){
if(typeof window.innerHeight!="undefined"){
return [window.clientWidth,window.innerHeight];
}else{
return [document.documentElement.clientWidth,document.documentElement.clientHeight];
}
};
function getPageSize(){
var _26,_27;
if(window.innerHeight&&window.scrollMaxY){
_26=document.body.scrollWidth;
_27=window.innerHeight+window.scrollMaxY;
}else{
if(document.body.scrollHeight>document.body.offsetHeight){
_26=document.body.scrollWidth;
_27=document.body.scrollHeight;
}else{
_26=document.body.offsetWidth;
_27=document.body.offsetHeight;
}
}
var _28,_29;
if(self.innerHeight){
_28=self.innerWidth;
_29=self.innerHeight;
}else{
if(document.documentElement&&document.documentElement.clientHeight){
_28=document.documentElement.clientWidth;
_29=document.documentElement.clientHeight;
}else{
if(document.body){
_28=document.body.clientWidth;
_29=document.body.clientHeight;
}
}
}
if(_27<_29){
pageHeight=_29;
}else{
pageHeight=_27;
}
if(_26<_28){
pageWidth=_28;
}else{
pageWidth=_26;
}
arrayPageSize=new Array(pageWidth,pageHeight,_28,_29);
return arrayPageSize;
};
function ShowOverlay(){
var _2a=getPageSize();
var _2b=document.getElementById("OverlayBG");
_2b.style.width=(_2a[0]+"px");
_2b.style.display="block";
_2b.style.height=(_2a[1]+"px");
_2b.style.left=(-(_2a[0]-790)/2)+"px";
};
function HideOverlay(){
var _2c=document.getElementById("OverlayBG");
_2c.style.display="none";
};
function ExecuteValidators(_2d,_2e){
var _2f=true;
for(i=0;i<_2d.length;i++){
curValidator=_2d[i];
ValidatorValidate(curValidator,_2e,null);
_2f=_2f&&curValidator.isvalid;
}
return _2f;
};
function SetValidatorValid(_30,_31){
_30.isvalid=_31;
ValidatorUpdateDisplay(_30);
};
function SetValidatorsValid(_32,_33){
var i;
for(i=0;i<_32.length;i++){
SetValidatorValid(_32[i],_33);
}
};
function LTrim(_35){
var re=/\s*((\S+\s*)*)/;
return _35.replace(re,"$1");
};
function RTrim(_37){
var re=/((\s*\S+)*)\s*/;
return _37.replace(re,"$1");
};
function trim(_39){
return LTrim(RTrim(_39));
};
function padLeft(_3a,_3b,_3c){
var _3d="";
var i;
if(_3a.length>=_3b){
return _3a;
}
for(i=0;i<_3b;i++){
_3d+=_3c;
}
_3d+=_3a;
return _3d.substring(_3a.length);
};
function HTMLEncode(s){
var str=new String(s);
str=str.replace(/&/g,"&amp;");
str=str.replace(/</g,"&lt;");
str=str.replace(/>/g,"&gt;");
str=str.replace(/"/g,"&quot;");
return str;
};
function HTMLDecode(s){
var str=new String(s);
str=str.replace(/\&lt\;/g,"<");
str=str.replace(/\&gt\;/g,">");
str=str.replace(/\&quot\;/g,"\"");
str=str.replace(/\&amp\;/g,"&");
return str;
};
function NewLineToBR(s){
s=s.replace(/\r\n/g,"<br />");
s=s.replace(/\n/g,"<br />");
return s;
};
function BRToNewLine(s){
s=s.replace(/\<br\s?\/?\>/ig,"\n");
return s;
};
function roundTo(_45,_46){
var m=Math.pow(10,_46);
var a=Math.round(_45*m)/m;
return a;
};
function FormatCurrency(_49,_4a,_4b){
_49=roundTo(_49,_4b);
var _4c=_49.toString();
var _4d=_4c.indexOf(".");
if(_4a>0&&_4d<0){
_4d=_4c.length;
_4c+=".";
}
while(_4d+_4a+1>_4c.length){
_4c+="0";
}
return "$ "+_4c;
};
function AddCssClass(_4e,_4f){
var _50=new RegExp("(^| )"+_4f+"( |$)");
if(!_50.test(_4e.className)){
if(_4e.className==""){
_4e.className=_4f;
}else{
_4e.className+=" "+_4f;
}
}
return true;
};
function RemoveCssClass(_51,_52){
var _53=_51.className;
var _54=new RegExp("(^| )"+_52+"( |$)");
_53=_53.replace(_54,"$1");
_53=_53.replace(/ $/,"");
_51.className=_53;
return true;
};
function AjaxFailure(_55){
alert("Error communicating with the server");
};
function CreateAJAXIndicator(){
var _56=document.createElement("img");
_56.src="/images/indicator.gif";
return _56;
};
function getInnerText(ctl){
if(typeof ctl.innerText!="undefined"){
return ctl.innerText;
}else{
if(typeof ctl.textContent!="undefined"){
return ctl.textContent;
}else{
}
}
};
function setInnerText(ctl,_59){
if(typeof ctl.innerText!="undefined"){
ctl.innerText=_59;
}else{
if(typeof ctl.textContent!="undefined"){
_59=_59.replace(/\n/,"\r\n");
ctl.textContent=_59;
}else{
}
}
};
function EmptyElement(el){
while(el.hasChildNodes()){
el.removeChild(el.firstChild);
}
};
function ReRender(){
if(self.outerWidth>0){
window.resizeTo(self.outerWidth+1,self.outerHeight);
window.resizeTo(self.outerWidth-1,self.outerHeight);
}
};
function ReRenderElement(_5b){
try{
_5b=$(_5b);
var n=document.createTextNode(" ");
_5b.appendChild(n);
_5b.removeChild(n);
}
catch(e){
}
};

