﻿var xHttp;
function GetXmlHttpObject(){var xmlHttp=null;try{xmlHttp=new XMLHttpRequest();}catch (e){try{xmlHttp=new  ActiveXObject("Msxml2.XMLHTTP");}catch(e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}return xmlHttp;}
function changeOpac(opacity, id) {var object = document.getElementById(id).style; object.opacity = (opacity / 100);object.MozOpacity = (opacity / 100);object.KhtmlOpacity = (opacity / 100);object.filter = "alpha(opacity=" + opacity + ")";}
function changeOpac2(opacity, id) {	var object = document.getElementById(id).style; object.opacity = (opacity / 100);object.MozOpacity = (opacity / 100);object.KhtmlOpacity = (opacity / 100);	object.filter = "alpha(opacity=" + opacity + ")";}

function ShowOffers()
{  
   xHttp=GetXmlHttpObject();
    if (xHttp==null){alert("Your browser does not support Ajax"); return;}
    var UrlStr="OffersHome.aspx";
   	xHttp.onreadystatechange=function()
    {
         if (xHttp.readyState==4)
         {         
            if (xHttp.status==200){document.getElementById("OffersDiv").innerHTML=xHttp.responseText;}
            else{alert("There is techincal problem while retrieving data from server");}
         }
    }

    xHttp.open("GET",UrlStr,true);
    xHttp.send(null); 
}


