// JavaScript Document
	//var domain = 'http://localhost/corporatemaharaja/siteadmin/'; //set domain  
//	var loading_img = 'images/loading.gif';//set image path  
	var loading_img = '';//set image path  
	var loading_msg = ' Loading Data....';//set loading message  
	var xmlhttp_obj = false;
	
	//create the XMLHttpRequest
	function xmlhttp()
	{
		if (window.XMLHttpRequest) // if Mozilla, Safari etc  
		{
			xmlhttp_obj = new XMLHttpRequest();
		}
		else if (window.ActiveXObject)  // if IE  
		{
			try
			{
				xmlhttp_obj = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
				try
				{
					xmlhttp_obj = new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e)
				{
				}  
			}  
		}
		else
		{
			xmlhttp_obj = false;
		}
		return xmlhttp_obj;
	}   //get content via GET

	function getcontent(url, containerid)
	{
		var xmlhttp_obj = xmlhttp();
		document.getElementById(containerid).innerHTML = loading_msg;
		xmlhttp_obj.onreadystatechange = function(){ loadpage(xmlhttp_obj, containerid); }
		xmlhttp_obj.open('GET', url, true);
		xmlhttp_obj.send(null);
	}	
	function getJobDescription(url, containerid)
	{
		var xmlhttp_obj = xmlhttp();
		
		xmlhttp_obj.onreadystatechange = function(){ loadJobDescription(xmlhttp_obj, containerid); 		}
		xmlhttp_obj.open('GET', url, true);
		xmlhttp_obj.send(null);
	}	
	
	function getJobs(url, containerid)
	{
		var xmlhttp_obj1 = xmlhttp();
		xmlhttp_obj1.onreadystatechange = function(){ loadpage(xmlhttp_obj1, containerid); }
		xmlhttp_obj1.open('GET', url, true);
		xmlhttp_obj1.send(null);
	}	
	
	function getResult(url, containerid)
	{
		var xmlhttp_obj = xmlhttp();
		document.getElementById(containerid).innerHTML = '<img src="' + loading_img + '" />' + loading_msg;
		xmlhttp_obj.onreadystatechange = function(){ loadpage(xmlhttp_obj, containerid); }
		xmlhttp_obj.open('GET', url, true);
		xmlhttp_obj.send(null);
	}

	function loadpage(xmlhttp_obj, containerid)
	{
		if ( xmlhttp_obj.readyState == 4 && xmlhttp_obj.status == 200 )
		{
			//document.getElementById(containerid).innerHTML = xmlhttp_obj.responseText;
			
			eval(xmlhttp_obj.responseText);
		}
	}
	function loadJobDescription(xmlhttp_obj1, containerid)
	{
		if ( xmlhttp_obj1.readyState == 4 && xmlhttp_obj1.status == 200 )
		{
			document.getElementById(containerid).value = xmlhttp_obj1.responseText;
		}
	