//**********************************************************************
// NOTE:  AjaxCommon.js is required for some of the functions defined
// in this file to run.
//**********************************************************************


//**********************************************************************
// Name			: storeViewParams
// Description	: If the browser supports Ajax, sends parameter values
//			      to the server which will be stored and used to process 
//				  the subsequent view promo request.
// Input		: reqParamsString - the string of parameters to be stored
// Output		: N/A
//**********************************************************************
function storeViewParams(reqParamsString) {	
	var targetURL = "/aev/setPromoView.action";
    var xmlHttpRequest = createXMLHttpRequest();
    
    if (xmlHttpRequest != null) {
	    xmlHttpRequest.open("POST", targetURL, false);
	    xmlHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	    xmlHttpRequest.send(reqParamsString);	    
    }    
}
