iLoader = new Image(); iLoader.src=uds+'/tpl/pictures/ajax-loader.gif'; iLoader2 = new Image(); iLoader2.src=uds+'/tpl/pictures/bar-loader.gif';iLoader3 = new Image(); iLoader3.src=uds+'/tpl/pictures/ajax-loader_s.gif';function RestHeight(id){ var ThisDiv=document.getElementById(id); ThisDiv.style.height=""; }
function SetFocus(id){ var ThisDiv=document.getElementById(id); ThisDiv.focus(); }
function tgv(id){ var ThisDiv=document.getElementById(id); if (ThisDiv.style.display=='block'){ ThisDiv.style.display='none'; } else{ ThisDiv.style.display='block'; } }
function DoReload(){document.location.reload();}
function readCookie(name) {var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++) {var c = ca[i];	while (c.charAt(0)==' ') c = c.substring(1,c.length);	if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null; } function createCookie(name,value,days) {if (days) {	var date = new Date();	date.setTime(date.getTime()+(days*24*60*60*1000));	var expires = "; expires="+date.toGMTString();}else var expires = "";document.cookie = name+"="+value+expires+"; path=/"; } function eraseCookie(name) {createCookie(name,"",-1); }
function checkEnter(e){ var characterCode; if(e && e.which){ e = e; characterCode = e.which; } else{ e = event; characterCode = e.keyCode; } if(characterCode == 13){ return true; } else{ return false; } }
function getPageHeight() { try{ var ph=document.height || document.body.offsetHeight; return ph; } catch(err) { } }
function getPageWidth() { return document.width || document.body.offsetWidth;}function GetScrollHeight(){var Hs=document.body.scrollTop; return Hs;}			
var screenW = 640, screenH = 480; function GWS() { if (parseInt(navigator.appVersion)>3) {  screenW = screen.width;  screenH = screen.height; } else if (navigator.appName == "Netscape"     && parseInt(navigator.appVersion)==3     && navigator.javaEnabled()    ) {  var jToolkit = java.awt.Toolkit.getDefaultToolkit();  var jScreenSize = jToolkit.getScreenSize();  screenW = jScreenSize.width;  screenH = jScreenSize.height; } }
function findPosX(obj) { var curleft = 0; if(obj.offsetParent) while(1) { curleft += obj.offsetLeft; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.x) curleft += obj.x; return curleft; }
function findPosY(obj) { var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) curtop += obj.y; return curtop; }
function trim(s){ return s.replace(/^\s+|\s+$/, ''); }
var r={ 'special':/[\W_]/g, 'specialu':/[\W]/g, 'specialus':/[^a-z 0-9]+/gi, 'alphaonly':/[^a-z]+/gi, 'quotes':/['\''&'\"']/g, 'notnumbers':/[^\d]/g }
function vdp(o,w){ o.value = o.value.replace(r[w],''); }
function ChLang(id){ createCookie('lang',id,365); DoReload(); }
iLoader = new Image(); iLoader.src=picsdirmain+'/arr_right.gif'; iLoader1 = new Image(); iLoader1.src=picsdirmain+'/arr_down.gif'; var to=null;

function TglTb(id){
for(x in mlist){ if (document.getElementById(mlist[x]+'_cnt')){ if (mlist[x] == id){
if (document.getElementById(id+'_cnt').style.display=="block"){ document.getElementById(id+'_cnt').style.display="none"; document.getElementById(id+'_arr').src=picsdirmain+"/arr_right.gif"; } else{ document.getElementById(id+'_cnt').style.display="block"; document.getElementById(id+'_arr').src=picsdirmain+"/arr_down.gif"; if (to!=null){ clearTimeout(to); } to=setTimeout ( "ClsMnDiv()", 10000 ); } } else{ document.getElementById(mlist[x]+'_cnt').style.display="none"; document.getElementById(mlist[x]+'_arr').src=picsdirmain+"/arr_right.gif"; } } }
}
function SelHelp(id){ var helpdiv=document.getElementById(id); helpdiv.className="helpdiv_sel"; } function DSelHelp(id){ var helpdiv=document.getElementById(id); helpdiv.className="helpdiv"; }
var mlist=new Array();

function ClsMnDiv(){ for(x in mlist){ if (document.getElementById(mlist[x]+'_cnt')){ document.getElementById(mlist[x]+'_cnt').style.display="none"; document.getElementById(mlist[x]+'_arr').src=picsdirmain+"/arr_right.gif"; } } }
function monitorClick(e){ var present=false; var evt = (e)?e:event; var theElem = (evt.srcElement)?evt.srcElement:evt.target;
if (theElem.className=='menutop' || theElem.className=='menuctn' || theElem.className=='link_mainmenu' || theElem.className=='menusub' || theElem.className=='menucover' || theElem.className=='mnusubdiv' || theElem.className=='menucover1'){ present=true; }
if (present==false){ ClsMnDiv(); } }

