﻿/***********************************************
* Function use :Provide caption to images
* 
* 
***********************************************/
function BigImageCaption(no)
{
    nameArray = new Array();
    var queryString = window.location.href.substring((window.location.href.indexOf('?') + 1));
    var array1 = queryString.split('&'); // Each array element is in format "fieldname=value"
    for(var i = 0; i < array1.length; i++)
    {
    var tempArray = array1[i].split('='); // Separate fieldname and value
//    eval(tempArray[0] + " = \"" + tempArray[1] + "\"");
    eval("nameArray[\"" + tempArray[0] + "\"] = \"" + tempArray[1] + "\"");
    var strfldnm1=(nameArray["fldnme"]);
    }
    
    if((strfldnm1=="DefaultGal") || (strfldnm1==""))
    {
        
        if(no=="1")
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 1";
        else if(no=="2")
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 2";
        else if(no=="3")
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 3";
        else if(no=="4")
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 4";
        else if(no=="5")
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 5";
        else if(no=="6")
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 6";
        else if(no=="7")
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 7";
        else
        document.getElementById("ctl00_ContentDGH_lblCaption").innerHTML="Image 8";
    }

}