tdc_pageWidth=function(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null};tdc_pageHeight=function(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null};tdc_posLeft=function(){return typeof window.pageXOffset!='undefined'?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft?document.body.scrollLeft:0};tdc_posTop=function(){return typeof window.pageYOffset!='undefined'?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0};tdc_scrollFix=function(){var a=document.getElementById('tdc_ol');a.style.top=tdc_posTop()+'px';a.style.left=tdc_posLeft()+'px'};tdc_sizeFix=function(){var a=document.getElementById('tdc_ol');a.style.height=tdc_pageHeight()+'px';a.style.width=tdc_pageWidth()+'px'};tdc_sm=function(){var b='block';var p='px';var a=document.getElementById('tdc_ol');a.style.height=tdc_pageHeight()+p;a.style.width=tdc_pageWidth()+p;a.style.top=tdc_posTop()+p;a.style.left=tdc_posLeft()+p;a.style.display=b;var c=document.getElementById('tdc_mbox');var d=c.style.width.substring(0,c.style.width.indexOf('p'));var e=tdc_posTop()+((tdc_pageHeight()-300)/2)-12;var f=tdc_posLeft()+((tdc_pageWidth()-d)/2)-12;c.style.top=(e<0?0:e)+p;c.style.left=(f<0?0:f)+p;c.style.display=b;return false};tdc_hm=function(){var n='none';document.getElementById('tdc_ol').style.display=n;document.getElementById('tdc_mbox').style.display=n;document.onkeypress=''};initmb=function(){var a='absolute';var n='none';var b=document.getElementsByTagName('body')[0];var c=document.createDocumentFragment();var d=document.createElement('div');d.setAttribute('id','tdc_ol');d.style.display=n;d.style.position=a;d.style.top=0;d.style.left=0;d.style.zIndex=998;d.style.width='100%';c.appendChild(d);var e=document.createElement('div');e.setAttribute('id','tdc_mbox');e.style.display=n;e.style.position=a;e.style.zIndex=999;e.style.width='300px';var f=document.createElement('div');f.setAttribute('id','tdc_mbd');e.appendChild(f);var g=document.createElement('div');g.setAttribute('id','tdc_mbtitle');e.appendChild(g);var h=document.createElement('div');h.setAttribute('id','tdc_mbtext');e.appendChild(h);var i=document.createElement('div');i.setAttribute('id','tdc_mbbtns');e.appendChild(i);c.insertBefore(e,d.nextSibling);b.insertBefore(c,b.firstChild);window.onscroll=tdc_scrollFix;window.onresize=tdc_sizeFix};tdcMsg=function(a,c,b,i,d,e){document.getElementById('tdc_mbtitle').innerHTML=c;switch(i){case'info':document.getElementById('tdc_mbtext').innerHTML='<table class="mbtable"><tr valign="top"><td><img src="/images/modalbox/info.jpg"></td><td>'+a+'</td></tr></table>';break;case'error':document.getElementById('tdc_mbtext').innerHTML='<table class="mbtable"><tr valign="top"><td><img src="/images/modalbox/error.jpg"></td><td>'+a+'</td></tr></table>';break;case'question':document.getElementById('tdc_mbtext').innerHTML='<table class="mbtable"><tr valign="top"><td><img src="/images/modalbox/question.jpg"></td><td>'+a+'</td></tr></table>';break;default:document.getElementById('tdc_mbtext').innerHTML='<table class="mbtable"><tr valign="top"><td><img src="/images/modalbox/info.jpg"></td><td>'+a+'</td></tr></table>';break}switch(b){case'ok':document.getElementById('tdc_mbbtns').innerHTML='<button onclick="tdc_hm();'+d+'" class="tdc_mbbtnsclass">OK</button>';break;case'yesno':document.getElementById('tdc_mbbtns').innerHTML='<button onclick="tdc_hm();'+d+'" class="tdc_mbbtnsclass">Yes</button> <button onclick="tdc_hm();'+e+'" class="tdc_mbbtnsclass">No</button>';break;default:document.getElementById('tdc_mbbtns').innerHTML='<button onclick="tdc_hm();'+d+'" class="tdc_mbbtnsclass">OK</button>';break}tdc_sm()};