﻿// JScript File

var xmlHttp
function GetHttp(XX)
{	var XX = null;
	try 
	{  XX = new XMLHttpRequest(); }
	catch (e)
	{  try
		{  XX = new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e)
		{  XX = new ActiveXObject("Microsoft.XMLHTTP"); }
	}
	return XX;
}

function SlideImg(GalleryID,PhotoID,RowCount,ColCount)
{
    xmlHttp = GetHttp(xmlHttp)
    if (xmlHttp == null) {	
        alert("not support");
        return;
    } 
    
    var obj = document.getElementById('Div');
    
    xmlHttp.onreadystatechange = function() {
        if(xmlHttp.readyState == 4) {
            obj.innerHTML = xmlHttp.responseText;
        }
    } 
    
    var url = "AjaxPhoto/AjaxSlide.aspx?ggid="+GalleryID+"&pid="+PhotoID+"&row="+RowCount+"&col="+ColCount;
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);  
}
