<!--
function MM_preloadImages()
{ //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function uptable()
{
document.write('<table width=100% cellspacing=0 cellpadding=0 style="margin: 0px 0px 2px 0px"><tr height=10px><td style=\'background-image:url("i/nlt.gif")\' width=10px></td><td style=\'background-image:url("i/nt.gif")\'></td><td style=\'background-image:url("i/nrt.gif")\' width=10px></td></tr><tr><td style=\'background-image:url("i/nl.gif")\' width=10px></td><td>');
}
function downtable()
{
document.write('</td><td style=\'background-image:url("i/nr.gif")\' width=10px></td></tr><tr height=10px><td style=\'background-image:url("i/nlb.gif")\' width=10px></td>  <td style=\'background-image:url("i/nb.gif")\'></td>  <td style=\'background-image:url("i/nrb.gif")\' width=10px></td></tr></table>');
}
function menu_begin(name)
{
//uptable();
document.write("<div id=mmenu><div id=lg><h2>&bull;"+name+"</h2></div><hr>");
}
function menu(page,name){document.write("<a href=\""+page+"\">"+name+"</a><br>");}
function menu_blank(page,name){ document.write("<a href=\""+page+"\" target=_blank>"+name+"</a><br>");}
function menu_end(){document.write("</div><hr><br>"); /*downtable();*/}

function Show(obj,bShow)
{
 if(bShow){document.getElementsByName(obj)[0].style.display="inline";}
 else{document.getElementsByName(obj)[0].style.display="none";}
}
function insertlink(area)
{
 if(!(sLink=prompt("Введите ссылку",""))) return;
 if(!(sText=prompt("Введите текст",""))) return;
 document.getElementsByName(area)[0].focus(); 
 if (document.selection) 
 {
  sel = document.selection.createRange();
  sel.text = '[link=' + sLink +']'+sText+'[/link]';
 }
// document.insertext('[klan=' + sKlan +']',area); 
}
function AddHideLink(area)
{
 if(!(sLink1=prompt("Введите первый линк",""))) return;
 if(!(sLink2=prompt("Введите второй линк",""))) return;
  document.getElementsByName(area)[0].focus(); 
  if (document.selection) 
  {
   sel = document.selection.createRange();
   sel.text = '[tshow=' + sLink1 +'][thide=' + sLink2 +']'+sel.text+'[/thide]';
  }
}
function ShowDiv(id,state)
{
 document.getElementById(id).style.display=state;
}
function insertext(text,area)
{
 document.getElementsByName(area)[0].focus(); 
 if (document.selection) 
 {
  sel = document.selection.createRange();
  sel.text = text;
 }
}
//insert tags at the specified location
function insertags(tag,area,value)
{
 document.getElementsByName(area)[0].focus(); 
 if (document.selection) 
 {
  sel = document.selection.createRange();
  if(value!="") sel.text = "["+tag+"="+value+"]"+sel.text+"[/"+tag+"]";
  else sel.text = "["+tag+"]"+sel.text+"[/"+tag+"]";
 }
}
function AddImage(area)
{
 if(!(sNick=prompt("Введите путь",""))) return;
 document.getElementsByName(area)[0].focus(); 
 if (document.selection) 
 {
  sel = document.selection.createRange();
  sel.text = '[image=' + sNick +']';
 }
}
function dosubmit(form)
{
 for(var i=0;i< document.forms[form].length;i++)	 
  if( document.forms[form].elements[i].value=="") {alert('Не все поля заполнены!');return;}
 document.forms[form].submit();
}
-->

 