function sbp(pic)
{
    window.open('/js/pic.shtml?'+pic, '_blank', 'height=700, width=820, location=no, menubar=no, scrollbars=no, status=no, toolbar=no');
}

function sbps(pic)
{
    window.open('/js/pics.shtml?'+pic, '_blank', 'height=700, width=820, location=no, menubar=no, scrollbars=no, status=no, toolbar=no');
    return false;
}

function include(url) { 
      // Простая проверка переданной переменной 
      if (typeof(url) == "undefined" || url.length == 0) { 
            alert("URL is not correct"); 
            return; 
      } 
      url = url.toString(); 
      // Создаем элемент SCRIPT 
      var script = document.createElement("SCRIPT"); 
      script.type = "text/javascript"; 
      // Присваиваем передаваемый URL 
      script.src = url; 
      // Добавляем в HEAD, если таковой имеется 
      if (document.getElementsByTagName("head")[0]) { 
            var head = document.getElementsByTagName("head")[0]; 
            head.appendChild(script); 
      } else { 
            alert("HTML-document is not correct."); 
            return; 
      } 
}


//include("/js/highslide/highslide.js");
