function conf_recycled(url,msg)
 { 
  if(window.confirm("Вы действительно хотите удалить объект?\n"+msg)) {window.location.href=url;}
 } 

function print_window(id,type,w,h,sb)
 {
  nw=window.open('/print_page.shtml?type='+type+'&id='+id, 'print_window', 'width=780,height=560,scrollbars=yes');
  nw.focus();
 }

function morefoto_window(id)
{
  nw=window.open('/morefoto.shtml?good='+id, 'morefoto_window', 'width=500,height=500,scrollbars=no');
  nw.focus();
}

function chip(id)
{
  nw=window.open('/chip.shtml','chip','width=300,height=170,scrollbars=no');
  nw.focus();
}
 //Скрипт очищающий форму от текста при нажатии на нее курсора 
function doClear(theText) { if (theText.value == theText.defaultValue) { theText.value = "" } }
function doDefault(theText) { if (theText.value == "") { theText.value = theText.defaultValue } }