﻿// JScript File

function fnFilldiv()
{
var d = new Date();
 var curr_msec = d.getMilliseconds();

        
        testingdata('webHandler.ashx?pagedata='+curr_msec,fillit);
}


function testingdata(url,Response)
{
if(navigator.appName == "Microsoft Internet Explorer")
    {
	    var xhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	else
	{
        var xhttp = new XMLHttpRequest();
    }
	xhttp.open("GET",url,true);
	
	xhttp.onreadystatechange = 
	function() 
	{
		if (xhttp.readyState == 4 && xhttp.responseText) 
		{
			
			Response(xhttp.responseText);
		}
	}
	xhttp.send(null);
}

function fillit(XML)
{
document.getElementById("captchacode").innerHTML=XML;
}


