function ajanlat(id){
  $.get("index.php","mod=cart&add="+id,function(html){
    $(".er").html(html);
    $(".er").fadeIn("normal");
    setTimeout(function(){
        $(".er").fadeOut("normal");
    },5000);
  },"html");
}

$(function(){
    function iefixes(){
        var ids = $(this).attr("id");
        var idk =ids.split("_");
        var id=idk[1];
        $(".darab").unbind("blur");
            $.get("index.php","mod=cart&set="+id+"&db="+$(this).val(),
            function(html){
                $(".chx").html(html);
                $(".darab").bind("blur",iefixes);
            },"html");
        return true;
    }

    $.get("index.php","",null,"html");

    $(".er").hide();
    $(".darab").bind("blur",iefixes);

    $("#ok").bind("click",function(){
        $.get("index.php","ajax=1&mod=hirlevel&"+$("#hlf").serialize(),function(html){
            $("#hd").html(html);
        },"html");
      return false;
    });

    $(".termtabla tr td").not(".t1").each(function()
    {
        //$(this).hide();
    });

    $(".termtabla tr td").each(function()
    {
        s = $(this).html();
        s = new String(s);
        if ( s.indexOf("aaa")!=-1  ){$(this).show();}
    });



    var s = document.location.toString();
    $("a").each(function(){
      if ( s.indexOf($(this).attr("href"))!=-1 )
      {
        $(this).parents("*").each(function()
        {$(this).show();});
      }
    });

//    $(".hidden").each(function(){
//        $(this).show();}
//    );
//    $(".aaa").parents("*").show();
//    $(".aaa").children().each(
//      function(){$(this).show()}
//    );
/*    while(x)
    {
      $(x).each(function(){$(this).show()});
      x=$(x).parent();
    }*/
  }
);
