// JavaScript Document

var xmlHttpAlbum

function printAlbum(album,nombre) //up, down, category
{  			
	xmlHttpAlbum=GetXmlHttpObject()
	if (xmlHttpAlbum==null)
	 {
		alert ("Browser does not support HTTP Request")
		return
	 }
	 
	var url="printAlbum.php"
	url=url+"?album_id="+album
	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttpAlbum.onreadystatechange=stateChangedAlbum
	xmlHttpAlbum.open("GET",url,true)
	xmlHttpAlbum.send(null)

}

function printAlbumes(tipo) //up, down, category
{  			
	xmlHttpAlbum=GetXmlHttpObject()
	if (xmlHttpAlbum==null)
	 {
		alert ("Browser does not support HTTP Request")
		return
	 }
	 
	var url="printShopping.php"
	url=url+"?page="+page
	url=url+"&categoria="+categoria
	url=url+"&lan="+lan	
	url=url+"&tipo="+tipo
	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttpAlbum.onreadystatechange=stateChangedShop
	xmlHttpAlbum.open("GET",url,true)
	xmlHttpAlbum.send(null) 

}


function stateChangedAlbum() 
{ 	
	if (xmlHttpAlbum.readyState==4 || xmlHttpAlbum.readyState=="complete")
	 { 		 		
	 	document.getElementById("albumes").innerHTML=xmlHttpAlbum.responseText
	 }
}


