var xmlHttp

var loadstatustext="<FONT style=BACKGROUND-COLOR: #990033 color=#ff0033><STRONG><FONT color=#123B69>&nbsp;Loading....</FONT></STRONG></FONT>";
var areaId
function showMoreVariantDetails(productVariantId, id)
{
	if (productVariantId.length==0 && id.length==0)
	{ 
		return
	}
	areaId = id
	xmlHttp=getHTTPObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	
	var url="products/showMoreVariantDetails.php"
	url=url+"?productVariantId="+productVariantId
	url=url+"&stid="+Math.random()
	xmlHttp.onreadystatechange=getVariantDetails 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)

} 

function getVariantDetails() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{	
		productVariantId = "varientMoreTxt" + areaId
		document.getElementById(productVariantId).innerHTML=xmlHttp.responseText
	} 
} 


