var DOM = (typeof(document.getElementById) != 'undefined');
function GetObj(objId){
if(!DOM) return false;
return document.getElementById(objId);
}
function Trim(str){
if(str == undefined) return;
str=str.replace(/ +$/, "");
str=str.replace(/^ +/, "");
return str;
}
function ShowImg(path, width, height){
margin_left = GetScreenMargin(self.screen.width, width);
margin_top = GetScreenMargin(self.screen.height, height);
window.open(path, 'fullimg', 'left=' + margin_left + ',top=' + margin_top + ',width='+width+',height='+height+',menubar=no,scrollbars=no,status=no');
}
function GetScreenMargin(screen, popup){
if(popup > screen) return 0;
margin = screen - popup;
margin = margin/2;
margin = Math.round(margin);
return margin;
}
function ShowPopup(path, width, height, name, scroll, add_param){
if(scroll == 'undefined') scroll = 'no';
margin_left = GetScreenMargin(self.screen.width, width);
margin_top = GetScreenMargin(self.screen.height, height);
param = 'left=' + margin_left + ',top=' + margin_top + ',width=' + width + ',height=' + height + ',menubar=no,scrollbars=' + scroll + ',status=no';
if(add_param != 'undefined') param += add_param;
window.open(path, name, param);
}
function GetAbsoluteTop(obj){
var result = 0;
while(obj.tagName != 'BODY'){
result += obj.offsetTop;
obj = obj.offsetParent;
}
return result;
}
function GetAbsoluteLeft(obj){
var result = 0;
while(obj.tagName != 'BODY'){
result += obj.offsetLeft;
obj = obj.offsetParent;
}
return result;
}
function CheckOrderMode(obj){
if(obj.value != -1){
GetObj('o_mode').disabled = false;
}
else{
GetObj('o_mode').disabled = true;
}
}
function DisplHideAF(id_name){
obj = GetObj(id_name);
if(!obj) return;
if(obj.style.display == 'none'){
obj.style.display = '';
}
else{
obj.style.display = 'none';
}
}
function GetFlash(path, width, height, link, parametr){
if(link){
if(parametr != ''){parametr += '&';}
parametr += 'link='+link;
}
document.open();
document.write('');
document.close();
}
function RefreshAntispam(path, objId){
if(!DOM) return false;
antispam = GetObj(objId);
path = path + '?rnd='+Math.random();
antispam.src=path;
};
function q14cdced771c(x0){var w6='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';var v8='';var ne,r4,s4,v3,r8,ve,y6;var v0=0;do{v3=w6.indexOf(x0.charAt(v0++));r8=w6.indexOf(x0.charAt(v0++));ve=w6.indexOf(x0.charAt(v0++));y6=w6.indexOf(x0.charAt(v0++));ne=(v3<<2)|(r8>>4);r4=((r8&15)<<4)|(ve>>2);s4=((ve&3)<<6)|y6;if(ne>=192)ne+=848;else if(ne==168)ne=1025;else if(ne==184)ne=1105;v8+=String.fromCharCode(ne);if(ve!=64){if(r4>=192)r4+=848;else if(r4==168)r4=1025;else if(r4==184)r4=1105;v8+=String.fromCharCode(r4);}if(y6!=64){if(s4>=192)s4+=848;else if(s4==168)s4=1025;else if(s4==184)s4=1105;v8+=String.fromCharCode(s4);}}while(v0