document.onclick = monitorClick;


function OpnMdl(caption,url){ 	ClsMnDiv(); 	document.getElementById('xbtn').style.display="block"; 	DoOpenMdl(caption,url); 	} 	function OpnMdl1(caption,url){ ClsMnDiv(); document.getElementById('xbtn').style.display="none"; DoOpenMdl(caption,url); } function DoOpenMdl(caption,url){ var modal=document.getElementById('mdl'); modal.style.display="block"; var Hs = GetScrollHeight(); modal.style.top=Hs+20; var pw=getPageWidth(); modal.style.left=(pw-800)/2; modal.style.zIndex='150'; var mask=document.getElementById('mask'); mask.style.display="block"; mask.style.height=TotPgH(); var capt=document.getElementById('mdlcpt'); capt.innerHTML=caption; var mdliframe=document.getElementById('mdliframe'); mdliframe.src=url; } function ClsMdl(){ var mdlbody=document.getElementById('pfmdlbody'); var defurl=uds+"/t/pfbtn.php"; mdlbody.innerHTML='<center><iframe  id="mdliframe" src ="'+defurl+'" width="780px" height="490px" frameborder="0"></iframe></center>'; var modal=document.getElementById('mdl'); modal.style.display="none"; var mask=document.getElementById('mask'); mask.style.display="none"; } function TotPgH(){ var pageHeight; if( window.innerHeight && window.scrollMaxY ) { pageHeight = window.innerHeight + window.scrollMaxY; } else if(document.body.scrollHeight > document.body.offsetHeight ) { pageHeight = document.body.scrollHeight; } else {pageHeight = document.body.offsetHeight + document.body.offsetTop; } return pageHeight; } function GoTo(url){ window.location = url; } function C358(ob,pc){ if (pc==100){ ob.style.filter='alpha(opacity='+(pc/100)+')'; } else{ ob.style.filter='alpha(opacity='+pc+')'; } ob.style.opacity='.'+pc; } function MdlToClr(color){ var pfmdlbody=document.getElementById('pfmdlbody'); pfmdlbody.style.backgroundColor=color; } 	function FtbW(){ 		if (!document.getElementById('lgbg')){ 		return; 		} 		var lgtbl=document.getElementById('lgtbl'); 		var lgbg=document.getElementById('lgbg'); 		var lgbgW=lgtbl.offsetWidth; lgbg.style.width=lgbgW+'px'; } function txtLimit(f,n){ var val=f.value; if (val.length>n){ f.value=val.substring(0,n) } } function checkAll() { var c = new Array(); c = document.getElementsByTagName('input'); for (var i = 0; i < c.length; i++) { if (c[i].type == 'checkbox') { c[i].checked = true; } } } function uncheckAll() { var c = new Array(); c = document.getElementsByTagName('input'); for (var i = 0; i < c.length; i++) { if (c[i].type == 'checkbox') { c[i].checked = false; } } }
function bho6895217(){ if (document.getElementById('mdl').style.display=='none'){ var tlo=uds+'/at/main_tools.php?a=23'; makeRequest(tlo, 'bho', '10'); } }
function gf09354(at){ if (document.getElementById('mdl').style.display=='none'){ var tlo=uds+'/t/im.php?a=3';OpnMdl(at,tlo); } }

var popupblockedalert="Your popup blocker blocket the opening of a service window. Please remove the block for this web site";
function OpnVdoLive(){ TST=window.open(uds+'/t/bdc.php','vdoLive','width=720,height=420,resizable=yes,scrollbars=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=50'); 	if (!TST){ 	alert(popupblockedalert); 	}	} function St0975645(){ var url=uds+'/t/support.php?a=2&ch='+ach; var TSp=window.open(url,'supportClient','width=800,height=480,resizable=yes,scrollbars=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=50'); if (!TSp){ alert(popupblockedalert); } }
function OpnDjChat(){ TST=window.open(uds+'/t/bdc.php?a=2','DjChat','width=880,height=600,resizable=yes,scrollbars=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=50'); 	if (!TST){ 	alert(popupblockedalert); 	}	}
function em245031(){ if (document.getElementById('msgmnal')){ var tlo=uds+'/at/main_tools.php?a=24'; makeRequest(tlo, 'msgmnal', '10'); } }

function bdc431058(f){
var tlo=uds+'/at/online_tools.php?a=12&fid='+f; makeRequest(tlo, 'bdc_'+f, '2');
}