function makeRequest(url) {
	http_request = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			// set type accordingly to anticipated content type
			//http_request.overrideMimeType('text/xml');
			http_request.overrideMimeType('text/html');
		}
	} else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
			http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!http_request) {
		alert('Cannot create XMLHTTP instance');
		return false;
	}
	http_request.onreadystatechange = processDetailPage;
	http_request.open('GET', url, true);
	http_request.send(null);
}

iX=630, iY=450


function processDetailPage() {
	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			result = http_request.responseText;
			
			var scrOfX = 0, scrOfY = 0;
			if( typeof( window.pageYOffset ) == 'number' ) {
				//Netscape compliant
				scrOfY = window.pageYOffset;
				scrOfX = window.pageXOffset;
			} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
				//DOM compliant
				scrOfY = document.body.scrollTop;
				scrOfX = document.body.scrollLeft;
			} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
				//IE6 standards compliant mode
				scrOfY = document.documentElement.scrollTop;
				scrOfX = document.documentElement.scrollLeft;
			}
			
			var myWidth = 0, myHeight = 0;
			if( typeof( window.innerWidth ) == 'number' ) {
				//Non-IE
				myWidth = window.innerWidth;
				myHeight = window.innerHeight;
			} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
				//IE 6+ in 'standards compliant mode'
				myWidth = document.documentElement.clientWidth;
				myHeight = document.documentElement.clientHeight;
			} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
			
			
			if (document.all) {
				/* the following is only available after onLoad */
				var w = document.body.clientWidth;
				var h = document.body.clientHeight;
			}
				else if (document.layers) {
				var w = window.innerWidth;
				var h = window.innerHeight;
			}
			
			var popW = 650, popH = 400;
			
			var POS_LEFT = (w-popW)/2;
			var POS_TOP = (h-popH)/2;
			
			//alert("scrOfY: " + scrOfY);
			
			var get_top;
			var get_top1;
			var get_width;
			var get_width1;
			get_top = scrOfY + 50;
			get_top1 = get_top + "px";
			get_width = POS_LEFT;
			get_width1 = get_width + "px";
			
			document.getElementById("detail").innerHTML = result;//returnCalendar(sCALENDAR_DATE, arr);
			document.getElementById('detail').style.top=get_top1;
			document.getElementById('detail').style.left=get_width1;
			//document.getElementById('detail').zindex=200;
			document.getElementById('detail').style.visibility="visible";
			document.getElementById('overlay_she').style.visibility="visible";
			document.getElementById('overlay_she').style.height=document.body.clientHeight + 100 + 'px';
		} else {
			alert('There was a problem with the request.');
		}
	}
}


var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HE' + 'AD>\n<BODY bgcolor=#FFFFFF>\n<table bgcolor=#FFFFFF align="center" width="585" cellpadding="0" cellspacing="10" border="0">\n<tr>';
		
		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
				html += "</tr>\n</table>";
		}
		else
		{
			//alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printSpecial", "toolbar=0,menubar=1,resizable=1,scrollbars=1,width=675,height=500");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print feature is only available in modern browsers.");
	}
}