                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                function JSKitPayPal(config){
	var kvdata = {
		"a3" : "",                  // Price in following format: "XX.00"
		"custom" : "nosite",		// Domain
		"os0" : "",			// Domain (same as in the "custom" field)
		"item_name" : "JS-Kit ECHO",	// Description of the feature, i.e "ECHO Live Pack White Label subscription"
		"item_number" : "",             // PayPal code of the feature, i.e. "Echo-livewl"

		"bn" : "PP-SubscriptionsBF:cart-button.png:NonHosted",
		"business" : "payments@js-kit.com",
		"cancel_return": "http://js-kit.com/pricing/",
		"cmd" : "_xclick-subscriptions",
		"currency_code" : "USD",
		"lc" : "US",
		"no_note" : "1",
		"no_shipping" : "1",
		"on0" : "Website URL",
		"p3" : "1",
		"return" : "http://js-kit.com/settings/?register=1",
		"rm" : "1",
		"sra" : "1",
		"src" : "1",
		"t3" : "M"
	};

	var map = function(obj, fun){
		for (var key in obj){
			if (obj.hasOwnProperty(key)){
				fun(key, obj[key]);
			}
		}
	};

	map(config, function(key, value){
		kvdata[key] = value;
	})

	var form = document.createElement("form");
	form.method = "post";
	form.action = "https://www.paypal.com/cgi-bin/webscr";

	map(kvdata, function(key, value){
		var input = document.createElement("input");
		input.type = "hidden";
		input.name = key;
		input.value = value; 
		form.appendChild(input);
	});

	document.body.insertBefore(form, document.body.firstChild);
	form.submit();
}

