function winRefresh(){window.location.reload();}function delayRefresh(time){setTimeout('winRefresh()', time);}function openChat(){OpenMyWindow('chat.php', 'chat', 750, 500); }function openRadio(param){OpenMyWindow('playradio.php'+param, 'radio', 500, 300);}function OMW_U(param){OpenMyWindow('scheda_utente.php?user='+param, 'profile', 0, 0); 
return false;}function OMW_A(param){OpenMyWindow('scheda_autore.php?autore='+param, 'profile', 0, 0); 
return false;}function OMW_W(param){OpenMyWindow('scheda_opera.php?opera='+param, 'work', 0, 0); 
return false;}function OMW_other(param1, param2){OpenMyWindow(param1, param2, 0, 0); 
return false;}function BA_addLoadEvent(func){   var oldQueue=window.onload? window.onload: function(){};   window.onload=function(){       oldQueue();       func();   }}function getElementStyle(elemID, IEStyleProp, CSSStyleProp){   var elem=document.getElementById(elemID);if(elem){if(elem.currentStyle){return elem.currentStyle[IEStyleProp];} 
else if(window.getComputedStyle){var compStyle=window.getComputedStyle(elem, "");return compStyle.getPropertyValue(CSSStyleProp);}}return "";}function BrowserInfo(){ this.name=navigator.appName; this.codename=navigator.appCodeName; this.version=navigator.appVersion.substring(0,4); this.platform=navigator.platform; this.javaEnabled=navigator.javaEnabled(); this.screenWidth=screen.width; this.screenHeight=screen.height;}var browserinfo=new BrowserInfo();var checkonclickAll_open=false;function removeElement(id){list_row=document.getElementById(id);if(list_row){list_row.parentNode.removeChild(list_row);checkonclickAll_open=false;}}function checkonclickAll(){if(document.getElementById('fixme_bottom_menu')&& checkonclickAll_open)removeElement('fixme_bottom_menu');}function URLize(originalbuff){if(!originalbuff.length)return '';imgheight=50;buff=originalbuff;buff=buff.replace(/\n/g, ' ');buff=buff.replace(/\r/g, ' ');buff=buff.replace(/[\(\)\<\>\,\!]/g, ' ');buff=buff.replace(/\s\s/g, ' ');delimStr=" ";the_split=split(delimStr, buff);splitcount=the_split.length;for(key=0; key < splitcount; key++){value=the_split[key];value=trim(value);the_split[key]=value;}the_split=array_unique(the_split);splitcount=the_split.length;for(key=0; key < splitcount; key++){value=the_split[key];if(value.length < 10)continue;linkisimage=false;linkisyoutube=false;newurl='';mask='';value2=value;filetype=value.toLowerCase();if(((strpos(filetype, '.iff'))!== false)||((strpos(filetype, '.jpg'))!== false)||((strpos(filetype, '.jpeg'))!== false)||((strpos(filetype, '.bmp'))!== false)||((strpos(filetype, '.gif'))!== false)||((strpos(filetype, '.tiff'))!== false)||((strpos(filetype, '.png'))!== false)){linkisimage=true;linkisyoutube=false;}else{linkisimage=false;linkisyoutube=false;}value_lower=value.toLowerCase();if(((pos=strpos(value_lower, 'www'))!== false)|| 
((pos=strpos(value_lower, 'http'))!== false)||
((pos=strpos(value, '@'))!== false)){if(strpos(value_lower, 'youtube.com'))linkisyoutube=true;else if(strncasecmp(value_lower, 'mailto:', 7)&& stristr(value, '@'))value2='mailto:'+value;else if(strncasecmp(value_lower, 'http://',7)&& !stristr(value, '@'))value2='http://'+value;if(linkisyoutube){yt_imgheight=Math.round(imgheight * 1.5);videocode='';if((pos=strpos(value, '?v='))!== false){videocode=substr(value, pos+3, 11);
newurl='<img width="'+yt_imgheight+'" height="'+yt_imgheight+'" border="1" />';newurl += '(<a href="'+value+'" target="_blank">link</a>)';}else{newurl='<a href="'+value+'" target="_blank">'+value+'</a>';}}else if(linkisimage){newurl='<a href="'+value2+'" target="_blank"><img src="'+value2+'" alt="'+value+'" border="1" height="'+imgheight+'" /></a>';}else{urlresize=value;thislink='www.braviautori.com/';thislink_len=thislink.length;if(!strncasecmp(urlresize.toLowerCase(), thislink, thislink_len)){urlresize=str_replace(thislink, '',urlresize);}else{thislink='http://www.braviautori.com/';thislink_len=thislink.length;if(!strncasecmp(urlresize.toLowerCase(), thislink, thislink_len)){urlresize=str_replace(thislink, '',urlresize);}}newurl='<a href="'+value2+'" target="_blank">'+urlresize+'</a>';}mask=str_repeat('|', newurl.length);buff=str_replace(value, newurl, buff);buff=str_replace(newurl, mask, buff);originalbuff=str_replace(value, newurl, originalbuff);}}return originalbuff;}function randomNumber(limit){ return Math.floor(Math.random()*limit);}function Noteize(buff){var pos1=0;var loop=0;var anch_num=0;var anchor_back='back_';var anch='';var all_note_there_anch=new Array();var all_note_there_note=new Array();while((pos1=strpos(buff, '[NOTE]'))!== false){var pos2=0;var the_note='';var to_replace='';if((pos2=strpos(buff, '[/NOTE]', pos1+1))!== false){note=substr(buff,(pos1+6), pos2 -(pos1+6));anch_num=randomNumber(100000);anch='<a name="'+anch_num+'" id="'+anch_num+'"></a>';all_note_there_anch[loop]=anch_num;all_note_there_note[loop]=note;the_note='<a name="'+anchor_back+anch_num+'" id="'+anchor_back+anch_num+'"></a><a href="#'+anch_num+'">(<b>'+(loop+1)+'</b>)</a>';to_replace='[NOTE]'+note+'[/NOTE]';buff=str_replace(to_replace, the_note, buff);loop++;}else break;}count_el=count(all_note_there_anch, 1);if(count_el){note_buff='';note_buff += '<hr style="width:30%;" /><div class="TableTextVerySmall"><i>';for(loop=0; loop < count_el; loop++){key=all_note_there_anch[loop];value=all_note_there_note[loop];anch=anchor_back+key;note_buff += '<a name="'+key+'" id="'+key+'"></a><b>'+(loop+1)+'</b> - '+value+' <a href="#'+anch+'">(torna su)</a><br />';}note_buff += '</i></div>';buff += note_buff;}return buff;}function Smilize(buff){buff=str_replace(':D', '<img src="./forum/images/smilies/icon_biggrin.gif" alt="Very Happy" title="Very Happy" border="0" />', buff);buff=str_replace(':-D', '<img src="./forum/images/smilies/003.gif" alt="" title="" border="0" />', buff);buff=str_replace(':grin:', '<img src="./forum/images/smilies/icon_biggrin.gif" alt="Very Happy" title="Very Happy" border="0" />', buff);buff=str_replace(':)', '<img src="./forum/images/smilies/icon_smile.gif" alt="Smile" title="Smile" border="0" />', buff);buff=str_replace(':-)', '<img src="./forum/images/smilies/001.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smile:', '<img src="./forum/images/smilies/icon_smile.gif" alt="Smile" title="Smile" border="0" />', buff);buff=str_replace(':(', '<img src="./forum/images/smilies/icon_sad.gif" alt="Sad" title="Sad" border="0" />', buff);buff=str_replace(':-(', '<img src="./forum/images/smilies/icon_sad.gif" alt="Sad" title="Sad" border="0" />', buff);buff=str_replace(':sad:', '<img src="./forum/images/smilies/icon_sad.gif" alt="Sad" title="Sad" border="0" />', buff);buff=str_replace(':o', '<img src="./forum/images/smilies/icon_surprised.gif" alt="Surprised" title="Surprised" border="0" />', buff);buff=str_replace(':-o', '<img src="./forum/images/smilies/icon_surprised.gif" alt="Surprised" title="Surprised" border="0" />', buff);buff=str_replace(':eek:', '<img src="./forum/images/smilies/icon_surprised.gif" alt="Surprised" title="Surprised" border="0" />', buff);buff=str_replace(':shock:', '<img src="./forum/images/smilies/icon_eek.gif" alt="Shocked" title="Shocked" border="0" />', buff);buff=str_replace(':?', '<img src="./forum/images/smilies/icon_confused.gif" alt="Confused" title="Confused" border="0" />', buff);buff=str_replace(':-?', '<img src="./forum/images/smilies/icon_confused.gif" alt="Confused" title="Confused" border="0" />', buff);buff=str_replace(':???:', '<img src="./forum/images/smilies/icon_confused.gif" alt="Confused" title="Confused" border="0" />', buff);buff=str_replace('8)', '<img src="./forum/images/smilies/icon_cool.gif" alt="Cool" title="Cool" border="0" />', buff);buff=str_replace('8-)', '<img src="./forum/images/smilies/icon_cool.gif" alt="Cool" title="Cool" border="0" />', buff);buff=str_replace(':cool:', '<img src="./forum/images/smilies/icon_cool.gif" alt="Cool" title="Cool" border="0" />', buff);buff=str_replace(':lol:', '<img src="./forum/images/smilies/icon_lol.gif" alt="Laughing" title="Laughing" border="0" />', buff);buff=str_replace(':x', '<img src="./forum/images/smilies/icon_mad.gif" alt="Mad" title="Mad" border="0" />', buff);buff=str_replace(':-x', '<img src="./forum/images/smilies/icon_mad.gif" alt="Mad" title="Mad" border="0" />', buff);buff=str_replace(':mad:', '<img src="./forum/images/smilies/icon_mad.gif" alt="Mad" title="Mad" border="0" />', buff);buff=str_replace(':P', '<img src="./forum/images/smilies/icon_razz.gif" alt="Razz" title="Razz" border="0" />', buff);buff=str_replace(':-P', '<img src="./forum/images/smilies/icon_razz.gif" alt="Razz" title="Razz" border="0" />', buff);buff=str_replace(':razz:', '<img src="./forum/images/smilies/icon_razz.gif" alt="Razz" title="Razz" border="0" />', buff);buff=str_replace(':oops:', '<img src="./forum/images/smilies/icon_redface.gif" alt="Embarassed" title="Embarassed" border="0" />', buff);buff=str_replace(':cry:', '<img src="./forum/images/smilies/icon_cry.gif" alt="Crying or Very sad" title="Crying or Very sad" border="0" />', buff);buff=str_replace(':evil:', '<img src="./forum/images/smilies/icon_evil.gif" alt="Evil or Very Mad" title="Evil or Very Mad" border="0" />', buff);buff=str_replace(':twisted:', '<img src="./forum/images/smilies/icon_twisted.gif" alt="Twisted Evil" title="Twisted Evil" border="0" />', buff);buff=str_replace(':roll:', '<img src="./forum/images/smilies/icon_rolleyes.gif" alt="Rolling Eyes" title="Rolling Eyes" border="0" />', buff);buff=str_replace(':wink:', '<img src="./forum/images/smilies/icon_wink.gif" alt="Wink" title="Wink" border="0" />', buff);buff=str_replace(';)', '<img src="./forum/images/smilies/icon_wink.gif" alt="Wink" title="Wink" border="0" />', buff);buff=str_replace(';-)', '<img src="./forum/images/smilies/002.gif" alt="" title="" border="0" />', buff);buff=str_replace(':!:', '<img src="./forum/images/smilies/icon_exclaim.gif" alt="Exclamation" title="Exclamation" border="0" />', buff);buff=str_replace(':?:', '<img src="./forum/images/smilies/icon_question.gif" alt="Question" title="Question" border="0" />', buff);buff=str_replace(':idea:', '<img src="./forum/images/smilies/icon_idea.gif" alt="Idea" title="Idea" border="0" />', buff);buff=str_replace(':arrow:', '<img src="./forum/images/smilies/icon_arrow.gif" alt="Arrow" title="Arrow" border="0" />', buff);buff=str_replace(':|', '<img src="./forum/images/smilies/icon_neutral.gif" alt="Neutral" title="Neutral" border="0" />', buff);buff=str_replace(':-|', '<img src="./forum/images/smilies/icon_neutral.gif" alt="Neutral" title="Neutral" border="0" />', buff);buff=str_replace(':neutral:', '<img src="./forum/images/smilies/icon_neutral.gif" alt="Neutral" title="Neutral" border="0" />', buff);buff=str_replace(':mrgreen:', '<img src="./forum/images/smilies/icon_mrgreen.gif" alt="Mr. Green" title="Mr. Green" border="0" />', buff);buff=str_replace(':smt001', '<img src="./forum/images/smilies/001.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt002', '<img src="./forum/images/smilies/002.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt003', '<img src="./forum/images/smilies/003.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt004', '<img src="./forum/images/smilies/004.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt005', '<img src="./forum/images/smilies/005.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt006', '<img src="./forum/images/smilies/006.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt007', '<img src="./forum/images/smilies/007.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt008', '<img src="./forum/images/smilies/008.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt009', '<img src="./forum/images/smilies/009.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt010', '<img src="./forum/images/smilies/010.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt011', '<img src="./forum/images/smilies/011.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt012', '<img src="./forum/images/smilies/012.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt013', '<img src="./forum/images/smilies/013.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt014', '<img src="./forum/images/smilies/014.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt015', '<img src="./forum/images/smilies/015.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt016', '<img src="./forum/images/smilies/016.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt017', '<img src="./forum/images/smilies/017.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt018', '<img src="./forum/images/smilies/018.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt019', '<img src="./forum/images/smilies/019.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt020', '<img src="./forum/images/smilies/020.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt021', '<img src="./forum/images/smilies/021.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt022', '<img src="./forum/images/smilies/022.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt023', '<img src="./forum/images/smilies/023.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt024', '<img src="./forum/images/smilies/024.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt025', '<img src="./forum/images/smilies/025.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt026', '<img src="./forum/images/smilies/026.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt027', '<img src="./forum/images/smilies/027.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt028', '<img src="./forum/images/smilies/028.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt029', '<img src="./forum/images/smilies/029.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt030', '<img src="./forum/images/smilies/030.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt031', '<img src="./forum/images/smilies/031.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt032', '<img src="./forum/images/smilies/032.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt033', '<img src="./forum/images/smilies/033.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt034', '<img src="./forum/images/smilies/034.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt035', '<img src="./forum/images/smilies/035.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt036', '<img src="./forum/images/smilies/036.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt037', '<img src="./forum/images/smilies/037.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt038', '<img src="./forum/images/smilies/038.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt039', '<img src="./forum/images/smilies/039.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt040', '<img src="./forum/images/smilies/040.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt041', '<img src="./forum/images/smilies/041.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt042', '<img src="./forum/images/smilies/042.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt043', '<img src="./forum/images/smilies/043.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt044', '<img src="./forum/images/smilies/044.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt045', '<img src="./forum/images/smilies/045.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt046', '<img src="./forum/images/smilies/046.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt047', '<img src="./forum/images/smilies/047.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt048', '<img src="./forum/images/smilies/048.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt049', '<img src="./forum/images/smilies/049.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt050', '<img src="./forum/images/smilies/050.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt051', '<img src="./forum/images/smilies/051.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt052', '<img src="./forum/images/smilies/052.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt053', '<img src="./forum/images/smilies/053.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt054', '<img src="./forum/images/smilies/054.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt055', '<img src="./forum/images/smilies/055.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt056', '<img src="./forum/images/smilies/056.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt057', '<img src="./forum/images/smilies/057.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt058', '<img src="./forum/images/smilies/058.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt059', '<img src="./forum/images/smilies/059.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt060', '<img src="./forum/images/smilies/060.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt061', '<img src="./forum/images/smilies/061.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt062', '<img src="./forum/images/smilies/062.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt063', '<img src="./forum/images/smilies/063.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt064', '<img src="./forum/images/smilies/064.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt065', '<img src="./forum/images/smilies/065.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt066', '<img src="./forum/images/smilies/066.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt067', '<img src="./forum/images/smilies/067.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt068', '<img src="./forum/images/smilies/068.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt069', '<img src="./forum/images/smilies/069.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt070', '<img src="./forum/images/smilies/070.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt071', '<img src="./forum/images/smilies/071.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt072', '<img src="./forum/images/smilies/072.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt073', '<img src="./forum/images/smilies/073.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt074', '<img src="./forum/images/smilies/074.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt075', '<img src="./forum/images/smilies/075.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt076', '<img src="./forum/images/smilies/076.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt077', '<img src="./forum/images/smilies/077.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt078', '<img src="./forum/images/smilies/078.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt079', '<img src="./forum/images/smilies/079.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt080', '<img src="./forum/images/smilies/080.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt081', '<img src="./forum/images/smilies/081.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt082', '<img src="./forum/images/smilies/082.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt083', '<img src="./forum/images/smilies/083.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt084', '<img src="./forum/images/smilies/084.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt085', '<img src="./forum/images/smilies/085.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt086', '<img src="./forum/images/smilies/086.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt087', '<img src="./forum/images/smilies/087.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt088', '<img src="./forum/images/smilies/088.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt089', '<img src="./forum/images/smilies/089.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt090', '<img src="./forum/images/smilies/090.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt091', '<img src="./forum/images/smilies/091.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt092', '<img src="./forum/images/smilies/092.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt093', '<img src="./forum/images/smilies/093.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt084', '<img src="./forum/images/smilies/094.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt095', '<img src="./forum/images/smilies/095.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt096', '<img src="./forum/images/smilies/096.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt097', '<img src="./forum/images/smilies/097.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt098', '<img src="./forum/images/smilies/098.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt099', '<img src="./forum/images/smilies/099.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt100', '<img src="./forum/images/smilies/100.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt101', '<img src="./forum/images/smilies/101.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt102', '<img src="./forum/images/smilies/102.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt103', '<img src="./forum/images/smilies/103.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt104', '<img src="./forum/images/smilies/104.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt105', '<img src="./forum/images/smilies/105.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt106', '<img src="./forum/images/smilies/106.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt107', '<img src="./forum/images/smilies/107.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt108', '<img src="./forum/images/smilies/108.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt109', '<img src="./forum/images/smilies/109.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt110', '<img src="./forum/images/smilies/110.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt111', '<img src="./forum/images/smilies/111.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt112', '<img src="./forum/images/smilies/112.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt113', '<img src="./forum/images/smilies/113.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt114', '<img src="./forum/images/smilies/114.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt115', '<img src="./forum/images/smilies/115.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt116', '<img src="./forum/images/smilies/116.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt117', '<img src="./forum/images/smilies/117.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt118', '<img src="./forum/images/smilies/118.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt119', '<img src="./forum/images/smilies/119.gif" alt="" title="" border="0" />', buff);buff=str_replace(':smt120', '<img src="./forum/images/smilies/120.gif" alt="" title="" border="0" />', buff);return buff;}var poppreviewWin=null;var lastwindow_width=0;var lastwindow_height=0;function applyPreview(){var thevalue=document.getElementById(poppreviewWin).value;thevalue=URLize(thevalue);thevalue=Noteize(thevalue);thevalue=Smilize(thevalue);thevalue=thevalue.replace(/\r\n/g, '<br />');thevalue=thevalue.replace(/[\r\n]/g, "<br />");document.getElementById('id_preview_text2').innerHTML=thevalue;setTimeout("applyPreview()", 1000);}function closePreviewWindow(){document.getElementById('id_preview_text').style.display='none';}function showPreviewWindow(id){poppreviewWin=id;applyPreview();document.getElementById('id_preview_text').style.display='block';return false;}function showPreviewWindow2(id, resize){if(poppreviewWin && !poppreviewWin.closed)poppreviewWin.focus();else{var scr_w=screen.width;var scr_h=screen.height;var preview_w=500;var preview_h=150;var theWidth=0;var theHeight=0;var available=(scr_h - preview_h);var themiddle=0;if(window.innerWidth)theWidth=window.innerWidth;else if(document.documentElement && document.documentElement.clientWidth)theWidth=document.documentElement.clientWidth;else if(document.body)theWidth=document.body.clientWidth;if(window.innerHeight)theHeight=window.innerHeight;else if(document.documentElement && document.documentElement.clientHeight)theHeight=document.documentElement.clientHeight;else if(document.body)theHeight=document.body.clientHeight;themiddle=Math.round((scr_w - preview_w)/ 2);poppreviewWin=window.open("preview.php?id="+id,'preview','width='+preview_w+',height='+preview_h+',left='+themiddle+',top=0');if(resize){if(theHeight >(available - 100)){if(parseInt(navigator.appVersion)>3){themiddle=Math.round((scr_w - theWidth)/ 2);lastwindow_width=theWidth;lastwindow_height=theHeight;window.resizeTo(theWidth, available);window.moveTo(themiddle, preview_h);}}}}return false;}function split(delimiter, string){   return explode(delimiter, string);}function explode(delimiter, string, limit){   var emptyArray={ 0: '' };   
   
   if(arguments.length < 2 || typeof arguments[0]=='undefined' || typeof arguments[1]=='undefined')
   {       return null;   }   if(delimiter === '' || delimiter === false || delimiter === null)
   {       return false;   }   if(typeof delimiter=='function'
       || typeof delimiter=='object'
       || typeof string=='function'
       || typeof string=='object')
   {       return emptyArray;   }   if(delimiter === true){       delimiter='1';   }   
   if(!limit)
   {       return string.toString().split(delimiter.toString());   } 
   else 
   {              var splitted=string.toString().split(delimiter.toString());       var partA=splitted.splice(0, limit - 1);       var partB=splitted.join(delimiter.toString());       partA.push(partB);       return partA;   }}function strip_tags(str, allowed_tags){   var key='', tag='', allowed=false;   var matches=allowed_array=[];   var allowed_keys={};   var replacer=function(search, replace, str){       return str.split(search).join(replace);   };   if(allowed_tags){       allowed_array=allowed_tags.match(/([a-zA-Z]+)/gi);   } 
   str += '';   matches=str.match(/(<\/?[^>]+>)/gi);   for(key in matches){       if(isNaN(key)){                      continue;       }              html=matches[key].toString();              allowed=false;              for(k in allowed_array){                      allowed_tag=allowed_array[k];           i=-1;           if(i != 0){ i=html.toLowerCase().indexOf('<'+allowed_tag+'>');}           if(i != 0){ i=html.toLowerCase().indexOf('<'+allowed_tag+' ');}           if(i != 0){ i=html.toLowerCase().indexOf('</'+allowed_tag)  ;}                      if(i==0){               allowed=true;               break;           }       }       if(!allowed){           str=replacer(html, "", str);        }   }   return str;}function str_replace(search, replace, subject){   var f=search, r=replace, s=subject;   var ra=r instanceof Array, sa=s instanceof Array, f=[].concat(f), r=[].concat(r), i=(s=[].concat(s)).length;   while(i)
   {j=0;i=i - 1;       if(s[i]){           while(s[i]=s[i].split(f[j]).join(ra?r[j] || "" : r[0]), ++j in f){};       }       
   };   return sa?s : s[0];}function trim(str, charlist){   var whitespace, l=0, i=0;   str += '';   
   if(!charlist){              whitespace=" \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000";   } else {       charlist += '';       whitespace=charlist.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g, '\$1');   }   
   l=str.length;   for(i=0; i < l; i++){       if(whitespace.indexOf(str.charAt(i))=== -1){           str=str.substring(i);           break;       }   }   
   l=str.length;   i=l - 1;   
   while(i >= 0){       if(whitespace.indexOf(str.charAt(i))=== -1){           str=str.substring(0, i+1);           break;       }       
       i=i - 1;   }   return whitespace.indexOf(str.charAt(0))=== -1?str : '';}function count(mixed_var, mode){   var key, cnt=0;   if(mode=='COUNT_RECURSIVE')mode=1;   if(mode != 1)mode=0;   for(key in mixed_var){       cnt++;       if(mode==1 && mixed_var[key] &&(mixed_var[key].constructor === Array || mixed_var[key].constructor === Object)){           cnt += count(mixed_var[key], 1);       }   }   return cnt;}function sort(array, sort_flags){   var sorter=false;   
   if(sort_flags=='SORT_NUMERIC'){       sorter=function(a, b){           return(a - b);       };   }   
   if(sorter !== false){       array.sort(sorter);   } else {       array.sort();   }   
   return true;}function array_unique(array){   var a=[];   var l=array.length;   for(var i=0; i<l; i++){     for(var j=i+1; j<l; j++){              if(array[i] === array[j])
         j=++i;     }     a.push(array[i]);   }   return a; } 
