function timeStamp()
{
	var now = new Date();
	return Date.UTC(now.getYear(),now.getMonth(),now.getDate(),now.getHours(),now.getMinutes(),now.getSeconds(),now.getMilliseconds());
};

function requestData(sPath, fOnStatus, index)
{
	var reqObject = (window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0"));
	if(reqObject)
	{
		sPath+=(sPath.indexOf("?")!=-1 ? "&" : "?")+"queryUNID="+timeStamp();
		reqObject.open("GET", sPath, true);
		reqObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        reqObject.onreadystatechange = function(){fOnStatus(reqObject, index)};
		reqObject.send(null);
	};
};

AIM = 
{
	TargetInfo : null,
	frame : function(c) 
	{
		var n = 'f' + Math.floor(Math.random() * 99999);
		var d = document.createElement('DIV');
		d.innerHTML = '<iframe style="display:none" src="about:blank" id="'+n+'" name="'+n+'" onload="AIM.loaded(\''+n+'\')"></iframe>';
		document.body.appendChild(d);
		if (c && typeof(c.onComplete) == 'function')document.getElementById(n).onComplete = c.onComplete;
		return n;
	},
	form : function(f, name) 
	{
		f.setAttribute('target', name);
	},
	submit : function(f, c, starget, scontents, etarget, econtents, scallback, ecallback) 
	{
		AIM.form(f, AIM.frame(c));
		TargetInfo = new Array(starget, scontents, etarget, econtents, scallback, ecallback); 
		//if(c && typeof(c.onStart) == 'function')c.onStart(TargetInfo);
		return ((c && typeof(c.onStart) == 'function') ? c.onStart(TargetInfo) : true);
	},
	loaded : function(id)
	{
		var i = document.getElementById(id);
		if (i.contentDocument) 
		{
			var d = i.contentDocument;
		} 
		else if (i.contentWindow) 
		{
			var d = i.contentWindow.document;
		} 
		else 
		{
			var d = window.frames[id].document;
		};

		if (d.location.href == "about:blank")return;
		if (typeof(i.onComplete) == 'function')i.onComplete(d.body.innerHTML, TargetInfo);
	}
};