function fixIt(ss){
	document.write(ss);
}
function send(name){
//   alert("n=" + document.forms["tovar"].elements[('id' +name)].value);
   url=document.location.pathname + '?load=lbasket&id='+name+'&number='+document.forms["tovar"].elements[('id' +name)].value + "&" + "cat=<!--* cat -->&page=<!--* page -->";
   document.forms["tovar"].elements[('id' +name)].value = '1';
   iframe.document.location=url;
}

function about(id){
//	alert(1);
      window.open('/cgi-bin/shop?load=about&id='+id, '', 'scrollbars, resizable, width=650, height=450');
}
function about1(id){
//	alert(1);
      window.open('/cgi-bin/shop1?load=about&id='+id, '', 'scrollbars, resizable, width=650, height=450');
}
function nc(id){
   if(document.forms["tovar"].elements[id].value == 'кол-во'){document.forms["tovar"].elements[id].value = ''} 
}
function c(id){
   if(document.forms["tovar"].elements[id].value > 0){}
   else{document.forms["tovar"].elements[id].value = '1'} 
}       

function KeyPressed(Key){
alert('key pressed');
  if(Key == 13){
     find();
  }
}

function find() {
var f = document.sendform; //that should be our form
var s="/cgi-bin/shop?search="+f.search.value+"&cat=1";
//alert("here!");
if (f.search.value == "") {
	alert('Поле поиска не заполнено!');
return
}
document.location.href=s;
return
}


