function GetXmlHttpObject(handler)

{

    var objXMLHttp=null

    if (window.XMLHttpRequest)

    {

        objXMLHttp=new XMLHttpRequest()

    }

    else if (window.ActiveXObject)

    {

        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")

    }

    return objXMLHttp

}

 

function col(divID,qStr)

{
divname = divID;
                      

    
    xmlHttp=GetXmlHttpObject();

    if (xmlHttp==null)

    {

        alert ("Browser does not support HTTP Request");

        return;

    }

   //document.getElementById(divname).value=qStr;

    url='also.php?products_id='+qStr;

           // alert(url);

    xmlHttp.onreadystatechange=stateChanged;

    xmlHttp.open("GET",url,true) ;

    xmlHttp.send(null);

}

function col2(divID,qStr)

{
divname = divID;
                      
 
    xmlHttp=GetXmlHttpObject();

    if (xmlHttp==null)

    {

        alert ("Browser does not support HTTP Request");

        return;

    }

   //document.getElementById(divname).value=qStr;

    url='moreideas.php?products_id='+qStr;

            //alert(url);

    xmlHttp.onreadystatechange=stateChanged;

    xmlHttp.open("GET",url,true) ;

    xmlHttp.send(null);

}


 

function stateChanged()

{

    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")

    {

           

            document.getElementById('also').innerHTML= xmlHttp.responseText;
           // document.getElementById('more').innerHTML= xmlHttp.responseText;

    }

    else {

            //alert(xmlHttp.status);

    }

}
