function ShowAjaxResult(str1,TargetElement,PageName,iLocation,bSecure)
{
	//alert(str1+" . "+TargetElement+" . "+PageName);
	
	if (str1.length==0)
	  { 
	  //document.getElementById("IdeaBulb").innerHTML="";
	  document.getElementById(TargetElement).innerHTML="";
	  return;
	  }
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	  
	return;
	//alert(iLocation);
	//document.getElementById('IdeaBulb').style.top = '600px';
	//alert(document.getElementById('IdeaBulb').style.top.value);
	
	var object = document.getElementById('GalleryMenu');
	//object.style.top = ""+iLocation+"px";
	
	//alert(object.style.top);
	
	var url=PageName;
	url=url+"?pid="+str1;
	url=url+"&secure="+bSecure+"&sid="+Math.random();
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{ 
	//var object = document.getElementById("IdeaBulb");
	//object.style.top = "440px";
	//alert(".");
	document.getElementById("GalleryMenu").innerHTML=xmlHttp.responseText;
	}
} 

function ShowAjaxOurPrice(str1,TargetElement,bSecure)
{
	//alert(str1+" . "+TargetElement+" . "+bSecure);
	
	if (str1.length==0)
	  { 
	  document.getElementById(TargetElement).innerHTML="";
	  return;
	  }
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	  
	//return;
	
	//var object = document.getElementById('GalleryMenu');	
	//var url=PageName;
	var url = "/includes/ajax_price.asp"
	url=url+"?"+str1;
	url=url+"&secure="+bSecure+"&sid="+Math.random();
	//alert(url);
	xmlHttp.onreadystatechange=stateChangedOurPrice;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChangedOurPrice() 
{ 
	if (xmlHttp.readyState==4)
	{ 
	document.getElementById("OurPrice").innerHTML=xmlHttp.responseText;
	}
} 


function ShowAjaxSizeDescription(str1,TargetElement,bSecure)
{
	//alert(str1+" . "+TargetElement+" . "+bSecure);
	
	if (str1.length==0)
	  { 
	  document.getElementById(TargetElement).innerHTML="";
	  return;
	  }
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	  
	//return;
	
	//var object = document.getElementById('CustomerSizeChoice');	
	//var url=PageName;
	var url = "/includes/ajax_size.asp"
	url=url+"?"+str1;
	url=url+"&secure="+bSecure+"&sid="+Math.random();
	//alert(url);
	xmlHttp.onreadystatechange=stateChangedSizeDescription;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChangedSizeDescription() 
{ 
	if (xmlHttp.readyState==4)
	{ 
	document.getElementById("CustomerSizeChoice").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;
}

