function makeRequest(div, url) {
	
	            var http_request = false;
            
			d = document.getElementById(div);
			
    		  
		
		try {
			  http_request = new XMLHttpRequest();
			} 
			catch (trymicrosoft) { //It turns out that Microsoft supports Ajax, but calls its version of XMLHttpRequest something different. In fact, it calls it several different things. If you're using a newer version of Internet Explorer, you need to use an object called Msxml2.XMLHTTP; some older versions of Internet Explorer use Microsoft.XMLHTTP. You need to support these two object types (without losing the support you already have for non-Microsoft browsers).
			  try {
				http_request = new ActiveXObject("Msxml2.XMLHTTP");
			  } 
			  catch (othermicrosoft) {
				try {
				  http_request = new ActiveXObject("Microsoft.XMLHTTP");
				} 
				catch (failed) {
				  http_request = false;
				}
			  }
			}
			//    many older browsers (believe it or not, people are still using old versions of Netscape Navigator) don't support XMLHttpRequest and you need to let those users know that something has gone wrong.
			if (!http_request)
			  alert("Error initializing XMLHttpRequest!");
        http_request.onreadystatechange = function() {  alertContents(div,http_request); };
        http_request.open('GET', url, true);
        http_request.send(null);
    }
	

    function alertContents(div,http_request) {
		//alert(http_request.status);
        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
				//alert('status');
				//alert(http_request.responseText);
                result=http_request.responseText;
				        
                var divm = document.getElementById(div);
					
				divm.innerHTML = result;
				//alert(result);
				//alert(divm.innerHTML);
            } else {
                alert('There was a problem with the request---.');
            }
        }

    }
function makeRequestNoDiv(url) {
	            var http_request = false;
       
			//d = document.getElementById(div);
			
    		  //  d.innerHTML = "<table border='0' width='100%' cellspacing='2' bgcolo='#ff9900'><tr bgolor='#ffebd7' height=80><td valign=top><TABLE WIDTH='100%' valign=top border=0><TR><TD align=center><IMG SRC='/images/wait.gif' WDTH='90' HEGHT='20' BORDER='0' ALT=''><br>Please Wait</TD></TR></TABLE></TD></TR></TABLE>";
    		   //alert(url);
			   
		    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } 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('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        http_request.onreadystatechange = function() { alertContentsNoDiv(http_request); };
        http_request.open('GET', url, true);
        http_request.send(null);
    }
function alertContentsNoDiv(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
                result=http_request.responseText;
				 
                //var divm = document.getElementById("Msg");
				//alert(result);
				//divm.innerHTML = result;
            } else {
                alert('There was a problem with the request---.');
            }
        }

    }
function makeRequestNoDivCall(url) {
	            var http_request = false;
        
			//d = document.getElementById(div);
			
    		  //  d.innerHTML = "<table border='0' width='100%' cellspacing='2' bgcolo='#ff9900'><tr bgolor='#ffebd7' height=80><td valign=top><TABLE WIDTH='100%' valign=top border=0><TR><TD align=center><IMG SRC='/images/wait.gif' WDTH='90' HEGHT='20' BORDER='0' ALT=''><br>Please Wait</TD></TR></TABLE></TD></TR></TABLE>";
    		   //alert(url);
			   
		    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } 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('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        http_request.onreadystatechange = function() { alertContentsNoDivCall(http_request); };
        http_request.open('GET', url, true);
        http_request.send(null);
    }
function alertContentsNoDivCall(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
                result=http_request.responseText;
				//alert(result);
				 if(result==1)
				 {
					
					callPopUp("exitJob");
					
				}
				else if(result==2)
				{
					Dialog.closeInfo();
				}
				else 
				{
					document.getElementById("apply_date").innerHTML=result;
					callPopUp("applyJob");
				}
                //var divm = document.getElementById("Msg");
				//alert(result);
				//divm.innerHTML = result;
            } else {
                alert('There was a problem with the request---.');
            }
        }

    }

function makeRequestSlider(div, url) {
	
	            var http_request = false;
            
			d = document.getElementById(div);
			
    		  //  d.innerHTML = "<table border='0' width='100%' cellspacing='2' bgcolo='#ff9900'><tr bgolor='#ffebd7' height=80><td valign=top><TABLE WIDTH='100%' valign=top border=0><TR><TD align=center><IMG SRC='/images/wait.gif' WDTH='90' HEGHT='20' BORDER='0' ALT=''><br>Please Wait</TD></TR></TABLE></TD></TR></TABLE>";
    		   //alert(d);
/*   
		    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } 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('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
		*/
		
		
		try {
			  http_request = new XMLHttpRequest();
			} 
			catch (trymicrosoft) { //It turns out that Microsoft supports Ajax, but calls its version of XMLHttpRequest something different. In fact, it calls it several different things. If you're using a newer version of Internet Explorer, you need to use an object called Msxml2.XMLHTTP; some older versions of Internet Explorer use Microsoft.XMLHTTP. You need to support these two object types (without losing the support you already have for non-Microsoft browsers).
			  try {
				http_request = new ActiveXObject("Msxml2.XMLHTTP");
			  } 
			  catch (othermicrosoft) {
				try {
				  http_request = new ActiveXObject("Microsoft.XMLHTTP");
				} 
				catch (failed) {
				  http_request = false;
				}
			  }
			}
			//    many older browsers (believe it or not, people are still using old versions of Netscape Navigator) don't support XMLHttpRequest and you need to let those users know that something has gone wrong.
			if (!http_request)
			  alert("Error initializing XMLHttpRequest!");
        http_request.onreadystatechange = function() {  alertContentsSlider(div,http_request); };
        http_request.open('GET', url, true);
        http_request.send(null);
    }
	

    function alertContentsSlider(div,http_request) {
		
        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
				//alert('status');
				//alert(http_request.responseText);
                result=http_request.responseText;
				var divm = document.getElementById(div);
					//alert(result);
				divm.innerHTML = result;
				if(result!='')
				{
					callSlide();
				}
            } else {
                alert('There was a problem with the request---.');
            }
        }

    }

function makeRequestNoDivSaf(url) {
	            var http_request = false;
        
			//d = document.getElementById(div);
			
    		  //  d.innerHTML = "<table border='0' width='100%' cellspacing='2' bgcolo='#ff9900'><tr bgolor='#ffebd7' height=80><td valign=top><TABLE WIDTH='100%' valign=top border=0><TR><TD align=center><IMG SRC='/images/wait.gif' WDTH='90' HEGHT='20' BORDER='0' ALT=''><br>Please Wait</TD></TR></TABLE></TD></TR></TABLE>";
    		   //alert(url);
			   
		    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } 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('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        http_request.onreadystatechange = function() { alertContentsNoDivSaf(http_request);};
        http_request.open('GET', url, true);
        http_request.send(null);
    }
function alertContentsNoDivSaf(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
                result=http_request.responseText;
				Dialog.info(result, {className:"alphacube", width:595, height:560,  showProgress: false});
				//alert(document.getElementById(str).innerHTML);
				
            } else {
                alert('There was a problem with the request---.');
            }
        }

    }
