function getRequest(strURL,reRenderDiv) {
	sendRequest(strURL,'GET',reRenderDiv);
}

function postRequest(strURL,reRenderDiv) {
	sendRequest(strURL,'POST',reRenderDiv);
}
function sendRequest(strURL,method,reRenderDiv) {

	if(!reRenderDiv)
		reRenderDiv="reRenderArea";

	var xmlHttp;
	
    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
        var xmlHttp = new XMLHttpRequest();
     } else if (window.ActiveXObject) { // IE
   	    var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    	}
    	
  		xmlHttp.open(method, strURL, true);
	    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	    updatepage("<br><br><br><br><br><br><div id='mainarea'><div id='loadingViaAjax'><img src='images/ajax.gif'></div></div>",reRenderDiv);
	    xmlHttp.onreadystatechange = function() {
			        if (xmlHttp.readyState == 4) {
			   	        updatepage(xmlHttp.responseText,reRenderDiv);
		        	}
  		}
    	xmlHttp.send(null);
}
function sendRequestOnly(strURL) {

	var xmlHttp;
	
    if (window.XMLHttpRequest) { // Mozilla, Safari, ...
        var xmlHttp = new XMLHttpRequest();
     } else if (window.ActiveXObject) { // IE
   	    var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    	}
    	
  		xmlHttp.open('GET', strURL, true);
	    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	    
	    xmlHttp.onreadystatechange = function() {
			        if (xmlHttp.readyState == 4) {
			   	        
		        	}
  		}
    	xmlHttp.send(null);
}        
function updatepage(str,reRenderDiv){
	  if(!str){
        window.location="signIn.do";
        }else{
             document.getElementById(reRenderDiv).innerHTML = str ;
       }
}
