var xmlHttp
function showRingtones(str,imgName)
{ 
	/*if(imgName=="Tab1")
	{
		document.getElementById("Tab1").src="images/mainimage/ajax_btns/40midi_over.gif";
		document.getElementById("Tab2").src="images/mainimage/ajax_btns/16midi_up.gif";
		document.getElementById("Tab3").src="images/mainimage/ajax_btns/16mmf_up.gif";
		document.getElementById("Tab4").src="images/mainimage/ajax_btns/mono_up.gif";
		document.getElementById("Tab5").src="images/mainimage/ajax_btns/rttl_up.gif";
	}
	else if(imgName=="Tab2")
	{
		document.getElementById("Tab2").src="images/mainimage/ajax_btns/16midi_over.gif";
		document.getElementById("Tab1").src="images/mainimage/ajax_btns/40midi_up.gif";
		document.getElementById("Tab3").src="images/mainimage/ajax_btns/16mmf_up.gif";
		document.getElementById("Tab4").src="images/mainimage/ajax_btns/mono_up.gif";
		document.getElementById("Tab5").src="images/mainimage/ajax_btns/rttl_up.gif";
	}
	else if(imgName=="Tab3")
	{
		document.getElementById("Tab3").src="images/mainimage/ajax_btns/16mmf_over.gif";
		document.getElementById("Tab2").src="images/mainimage/ajax_btns/16midi_up.gif";
		document.getElementById("Tab1").src="images/mainimage/ajax_btns/40midi_up.gif";
		document.getElementById("Tab4").src="images/mainimage/ajax_btns/mono_up.gif";
		document.getElementById("Tab5").src="images/mainimage/ajax_btns/rttl_up.gif";
	}
	else if(imgName=="Tab4")
	{
		document.getElementById("Tab4").src="images/mainimage/ajax_btns/mono_over.gif";
		document.getElementById("Tab2").src="images/mainimage/ajax_btns/16midi_up.gif";
		document.getElementById("Tab3").src="images/mainimage/ajax_btns/16mmf_up.gif";
		document.getElementById("Tab1").src="images/mainimage/ajax_btns/40midi_up.gif";
		document.getElementById("Tab5").src="images/mainimage/ajax_btns/rttl_up.gif";
	}
	else if(imgName=="Tab5")
	{
		document.getElementById("Tab5").src="images/mainimage/ajax_btns/rttl_over.gif";
		document.getElementById("Tab2").src="images/mainimage/ajax_btns/16midi_up.gif";
		document.getElementById("Tab3").src="images/mainimage/ajax_btns/16mmf_up.gif";
		document.getElementById("Tab4").src="images/mainimage/ajax_btns/mono_up.gif";
		document.getElementById("Tab1").src="images/mainimage/ajax_btns/40midi_up.gif";
	}
	*/
	if(imgName=="Tab1")
	{
		document.getElementById("Tab1").className="current";
		document.getElementById("Tab2").className="";
		document.getElementById("Tab3").className="";
		document.getElementById("Tab4").className="";
		document.getElementById("Tab5").className="";
	}
	else if(imgName=="Tab2")
	{
		document.getElementById("Tab2").className="current";
		document.getElementById("Tab1").className="";
		document.getElementById("Tab3").className="";
		document.getElementById("Tab4").className="";
		document.getElementById("Tab5").className="";
	}
	else if(imgName=="Tab3")
	{
		document.getElementById("Tab3").className="current";
		document.getElementById("Tab2").className="";
		document.getElementById("Tab1").className="";
		document.getElementById("Tab4").className="";
		document.getElementById("Tab5").className="";
	}
	else if(imgName=="Tab4")
	{
		document.getElementById("Tab4").className="current";
		document.getElementById("Tab2").className="";
		document.getElementById("Tab3").className="";
		document.getElementById("Tab1").className="";
		document.getElementById("Tab5").className="";
	}
	else if(imgName=="Tab5")
	{
		document.getElementById("Tab5").className="current";
		document.getElementById("Tab2").className="";
		document.getElementById("Tab3").className="";
		document.getElementById("Tab4").className="";
		document.getElementById("Tab1").className="";
	}

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="ringtones_reader.php?id="+str;
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
	document.getElementById("ajaxcontentarea").innerHTML=xmlHttp.responseText; 
 } 
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