function stristr(haystack, needle, bool){   var pos=0;   haystack += '';   pos=haystack.toLowerCase().indexOf((needle+'').toLowerCase());   if(pos==-1){       return false;   } else{       if(bool){           return haystack.substr(0, pos);       } else{           return haystack.slice(pos);       }   }}function str_repeat(input, multiplier){   return new Array(multiplier+1).join(input); }function substr(f_string, f_start, f_length){   f_string += '';   if(f_start < 0){       f_start += f_string.length;   }   if(f_length==undefined){       f_length=f_string.length;   } else if(f_length < 0){       f_length += f_string.length;   } else {       f_length += f_start;   }   if(f_length < f_start){       f_length=f_start;   }   return f_string.substring(f_start, f_length);}function strpos(haystack, needle, offset){   var i=(haystack+'').indexOf(needle, offset); 
   return i===-1?false : i;}function strncasecmp(str1, str2, len){   var diff;   str1=(str1+'').toLowerCase().substr(0,len);   str2=(str2+'').toLowerCase().substr(0,len);   if(str1.length !== str2.length){       if(str1.length < str2.length){           len=str1.length;           if(str2.substr(0, str1.length)==str1){               return str1.length - str2.length;            }       } else {           len=str2.length;                      if(str1.substr(0, str2.length)==str2){               return str1.length - str2.length;            }       }   } else {              len=str1.length;   }   for(diff=0, i=0; i < len; i++){       diff=str1.charCodeAt(i)- str2.charCodeAt(i);       if(diff !== 0){           return diff;       }   }   return 0;}function strrpos(haystack, needle, offset){   var i=(haystack+'').lastIndexOf(needle, offset);    return i >= 0?i : false;}var counter_for_close_count=0;var max_time_for_close=0;var user_is_typing=false;var ttfc=null;var main_timer=null;function start_counter_for_close(){if(ttfc){clearTimeout(ttfc);ttfc=null;}if(counter_for_close_count++ > max_time_for_close)window.close();ttfc=setTimeout("start_counter_for_close()", 1000);}function stop_counter_for_close(){if(ttfc){clearTimeout(ttfc);ttfc=null;counter_for_close_count=0;user_is_typing=true;}}var message="BraviAutori.it";var message2="*BraviAutori.it";var tt=null;var tt2=null;var main_window_has_focus=true;var increase_time_digit_count=0;var increase_time_digit_count_limit=10;function IE_clearTheTimer(){if(navigator.appName=="Microsoft Internet Explorer"){theonfocus();increase_time_digit_count=0;}}function clearTheTimer(){if(tt){clearTimeout(tt);tt=null;}document.title=message;}function increase_time_digit(){if(tt2){clearTimeout(tt2);tt2=null;}increase_time_digit_count++;tt2=setTimeout("increase_time_digit()", 1000);}function the_flash(){(document.title==message)?document.title=message2 : document.title=message;if(tt){clearTimeout(tt);tt=null;}tt=setTimeout("the_flash()", 500);}function theonfocus(){main_window_has_focus=true;clearTheTimer();}function theonblur(){main_window_has_focus=false;}function theonmousedown(){main_window_has_focus=true;clearTheTimer();}if(window.addEventListener){window.addEventListener("focus", theonfocus, true);window.addEventListener("blur", theonblur, true);}else if(window.attachEvent){window.attachEvent("onfocus", theonfocus);window.attachEvent("onblur", theonblur);}function IsNotUneven(numero){   if(isNaN(numero)==false)
   {       return(numero %2==1? true : false);   }   else
   {       return null;   }}function showHideMe(id){if(document.getElementById(id).style.display=="none")document.getElementById(id).style.display="block";else document.getElementById(id).style.display="none";}function decToHex(dec){ var hexStr="0123456789ABCDEF"; var low=dec % 16; var high=(dec - low)/16; hex=""+hexStr.charAt(high)+hexStr.charAt(low); return hex;}function maskemail(name, domain, suffix, text){  var address=name+"\u0040"+domain+"."+suffix;  var url="mailto:"+address;  if(! text)
  {     text=address;  }  document.write("<a href=\""+url+"\">"+text+"</a>");}function disable_enable_element(element, value, status){if(document.all || document.getElementById){element.disabled=status;if(value.length){element.value=value;}}}function disable_enable_element_by_id(id, value, status){if(document.all || document.getElementById){element=document.getElementById(id);element.disabled=status;if(value.length){element.value=value;}}}var titlerloop=0;var temptitle="";var titlerspeed=100;var titlermessage="";function titler(){if(!document.all && !document.getElementById)return;document.title=temptitle+titlermessage.charAt(titlerloop);temptitle=temptitle+titlermessage.charAt(titlerloop);titlerloop++;if(titlerloop==titlermessage.length){titlerloop=0;temptitle="";}else setTimeout("titler()", titlerspeed);}function checkCapsLock(e, msg){var myKeyCode=0;var myShiftKey=false;if(document.all){myKeyCode=e.keyCode;myShiftKey=e.shiftKey;} else if(document.layers){myKeyCode=e.which;myShiftKey=(myKeyCode==16)?true : false;} else if(document.getElementById){myKeyCode=e.which;myShiftKey=(myKeyCode==16)?true : false;}if((myKeyCode >= 65 && myKeyCode <= 90)&& !myShiftKey){document.getElementById("id_login_info").innerHTML=msg;document.getElementById('id_login_info').style.visibility='visible';}else if((myKeyCode >= 97 && myKeyCode <= 122)&& myShiftKey){document.getElementById("id_login_info").innerHTML=msg;document.getElementById('id_login_info').style.visibility='visible';}else{document.getElementById("id_login_info").innerHTML="...";document.getElementById('id_login_info').style.visibility='hidden';}}function aspectRatio(img_width, img_height, max_dimension){   aspect_ratio=img_width / img_height;  
   if((img_width > max_dimension)||(img_height > max_dimension))   {       if(img_width > img_height)       {           new_width=max_dimension;           new_height=new_width / aspect_ratio;       }       else if(img_width < img_height)       {           new_height=max_dimension;           new_width=new_height * aspect_ratio;       }       else if(img_width==img_height)       {           new_width=max_dimension;           new_height=max_dimension;       }       
   }   else { new_width=img_width; new_height=img_height; }   
  var myarray=new Array(2)
      myarray[0]=Math.round(new_width);   myarray[1]=Math.round(new_height); 
 return myarray;}var w_max_width=1400;function OpenMyWindow(url, name, Width, Height){var posX=0;var posY=0;var divisor=0;if(screen.availWidth <= 800)divisor=10;else if(screen.availWidth <= 1024)divisor=8;else if(screen.availWidth <= 1280)divisor=6;else divisor=4;if(popUpEdora && popUpEdora.open && !popUpEdora.closed){ popUpEdora.close();}if(name=="profile"){if(Width==0)Width=screen.availWidth -(screen.availWidth / divisor);if(Height==0)Height=screen.availHeight -(screen.availHeight / divisor);myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2)- 20;posY=((screen.availHeight - Height)/ 2)- 20;}else if(name=="chat"){if(!Width)Width=screen.availWidth -(screen.availWidth / divisor);if(!Height)Height=screen.availHeight -(screen.availHeight / divisor);myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2);posY=((screen.availHeight - Height)/ 2);}else if(name=="work"){if(!Width)Width=screen.availWidth -(screen.availWidth / divisor);if(!Height)Height=screen.availHeight -(screen.availHeight / divisor);myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2);posY=((screen.availHeight - Height)/ 2);}else if(name=="relatedwork"){if(!Width)Width=screen.availWidth -(screen.availWidth / divisor);if(!Height)Height=screen.availHeight -(screen.availHeight / divisor);myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2)+20;posY=((screen.availHeight - Height)/ 2)+20;}else if(name=="banlist"){if(Width==0)Width=screen.availWidth -(screen.availWidth / divisor);if(Height==0)Height=screen.availHeight -(screen.availHeight / divisor);myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2);posY=((screen.availHeight - Height)/ 2);}else if(name=="image"){newx=Math.round(screen.availWidth -(screen.availWidth / divisor));newy=Math.round(screen.availHeight -(screen.availHeight / divisor));if(Width && Height){if(Width > newx){if(Height < Width){Width=newx;Height=Math.round((Width * newy)/ newx);}else{Height=newy;Width=Math.round((Height * newy)/ newx);}}else if(Height > newy){if(Width < Height){Height=newy;Width=Math.round((Height * newy)/ newx);}else{Width=newx;Height=Math.round((Width * newy)/ newx);}}}else{if(!Width)Width=newx;if(!Height)Height=newy;}posX=((screen.availWidth - Width)/ 2);posY=((screen.availHeight - Height)/ 2);}else if(name=="personalpage"){if(Width==0)Width=screen.availWidth -(screen.availWidth /(divisor+2));if(Height==0)Height=screen.availHeight -(screen.availHeight /(divisor+2));myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2);posY=((screen.availHeight - Height)/ 2);}else if(strpos(name, 'storymaker')!== false){if(Width==0)Width=screen.availWidth -(screen.availWidth /(divisor+2));if(Height==0)Height=screen.availHeight -(screen.availHeight /(divisor+2));myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2);posY=((screen.availHeight - Height)/ 2);}else if(name=="pm"){Width=550;Height=450;posX=(screen.availWidth - Width)/ 2;posY=(screen.availHeight - Height)/ 2;}else if(name=="im"){if(Width==0)Width=350;if(Height==0)Height=300;posX=(screen.availWidth - Width)/ 2;posY=(screen.availHeight - Height)/ 2;}else if((name=="allentity")||(name=="movechapter")){if(Width==0)Width=300;if(Height==0)Height=500;posX=(screen.availWidth - Width)- 20;posY=(screen.availHeight - Height)/ 2;}else if(name=="authors"){if(Width==0)Width=300;if(Height==0)Height=500;posX=20;posY=(screen.availHeight - Height)/ 2;}else if(name=="keywords"){Width=550;Height=500;posX=(screen.availWidth - Width)/ 2;posY=(screen.availHeight - Height)/ 2;}else if(name=="book"){Width=750;Height=600;posX=(screen.availWidth - Width)/ 2;posY=(screen.availHeight - Height)/ 2;}else if(name=="qrcode"){Width=300;Height=300;posX=(screen.availWidth - Width)/ 2;posY=(screen.availHeight - Height)/ 2;}else if((name=="smilies")||(name=="smilies_sm")||(name=="smilies_msn")||(name=="smilies_pm")){if(Width==0)Width=300;if(Height==0)Height=600;posX=0;posY=20;}else{if(Width==0)Width=screen.availWidth -(screen.availWidth / divisor);if(Height==0)Height=screen.availHeight -(screen.availHeight / divisor);myarray=aspectRatio(Width, Height, w_max_width);Width=myarray[0];Height=myarray[1];posX=((screen.availWidth - Width)/ 2);posY=((screen.availHeight - Height)/ 2);}Width= Math.round(Width);Height= Math.round(Height);posX= Math.round(posX);posY= Math.round(posY);var popUpEdora=window.open(url,name,'width='+Width+',height='+Height+',left='+posX+',top='+posY+',scrollbars=yes,resizable=yes');popUpEdora.focus();}function ApplyAlignTag(id, tag){var el=document.getElementById(id); if(el.setSelectionRange){el.value=el.value.substring(0,el.selectionStart)+"<div align="+tag+">"+el.value.substring(el.selectionStart,el.selectionEnd)+"</div>"+el.value.substring(el.selectionEnd,el.value.length); } else if(el.createTextRange){       var selectedText=document.selection.createRange().text;       
       if(selectedText != ""){           var newText="<div align="+tag+">"+selectedText+"</div>";           document.selection.createRange().text=newText;       }else{el.value += "<div align="+tag+">"+"</div>";}}else 
 { 
el.value += "<div align="+tag+">"+"</div>";  }return false;} 
function ApplyPairTag(id, tag){var el=document.getElementById(id); if(el.setSelectionRange){el.value=el.value.substring(0,el.selectionStart)+"<"+tag+">"+el.value.substring(el.selectionStart,el.selectionEnd)+"</"+tag+">"+el.value.substring(el.selectionEnd,el.value.length); } else if(el.createTextRange){       var selectedText=document.selection.createRange().text;       
       if(selectedText != ""){           var newText="<"+tag+">"+selectedText+"</"+tag+">";           document.selection.createRange().text=newText;       }else{el.value += "<"+tag+">"+"</"+tag+">";}}else 
 { 
el.value += "<"+tag+">"+"</"+tag+">";  }return false;} 
function ApplySingleTag(id, tag){var el=document.getElementById(id); if(el.setSelectionRange){el.value=el.value.substring(0,el.selectionStart)+"\n<"+tag+">\n"+el.value.substring(el.selectionStart,el.selectionEnd)+el.value.substring(el.selectionEnd,el.value.length); } else if(el.createTextRange){       var selectedText=document.selection.createRange().text;       
       if(selectedText != ""){           var newText="\n<"+tag+">\n"+selectedText;           document.selection.createRange().text=newText;       }else{el.value += "<"+tag+">";}}else 
 { 
el.value += "<"+tag+">";  }return false;} 
function ResetTextTags(id){var el=document.getElementById(id);el.value=strip_tags(el.value, '');return false;}function validate_required(field,alerttxt){with(field){if(value==null||value=="")
 {alert(alerttxt);return false;}else{return true;}}}function validate_email(field,alerttxt){with(field){apos=value.indexOf("@");dotpos=value.lastIndexOf(".");if(apos<1||dotpos-apos<2)
 {alert(alerttxt);return false;}else {return true;}}}function validate_email_text(text){apos=text.indexOf("@");dotpos=text.lastIndexOf(".");if(apos<1||dotpos-apos<2){return false;}else {return true;}}function validate_web(text){text=text.toLowerCase();if(text.search("http")!= -1)return true;else if(text.search(".com")!= -1)return true;else if(text.search(".net")!= -1)return true;else if(text.search(".org")!= -1)return true;else if(text.search(".it")!= -1)return true;else if(text.search(".info")!= -1)return true;else if(text.search(".eu")!= -1)return true;else return false;}function validate_date(text){if(text.length != 10)return false;pos1=text.indexOf("/");pos2=text.lastIndexOf("/");if(pos1 != 2 || pos2 != 5){return false;}else {day=text.substr(0, 2);month=text.substr(3, 2);if((month != "01")&&(month != "02")&&(month != "03")&&(month != "04")&&(month != "05")&&(month != "06")&&(month != "07")&&(month != "08")&&(month != "09")&&(month != "10")&&(month != "11")&&(month != "12"))return false;if((day != "01")&&(day != "02")&&(day != "03")&&(day != "04")&&(day != "05")&&(day != "06")&&(day != "07")&&(day != "08")&&(day != "09")&&(day != "10")&&(day != "11")&&(day != "12")&&(day != "13")&&(day != "14")&&(day != "15")&&(day != "16")&&(day != "17")&&(day != "18")&&(day != "19")&&(day != "20")&&(day != "21")&&(day != "22")&&(day != "23")&&(day != "24")&&(day != "25")&&(day != "26")&&(day != "27")&&(day != "28")&&(day != "29")&&(day != "30")&&(day != "31"))return false;return true;}}var weekday=new Array(7);weekday[0]="Domenica";weekday[1]="Lunedì";weekday[2]="Martedì";weekday[3]="Mercoledì";weekday[4]="Giovedì";weekday[5]="Venerdì";weekday[6]="Sabato";var months=new Array(12);months[0]="Gennaio";months[1]="Febbraio";months[2]="Marzo";months[3]="Aprile";months[4]="Maggio";months[5]="Giugno";months[6]="Luglio";months[7]="Agosto";months[8]="Settembre";months[9]="Ottobre";months[10]="Novembre";months[11]="Dicembre";function checkTime(i){if(i<10)
 {i="0"+i;}return i;}function startTime(){var today=new Date();var s=today.getSeconds();if(document.getElementById('timetxt')){var h=today.getHours();var m=today.getMinutes();var s2= s;var day=today.getDay();var date=today.getDate();var month=today.getMonth();m=checkTime(m);s2=checkTime(s);outstr=weekday[day]+" "+date+" "+months[month]+" "+h+":"+m+":"+s2;document.getElementById('timetxt').innerHTML=outstr;}if((s % 15)==0){if(document.getElementById('ajaxpvtmsg')){showHintAjax("all"); }}else if((s % 12)==0){if(document.getElementById('id_leftmenu_container')){showLeftMenuAjax("all"); }}else if((s % 20)==0){if(document.getElementById('ajaxdownmenu')){showDownMenuAjax("all"); }}if((s % 19)==0){if(document.getElementById("id_short_news")){showMainGeneralAjax("all"); }}if(main_timer){clearTimeout(main_timer);main_timer=null;}main_timer=setTimeout('startTime()',1000);}function startTimeNoAjax(){if(document.getElementById('timetxt')){var today=new Date();var s=today.getSeconds();var h=today.getHours();var m=today.getMinutes();var s2= s;var day=today.getDay();var date=today.getDate();var month=today.getMonth();m=checkTime(m);s2=checkTime(s);outstr=weekday[day]+" "+date+" "+months[month]+" "+h+":"+m+":"+s2;document.getElementById('timetxt').innerHTML=outstr;}t=setTimeout('startTimeNoAjax()',1000);}function gotourl(url){location.href=url;}function SelectAllTextArea(id){document.getElementById(id).focus();document.getElementById(id).select();}function fnSelect(objId){  fnDeSelect();  if(document.selection)
  {     var range=document.body.createTextRange();     range.moveToElementText(document.getElementById(objId));     range.select();  }  else if(window.getSelection)
  {     var range=document.createRange();     range.selectNode(document.getElementById(objId));     window.getSelection().addRange(range);  }}function fnDeSelect(){  if(document.selection)
            document.selection.empty();  else if(window.getSelection)
             window.getSelection().removeAllRanges();} 
