jQuery.noConflict();
(function($) {
	$(function() {
    	$(document).ready(function(){
    		$('#yellowworldBt').click(function(){
    			var request = 'TxtMallkey=' + TxtMallkey;
    			request += '&txtLangCode=' + txtLangCode;
    			request += '&txtDonPurp=' + txtDonPurp;
    			request += '&TxtTitle=' + $('#TxtTitle').val();
    			request += '&TxtName=' + $('#TxtName').val();
    			request += '&txtFirstName=' + $('#txtFirstName').val();
    			request += '&txtStreet1=' + $('#txtStreet1').val();
    			request += '&txtStreet2=' + $('#txtStreet2').val();
    			request += '&TxtPoBox=' + $('#TxtPoBox').val();
    			request += '&TxtZipCode=' + $('#TxtZipCode').val();
    			request += '&TxtCity=' + $('#TxtCity').val();
    			request += '&TxtEmail=' + $('#TxtEmail').val();
    			request += '&txtExtraInfo=' + $('#txtExtraInfo').val();
    			if($('#txtConfChannel1').attr('checked') == true){
					var idTotal = '#TxtTotal1';
    			}
    			else{
					var idTotal = '#TxtTotal2';
    			}
    			request += '&TxtTotal=' + $(idTotal).val();

				//process the url a bit to fitting the lib/div URL format
				var requestAjax = request;
				requestAjax = requestAjax.replace(/&/gi,'&ecodonations[');
				requestAjax = requestAjax.replace(/=/gi,']=');
				requestAjax = ecodonationHost + '/?type=' + yellowworldAjaxType + '&' + requestAjax;
				$('#ecodonationIframe').attr('src',requestAjax);

				//Open popup
    			var url = yellowworldHost +'/Payment/invisible.aspx?' + request;
    			window.open (url,"Yellowworld","status=1,toolbar=0,resizable=1,width=800,height=770,scrollbars=yes");
    			//window.showModalDialog
    		});
		});
	});
})(jQuery);

function echo(data){
	try{
		console.log(data)
	}
	catch(e){}
}