function toggleDisclosureWidget(id){var div=document.getElementById(id);if(div.className=='slide-show'){div.className='slide-hide';}else{div.className='slide-show';}return(false);}function mf(id){return(toggleDisclosureWidget(id));}function addToFavorites(){var url="http://shkola.lv";var title="ШКола.LV - русская международная виртуальная школа";if(window.external){window.external.AddFavorite(url,title);}if(window.sidebar){window.sidebar.addPanel(title,url,"");}if(window.opera&&window.print){return true;}}function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}function adjust_popup(){var w,h,fixedW,fixedH,diffW,diffH;if(document.documentElement&&document.body.clientHeight==0){fixedW=document.documentElement.clientWidth;fixedH=document.documentElement.clientHeight;window.resizeTo(fixedW,fixedH);diffW=fixedW-document.documentElement.clientWidth;diffH=fixedH-document.documentElement.clientHeight;w=fixedW+diffW+16;h=fixedH+diffH;if(w>=screen.availWidth)h+=16;}else if(document.all){fixedW=document.body.clientWidth;fixedH=document.body.clientHeight;window.resizeTo(fixedW,fixedH);diffW=fixedW-document.body.clientWidth;diffH=fixedH-document.body.clientHeight;w=fixedW+diffW;h=fixedH+diffH;if(h>=screen.availHeight)w+=16;if(w>=screen.availWidth)h+=16;}else{fixedW=window.innerWidth;fixedH=window.innerHeight;window.resizeTo(fixedW,fixedH);diffW=fixedW-window.innerWidth;diffH=fixedH-window.innerHeight;w=fixedW+diffW;h=fixedH+diffH;if(w>=screen.availWidth)h+=16;if(h>=screen.availHeight)w+=16;}w=Math.min(w,screen.availWidth);h=Math.min(h,screen.availHeight);window.resizeTo(w,h);window.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);}function show_the_overlay(){document.getElementById('display_overlay_holder').style.display='block';}function hide_the_overlay(){document.getElementById('display_overlay_holder').style.display='none';}function hide_the_pms(){document.getElementById('pms_holder').style.display='none';}function answer_the_pms(id,user,url,scrollbars){ClosePMS(id,user,'target=pms_holder');window.open('http://shkola.lv/'+url+'&id='+id,'','resizable=yes,scrollbars='+scrollbars+',width=620,height=470');return false;}function send_pms_to(user){window.open('http://shkola.lv/index.php?m=popup&page=pms&to='+user,'','resizable=yes,scrollbars=no,width=600,height=300');return false;}function add_to_friends(user){window.open('http://shkola.lv/index.php?m=popup&page=myfriends&user='+user,'','resizable=yes,scrollbars=no,width=600,height=200');return false;}function open_popup(str){window.open('http://shkola.lv/index.php?m=popup'+str,'','resizable=yes,scrollbars=no,width=600,height=200');return false;}function join_group(user,group,mode){window.open('http://shkola.lv/index.php?m=popup&page=joingroup&type='+mode+'&user='+user+'&group='+group,'','resizable=yes,scrollbars=no,width=600,height=200');return false;}function join_group_request(user,group){join_group(user,group,'request');return false;}function join_group_fire(user,group){join_group(user,group,'fire');return false;}function join_group_join(user,group){join_group(user,group,'join');return false;}function textLimit(field,maxlimit){if(field.value.length>maxlimit)field.value=field.value.substring(0,maxlimit);}function addtag(tag){var txtarea=document.form1.n_tags;txtarea.value+=' '+tag+' ';txtarea.focus();}