window.defaultStatus="Чат Веселий Хутір";
function sn(n)
                {
                top.bottomFrame.document.f.pr.value=n;
                parent.bottomFrame.document.f.t.focus();
                }
function on()
                {
        if (parent.bottomFrame.document.f) {
                parent.bottomFrame.document.f.b1.disabled = false;
                parent.bottomFrame.document.f.b2.disabled = false;
                parent.bottomFrame.document.f.h.disabled = false;
                parent.bottomFrame.document.f.wp.disabled = false;
                parent.bottomFrame.document.f.sml.disabled = false;
        }
                }
function off()
                {
        if (parent.bottomFrame.document.f) {
                parent.bottomFrame.document.f.b1.disabled = true;
                parent.bottomFrame.document.f.b2.disabled = true;
                parent.bottomFrame.document.f.h.disabled = true;
                parent.bottomFrame.document.f.wp.disabled = true;
                parent.bottomFrame.document.f.sml.disabled = true;
        }
                }
function submitonce(f)
                {
           if (document.all || document.postElementById){
           for (i=0;i<f.length;i++){
           var tempobj=f.elements[i]
           if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset"||tempobj.type.toLowerCase()=="text")
           tempobj.disabled=true
           else
           tempobj.disabled=false
                   }
                }
                }
function openWindow(URL,Name,features) {
          window.open(URL,Name,features);
                 }
function sml(str) {
        tmp = parent.bottomFrame.document.f.t.value;
        parent.bottomFrame.document.f.t.value = tmp + str;
        parent.bottomFrame.document.f.t.focus();
        }

function findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function showHideLayers() { //v3.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
        
