/*
* js file used to execute the action script
* on ajax call
* to add a prticular product to the bouquet
*/
function ajaxFunctionBouquet(iid,icode,iname,mrp,qty,totamt,ipath)
{
var xmlHttp;
var url="ajax_add_bouquet.php?iid="+iid+"&icode="+icode+"&iname="+iname+"&mrp="+mrp+"&qty="+qty+"&totamt="+totamt+"&ipath="+ipath;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  //alert(xmlHttp.onreadystatechange)
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
	    str = xmlHttp.responseText;
	  	var avilablewidth=0;
		var screenWidth=document.body.clientWidth;
		if (screenWidth<1003)
		{
		avilablewidth=20;
		}
		else
		{
		avilablewidth=(screenWidth-363)/2;
		}
      document.getElementById("dv_bouquet").style.left=Math.round(avilablewidth) + "px";
	  document.getElementById("dv_bouquet").style.top=245 + "px";
	  document.getElementById("dv_bouquet").style.display="block";
	  document.getElementById("dv_bouquet").innerHTML=str;
      }
    }
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }
  

