
	subject_id = '';
	function handleHttpResponse() {
		if (http.readyState == 4) {
			if (subject_id != '') {
				document.getElementById(subject_id).innerHTML = http.responseText;
			}
		}
	}
	function getHTTPObject() {
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
			}
		@else
		xmlhttp = false;
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object
	
	function $(elementID) {
		return document.getElementById(elementID);
	}

	function HideToolTip(c) {
		for (i=0;i<c;i++) {
			if ($('tooltip' + i) != "undefined") {
				$('tooltip' + i).style.visibility = 'hidden';
			}
		}
	}

	function ShowToolTip(n) {
		if ($('tooltip' + n) != "undefined") {
			$('tooltip' + n).style.visibility = 'visible';
		}
	}

	function GetRatesByGroup(div_id,group,type) {
		$(div_id).innerHTML = '<center><br/>Please wait...</center><br/><br/>';
		subject_id = div_id;
		http.open("GET", "/billing_2.0/j_exec/my/rates/ratesbygroup.php?Group=" + escape(group) + "&Type=" + escape(type), true);
		http.onreadystatechange = handleHttpResponse;
		http.send(null);
	}	
