// JavaScript Document
var xmlHttpFecha;

function CargarFecha()
{ 
	xmlHttpFecha=GetXmlHttpObject();
	if (xmlHttpFecha==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	} 
	var url="clases/getFecha.asp";
	url=url+"?sid="+Math.random();
	xmlHttpFecha.onreadystatechange=fechaStateChanged;
	xmlHttpFecha.open("GET",url,true);
	xmlHttpFecha.send(null);
}

function fechaStateChanged() 
{ 
	if (xmlHttpFecha.readyState==4)
	{ 
		var holder = document.getElementById("hldFecha");
		if (holder != undefined) {
			//alert(xmlHttpFecha.responseText);
			holder.innerHTML=xmlHttpFecha.responseText;
		}
	}
}

function GetXmlHttpObject()
{
	var xmlHttpObject=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttpObject=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttpObject=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttpObject=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttpObject;
}

