function getHttpRequest() {
	var http = null;
	if (window.XMLHttpRequest) { 
		http = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) {
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	return http;
};

function formatPrice( price, currency ) {
	//return "test &euro;";

	var formattedPrice = null;
	var isDollar = ( currency.toUpperCase() == "USD" || currency.toLowerCase() == "dollar" );
	if( !isDollar ) {
		var isEuro = ( currency.toUpperCase() == "EUR" || currency.toLowerCase() == "euro" );
		if( isEuro ) {
			formattedPrice = price + " &euro;";
		} else {
			// alert( "list.js#formatPrice - invalid currency: "+currency );
			return;
		}
	} else {
		formattedPrice = "$"+price;
	}
	return formattedPrice;
};

function currencyForAjaxRequest( currency ) {
	var isDollar = ( currency.toUpperCase() == "USD" || currency.toLowerCase() == "dollar" );
	if( !isDollar ) {
		var isEuro = ( currency.toUpperCase() == "EUR" || currency.toLowerCase() == "euro" );
		if( isEuro ) return 1;
		else return 2; // default: dollar;
	} else {
		// dollar
		return 2;
	}
};