
	source_id = '';
	subject_id = '';
	browser = '';
	var http;
	function handleHttpResponse() {
		if (http.readyState == 4) {
			if (subject_id != '') {
				
				//alert(http.responseText);
				fillBox(http.responseText);
				
			}
		}
	}
	function fillBox(filltext)
	{
		var val =document.getElementById(subject_id);
			
		if(browser=='moz'){
				document.getElementById(subject_id).innerHTML = filltext;
				}else
				{
					
					var sOpts = "<select name='"+val.name+"' id='"+val.id+"'width='200'>"
								
					sOpts += http.responseText;
					
					document.getElementById(subject_id).outerHTML = sOpts  + "</SELECT>";
					
				}
		
		document.getElementById('show_prog').innerHTML="";
		
	}
	function handleReportResponse() {
		//alert(http.readyState);
		if (http.readyState == 4) {
			
				
				fillout();
				
			
		}
		
	}
	function getHTTPObject() {
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				browser = 'ie';
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
					browser = 'ie';
				} catch (E) {
					xmlhttp = false;
				}
			}
		@else
		xmlhttp = false;
		@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
				browser = 'moz'
			} catch (e) {
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	
http = getHTTPObject(); // We create the HTTP Object


