// JavaScript Document
var url = "album_details.php?";

function shoppingCart(){
	
	var qry_str = "action=view_cart";
	http.open("GET",url+qry_str,true)
	http.onreadystatechange = handleResponse;
	http.send(null);
}

function dispAlbum(scr){
	
	var qry_str = "action=album&screen="+scr;
	http.open("GET",url+qry_str,true)
	http.onreadystatechange = handleResponse;
	http.send(null);
}
function addCart(album_id,scr){
	
	var qry_str = "action=add_cart&album_id="+album_id+"&screen="+scr;
	http.open("GET",url+qry_str,true)
	http.onreadystatechange = handleResponse;
	http.send(null);
}
function delAlbum(id){

	var qry_str = "action=delete_album&id="+id;
	http.open("GET",url+qry_str,true)
	http.onreadystatechange = handleResponse;
	http.send(null);
}

function buyAllTrack(user_id,scr){

	var qry_str = "action=add_cart_all&user_id="+user_id+"&screen="+scr;
	http.open("GET",url+qry_str,true)
	http.onreadystatechange = handleResponse;
	http.send(null);
}
	function handleResponse()
	{
		if(http.readyState == 4 && http.status == 200)
		{
			var result = http.responseText;
			document.getElementById('album_details').innerHTML = result;
		}
	}
	function checkCountyAd(county_value)
	{
		//	check if page running in register page
		if(current_querystring == "12")
		{
			if(county_value != "")
			{
				http.open("GET",url+county_value,true)
				http.onreadystatechange = handleResponse;
				http.send(null);
			}
		}
	}
	function getHTTPRequest()
	{
		var xm


	}

