  
   
function showhide(id)
{
  $('content').innerHTML="<div class='wait'>&nbsp;</div>";
  if($("g"+id)!=null){
    $("g"+id).className=($("g"+id).className=='n1'?'n2':'n1');
  }
  var myAjax=new Ajax.Request('index.php',{method:'get',parameters:'mod=group&lang='+lang+'&id='+id,onComplete:ShowResponse});
   var thelocation = document.location.toString();
   var thelocationsplit = thelocation.split('#');
   document.location = thelocationsplit[0] + '#g:'+id;
//   dhtmlHistory.add('g'+id);  
  return false;
}

function ShowResponse(response){
  $('content').innerHTML=response.responseText;
  $('content').className='';;      
}

function loadprod(id){
  $('content').innerHTML="<div class='wait'>&nbsp;</div>";
  var myAjax=new Ajax.Request('index.php',{method:'get',parameters:'mod=prod&lang='+lang+'&id='+id,onComplete:ShowResponse});
   var thelocation = document.location.toString();
   var thelocationsplit = thelocation.split('#');
   document.location = thelocationsplit[0] + '#p:'+id;
//   dhtmlHistory.add('p'+id);  
  return false;
}
function openit(a)
{
  window.open(a,'Kép','','width=800,height=600,statusbar=false,toolbar=false,menubar=false');
}

function addtocart(id)
{
  var myAjax=new Ajax.Request('index.php',{method:'get',parameters:'mod=cart&add=1&id='+id});
  if(lang=='en')
  {
    $('c'+id).innerHTML="The product was added to the list sucessfully.&nbsp;<a href='index.php?mod=online&lang=en' title='Ajánlatkérés'>Step to the &quot;request&quot; page.</a>";
  }
  else{
    $('c'+id).innerHTML="Sikeresen hozzáadta a terméket a listához!&nbsp;<a href='index.php?mod=online&lang='"+lang+"title='Ajánlatkérés'>Tovább az ajánlatkéréshez&raquo;</a>";
  
  }
 
  return false;
}

function torol(id)
{
  $('lista').innerHTML='';
  var myAjax=new Ajax.Request('index.php',{method:'get',parameters:'mod=online&del='+id,onComplete:ShLista});
  return false;
}

function ShLista(r)
{
  $('lista').innerHTML=r.responseText;
}

