﻿var requestUrlGetText = "GetText.aspx";

function GetText(idFoto)
{
    var propId = new property();
    propId.Name = "idFoto";
    propId.Value = idFoto;

    //propId.Alert();
    
    AjaxRequest(requestUrlGetText ,"POST",true, new Array(ResponseGetText),propId);
}

function ResponseGetText(xmlResponse)
{
    var TextNode = xmlResponse.getElementsByTagName("textFoto")[0];
    if (TextNode.firstChild != null) {
        $("divFotoText").innerHTML = TextNode.firstChild.nodeValue;
    }
    else {
        $("divFotoText").innerHTML = "";
    }
    
}
