function createXmlHttpRequestObject() {var xmlHttp;try {xmlHttp=new XMLHttpRequest();} catch(e) {var XmlHttpVersions=new Array("MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP");for(var i=0;i ');} function topimgx_news2(l_plotis,l_aukstis,imgurl,title,base) {var l_aukstis2=l_aukstis+20;var l_plotis2=l_plotis+20;if(title!=true){var title2=(Math.round((Math.random()*999)+1));}else{var title2="mg";} var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open("/inc/topimg_news_02.php?image="+imgurl+"&title="+title+"","","height="+l_aukstis+",width="+l_plotis+",top="+wint+",left="+winl+", buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no, titlebar=no");} function topimg(l_plotis,l_aukstis,imgurl,base) {var l_aukstis2=l_aukstis+20;var l_plotis2=l_plotis+20;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var n=Math.random();var newWindow=window.open(''+base+'inc/topimg.php?'+imgurl+'..','I','height='+l_aukstis2+',width='+l_plotis2+',top='+wint+',left='+winl+', buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function topprod(l_plotis,l_aukstis,imgurl,base) {var l_aukstis2=l_aukstis;var l_plotis2=l_plotis;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var n=Math.random();var newWindow=window.open(''+base+'inc/topprod.php?'+imgurl+'..','P','height='+l_aukstis2+',width='+l_plotis2+',top='+wint+',left='+winl+', buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function topvideo(videourl,base) {var l_aukstis=240+80;var l_plotis=320+20;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open('http://www.kvadratu.lt/inc/topvideo.php?video='+videourl,'0','height='+l_aukstis+',width='+l_plotis+',top='+wint+',left='+winl+', buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function topvideo2(videourl,base) {var l_aukstis=240+101;var l_plotis=320+20;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open('http://www.kvadratu.lt/inc/topvideo2.php?video='+videourl,'0','height='+l_aukstis+',width='+l_plotis+',top='+wint+',left='+winl+', buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function topvideo3(videourl,base) {var l_aukstis=240+101;var l_plotis=320+20;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open('http://www.kvadratu.lt/inc/topvideo3.php?video='+videourl,'0','height='+l_aukstis+',width='+l_plotis+',top='+wint+',left='+winl+', buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function topaudio(audiourl,base) {var l_aukstis=30+10;var l_plotis=210+10;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var n=Math.random();var newWindow=window.open(''+base+'inc/topaudio.php?'+audiourl+'..','I','height='+l_aukstis+',width='+l_plotis+',top='+wint+',left='+winl+', buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function topimgx(l_plotis,l_aukstis,imgurl,title,base) {var l_aukstis2=l_aukstis+20;var l_plotis2=l_plotis+20;if(title!=true){var title2=(Math.round((Math.random()*999)+1));}else{var title2="mg";} var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open(" "+base+"inc/topimg.php?image="+imgurl+"&title="+title+"","","height="+l_aukstis+",width="+l_plotis+",top="+wint+",left="+winl+", buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no, titlebar=no");} function topimgx_news(l_plotis,l_aukstis,imgurl,title,base) {var l_aukstis2=l_aukstis+20;var l_plotis2=l_plotis+20;if(title!=true){var title2=(Math.round((Math.random()*999)+1));}else{var title2="mg";} var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open("/inc/topimg_news.php?image="+imgurl+"&title="+title+"","","height="+l_aukstis+",width="+l_plotis+",top="+wint+",left="+winl+", buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no, titlebar=no");} function topimgx_news2(l_plotis,l_aukstis,imgurl,title,base) {var l_aukstis2=l_aukstis+20;var l_plotis2=l_plotis+20;if(title!=true){var title2=(Math.round((Math.random()*999)+1));}else{var title2="mg";} var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open("/inc/topimg_news_02.php?image="+imgurl+"&title="+title+"","","height="+l_aukstis+",width="+l_plotis+",top="+wint+",left="+winl+", buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no, titlebar=no");} function send_link() {l_plotis=400;l_aukstis=220;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var n=Math.random();var newWindow=window.open('/inc/send_link.php','P','height='+l_aukstis+',width='+l_plotis+',top='+wint+',left='+winl+', buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function print_wind(news) {l_plotis=650;l_aukstis=600;var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var n=Math.random();var newWindow=window.open('/inc/print.php?news='+news,'P','height='+l_aukstis+',width='+l_plotis+',top='+wint+',left='+winl+', buttons=no, scrollbars=yes, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no');} function setsmile(smiley) {document.getElementById('text').value+=smiley;} function replay_message(replay) {document.getElementById('text').value+=":replay:"+replay+":replay:";} function badmessage(id){if(confirm("Ar tikrai komentaras netinkamas?")){document.getElementById('bad').value=id;document.getElementById('bad_coment').submit();}else{}} function topimgx_news2(l_plotis,l_aukstis,imgurl,title,base) {var l_aukstis2=l_aukstis+20;var l_plotis2=l_plotis+20;if(title!=true){var title2=(Math.round((Math.random()*999)+1));}else{var title2="mg";} var winl=screen.width/2-l_plotis/2;var wint=screen.height/2-l_aukstis/2;var newWindow=window.open("/inc/topimg_news_02.php?image="+imgurl+"&title="+title+"","","height="+l_aukstis+",width="+l_plotis+",top="+wint+",left="+winl+", buttons=no, scrollbars=no, location=no, menubar=no, resizable=no, status=no, directories=no, toolbar=no, titlebar=no");} function submenu(id){if(document.getElementById(id).style.display=='none'){document.getElementById(id).style.display='';}else{document.getElementById(id).style.display='none';}} function randomNumber(m,n) {m=parseInt(m);n=parseInt(n);return Math.floor(Math.random()*(n-m+1))+m;} var oldtab_id=Number(10);oldtab_id='tab_01';function tabselect(id){if(oldtab_id!=0){document.getElementById(oldtab_id).style.borderBottom='0px';document.getElementById(oldtab_id+'_layer').style.display='none';document.getElementById(oldtab_id).style.fontWeight='normal';} document.getElementById(id).style.borderBottom='1px solid #fff';document.getElementById(id).style.fontWeight='bold';document.getElementById(id+'_layer').style.display='';oldtab_id=id;} var oldnewstab_id=Number(10);oldnewstab_id='n_tab_01';function news_tabselect(id){if(oldnewstab_id!=0){document.getElementById(oldnewstab_id).style.borderBottom='0px';document.getElementById(oldnewstab_id+'_layer').style.display='none';} document.getElementById(id).style.borderBottom='1px solid #fff';document.getElementById(id+'_layer').style.display='';oldnewstab_id=id;} var oldmanotab_id=Number(10);oldmanotab_id='mano_tab_01';function mano_tabselect(id){if(oldmanotab_id!=0){document.getElementById(oldmanotab_id).style.borderBottom='0px';document.getElementById(oldmanotab_id+'_layer').style.display='none';} document.getElementById(id).style.borderBottom='1px solid #fff';document.getElementById(id+'_layer').style.display='';oldmanotab_id=id;} function badmessage(id){if(confirm("Ar tikrai komentaras netinkamas?")){document.getElementById('bad').value=id;document.getElementById('bad_coment').submit();}else{}}