//Javascript Document
/*
 *
 *
 *DO NOT EDIT THE PAGE
 *
 *
 */

function pageAction(page2go,params2know,comp2fill,callBackFunction)	{
	var ajaxRequest;  // The variable that makes Ajax possible!

	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				nav_response = 'Sorry, Page Cannot be displayed';
				callBackFunction(nav_response,comp2fill);
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			nav_response = new String(ajaxRequest.responseText);
			nav_response = nav_response.replace(/^\s+|\s+$/g,"");
			callBackFunction(nav_response,comp2fill);
		}
	}
	ajaxRequest.open("POST", page2go, true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
	ajaxRequest.setRequestHeader("Content-Length", params2know.length);
	ajaxRequest.send(params2know); 
}

function navigateGo(page2go,comp2fill,params2know,callBackFunction,formname)	{
	var ajaxRequest;  // The variable that makes Ajax possible!

	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				nav_response = 'Sorry, Page Cannot be displayed';
				callBackFunction(nav_response,comp2fill,formname);
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			nav_response = new String(ajaxRequest.responseText);
			nav_response = nav_response.replace(/^\s+|\s+$/g,"");
			callBackFunction(nav_response,comp2fill,formname);
		}
	}
	ajaxRequest.open("POST", page2go, true);
	ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
	ajaxRequest.setRequestHeader("Content-Length", params2know.length);
	ajaxRequest.send(params2know); 
}