 isDOM=document.getElementById //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
 isMSIE=document.all && document.all.item //Microsoft Internet Explorer 4+
 isNetscape4=document.layers //Netscape 4.*
 isOpera=window.opera //Opera
 isOpera5=isOpera && isDOM //Opera 5+
 isMSIE5=isDOM && isMSIE //MSIE 5+
 isMozilla=isNetscape6=isDOM && !isMSIE && !isOpera //Mozilla или Netscape 6.*

 function getObject(obj)
 {
   if (isDOM) return document.getElementById(obj)
   else if (isMSIE) return document.all[obj]
   return null;
 }

 function getLayerStyle(obj)
 {
   if (obj&&((isDOM)||(isMSIE))) return obj.style
   else return null
 }
 
 function setLayerVisibility(obj,isV)
 {
   if (st=getLayerStyle(obj)) st.visibility=(isV?"visible":"hidden");
   return (st!=null);
 }
 
 function setLayerPlacement(obj,x,y,z)
 { 
   if (st=getLayerStyle(obj))
   {
     st.left=x
     st.top=y
     if (z>0) st.zIndex=z
   }
   return st==null;
 }
 
 function moveLayer(lay,dx,dy,z)
 {
   if (obj=getObject(lay))
   {  
      if (isMSIE||isMozilla||isOpera) setLayerPlacement(obj,dx+obj.offsetLeft,dy+obj.offsetTop,maxzi)
   }
 }

function openWindow (url,width,height)
{ 
    window.open(url,"","width="+width+",height="+height+",toolbar=no,menubar=no,scrollbars=no,status=no,location=no");
}

