function wPop(base, image, wd, ht, title, name, desc)
 {
  if(ht < 640)
   {
    var OpenWindow=window.open("", "newwin", "toolbar=0,scrollbars=0,location=0,directories=0,status=0,menubar=0,resizable=1,width=" + wd + ",height=" + ht);
   } else {
    var OpenWindow=window.open("", "newwin", "toolbar=0,scrollbars=1,location=0,directories=0,status=0,menubar=0,resizable=1,width=" + wd + ",height=" + ht);
   }
  OpenWindow.document.write("<HTML>");
  OpenWindow.document.write("<TITLE>" + title + "<\/TITLE>");
  OpenWindow.document.write("<META http-equiv='Content-Type' content='text/html; charset=windows-1251'>");
  OpenWindow.document.write("<LINK rel=stylesheet href='" + base + "wrap.css' type='text/css'>");
  OpenWindow.document.write("<\/HEAD><BODY style='margin:0;padding:5px'>");
  OpenWindow.document.write("<H1>" + name + "<\/H1>");
  OpenWindow.document.write("<A href='#' onClick='self.close()'><IMG src='" + base + image + "' alt='" + name + "'><\/A>");
  if(desc.length>0)
   {
    for(i=0;i<desc.length;i++) { OpenWindow.document.write("<P>" + desc[i] + "<\/P>"); }
   } else {
    OpenWindow.document.write("<A href='#' onClick='self.close()'><H2>= ÇÀÊÐÛÒÜ ÎÊÍÎ =<\/H2><\/A>");
   }
  OpenWindow.document.write("<\/BODY><\/HTML>")
 }

function addjs(id)
 {
  var fname = 'f' + id;
  var adj = document.createElement("script");
  adj.id = "loader";
  adj.type = "text/javascript";
  adj.src = "/cput.php?add=" + id + "&rnd=" + Math.random();
  document.body.appendChild(adj);
 }
