/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Checkout One :: alteredCart.com
| All code developed by Bill Brewer
| Copyright (c)2008 alteredCart            
| Bill Brewer <bill@alteredcart.com>   
| All rights reserved.
| This code is licensed for use on a single server.
| This code is licensed for use by the original purchaser only.                         
| Full license :: www.alteredcart.com/license.php
\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

// Retrieves the XMLHttpRequest object //
function createHttpRequestObject(){
	var xmlHttp;
		
	if (window.XMLHttpRequest) {		
		
	try{
		xmlHttp = new XMLHttpRequest();
	
			} catch (e) {
		
	 		xmlHttp = false;
	  
		}
	}
	
	// IE6 //
	else if (!xmlHttp && window.ActiveXObject){
	  
	  try{
		
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	
			} catch (e) {
			
			xmlHttp = false;
		}
	} 
	
	// Return the object or display an error message //
	if (!xmlHttp)
		checkoutError('httprequest');
			 else 
		return xmlHttp;	
	}