function show_that(that){
	document.getElementById(that).style.display='block';
}
function hide_that(that){
	document.getElementById(that).style.display='none';
}
function showme(that){
	if(document.getElementById(that).style.display=="none"){
		document.getElementById(that).style.display="block";

	}else{
		document.getElementById(that).style.display="none";
	}
}

function AddToBasket(item){
	
	new Ajax.Request('public/ajax/ajax_functions.php?action=basket&item='+item+'&quantify=2', {
	  onComplete: function(transport) {
	   if (200 == transport.status){
	      
	     }else{
	      	
	      	alert('Could not add those item tho the cart...');
	      }
	  }
	});
}

function SendMail(){
	var email = $F('mb-name');
	var name  = $F('mb-ttsd-ttsd');
	new Ajax.Updater('txtdp', 'public/public/ajax_functions.php?action=mail&email='+email+'&name='+name, {
		method: 'get',   insertion: Insertion.After, evalScripts:true
		}
	);
}

