function LoadNewImage(){strCurrentIndex=document.getElementById("txtSecureImageIndex").value;xmlHttp2em=GetXmlHttpObject();url="/newImage.aspx?id="+strCurrentIndex+"&sid="+Math.random();xmlHttp2em.onreadystatechange=LoadNewImage2;xmlHttp2em.open("GET",url,true);xmlHttp2em.send(null)}function LoadNewImage2(){if(xmlHttp2em.readyState==4||xmlHttp2em.readyState=="complete"){varRequestChunk=xmlHttp2em.responseText;jsIndex=varRequestChunk.indexOf('##@',0);jsValue=varRequestChunk.substring(0,jsIndex);varRequestChunk=varRequestChunk.substring(jsIndex+3);document.getElementById("secImage").innerHTML=jsValue;jsIndex=varRequestChunk.indexOf('##@',0);jsValue=varRequestChunk.substring(0,jsIndex);varRequestChunk=varRequestChunk.substring(jsIndex+3);document.getElementById("txtSecureImageIndex").value=jsValue}}