function SelectAllDiv(id){fnSelect(id);}function go_anchor(a, n){if(document.getElementById(a)&& document.getElementById(n)){document.getElementById(a).scrollTop=document.getElementById(n).offsetTop;}}function go_anchor2(a, n){if(document.getElementById(a)&& document.getElementById(n)){tmp=document.getElementById(n).offsetTop;if(tmp < 80)tmp=0;else tmp -= 80;document.getElementById(a).scrollTop=tmp;}}function go_anchor2_opener(a, n){if(window.opener.document.getElementById(a)&& window.opener.document.getElementById(n)){tmp=window.opener.document.getElementById(n).offsetTop;if(tmp < 80)tmp=0;else tmp -= 80;window.opener.document.getElementById(a).scrollTop=tmp;}}
function toTop(id){document.getElementById(id).scrollTop=0;}
function toBottom(id){var objDiv=document.getElementById(id);objDiv.scrollTop=objDiv.scrollHeight;}function EvalSound(soundobj){var thissound=document.getElementById(soundobj);   
if(thissound)thissound.Play();}function GetXmlHttpObject(){var xmlHttp=null;try
 {  xmlHttp=new XMLHttpRequest(); }catch(e)
 {  try
   {   xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");   } catch(e)
   {   xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");   } }return xmlHttp;}function isset(varname){ return(typeof(window[varname])!='undefined');}