﻿function doCallbackHtml(id, param, callback)
{
                  var postData = "__CALLBACKID=" + escape(id) +
                  "&__CALLBACKPARAM=" +
                  escape(param) +
                  "&__VIEWSTATE=&";
                  PostCallback(document.URL, postData,callback);
}            
function PostCallback(URL,postData,CompleteMethod) 
{
    var xmlHttp;
    try 
    {
        xmlHttp = new XMLHttpRequest();
    } catch (e) {
        try {
            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {
                alert("This sample only works in browsers with AJAX support"); 
                return false;
            }
        }
    }
    xmlHttp.onreadystatechange=function()
    {
        if(xmlHttp.readyState == 4)
        {
              CompleteMethod(xmlHttp.responseText);
        }
    }
    xmlHttp.open("POST", URL, true);
    xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    xmlHttp.send(postData);
}
function ResizeImages(){
 var allimages =document.getElementsByName("tableimage");
 var imageObj;
 for (var i = 0; (imageObj = allimages[i]) != null; i++)
 {
 
var elem = document.getElementById(imageObj.id);
w = elem.width;
h = elem.height;
imageObj.width=w*0.7;
imageObj.height=h*0.7;
 
}
}



