function quick_filtr(id,alfa)
{
	$('.boxforsearch').hide();
	$('.wait').show();
	$('.list').hide();
	$.ajax({
   type: "POST",
   url: "list.php",
   data: "alfa="+alfa,
   success: function(msg){
			$('.list').html(msg); 
			$('.list').show();
			$('.wait').hide();
		   	}
 	});
	

	$('.intro').hide(); // hide intro text
	for(i=0; i<35;i++){  // changeg alfa color
		if (i==id) {
				$(".lnk"+i).css("background-color", "red");
				}
			else 	{ 
				$(".lnk"+i).css("background-color", "#201a1a");
					} 
	}
	
	return false;
	}
	

function loadcard(id)
{	

 $.ajax({
   type: "POST",
   url: "card.php",
   data: "id="+id,
   success: function(msg){
	   $('.card').hide(); // hide all card      
      $('#card'+id).html(msg); 
	  $('#card'+id).fadeIn("slow"); // show current card
   }
 });
	
	return false;
	}
	

$var='';

function getkey($k){
	document.getElementById($var).value=document.getElementById($var).value+$k;
	return false;
	}	

function showkeys($str){
	$('.keyboard').slideDown('slow');
	$var=$str;
	$('input').css('background-color','white')
	$('input').css('color','black')
	$('#'+$var).css('background-color','#333')
	$('#'+$var).css('color','white')
	
	return false;
	}
function hidekeys(){
	$('.keyboard').slideUp('slow');
	$('input').css('background-color','white')
	return false;
	}	
	
function del(){
	document.getElementById($var).value='';
	return false;
	}
	
function backspc(){
	$temp=document.getElementById($var).value;
	$count=$temp.length;
	document.getElementById($var).value=$temp.substring(0,$count-1);
	return false;
	}	
