	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 categoryLoad(fromid, showid)
		{			
			var id = fromid;			
			subject_id = showid;			
			document.getElementById(subject_id).innerHtml = '<div><img src="http://support.iyogi.net/images/ajax-loader.gif" height="32" width="32" border="0" /> Loading...</div>';
			http.open("GET", "ajax/php/categorized.php?catid=" +id, true);
			http.onreadystatechange = handleHttpResponse;
			http.send(null);
		}
function pageLoading(fromid, showid, pagename)
		{			
			var id = fromid;			
			subject_id = showid;						
			document.getElementById(subject_id).innerHtml = '<div><img src="http://support.iyogi.net/images/ajax-loader.gif" height="32" width="32" border="0" /> Loading...</div>';
			if (pagename == 'thumsup')
			{
				http.open("GET", "ajax/php/thums.php?up=" +id, true);	
			}
			if (pagename == 'thumsdown')
			{
				http.open("GET", "ajax/php/thums.php?down=" +id, true);
			}		
			if (pagename == 'search_page')
			{
				http.open("GET", "ajax/php/paging.inc.php?page=" +id, true);
			}
			if (pagename == 'sendmessage_question')
			{
				http.open("GET", "ajax/php/messages.inc.php?toid=" +id, true);
			}
			if (pagename == 'questionabuse')
			{
				http.open("GET", "ajax/php/reportabuse.inc.php?toid=" +id, true);
			}
			http.onreadystatechange = handleHttpResponse;
			http.send(null);
		}

/*Tabs Active*/
function byId(id) {	
return document.getElementById ? document.getElementById(id) : document.all[id];
}
var prevLink = "";
function changeActiveStates(ele) {
if (prevLink) byId(prevLink).className = "";
ele.className = 'active';
prevLink = ele.id;
}
/*End*/