	function cent(amount) {
	// returns the amount in the .99 format 
		amount -= 0;
		amount = (Math.round(amount*100))/100;
		return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
	}
	
	// Get Ajax Select
	function getAjaxSelect(script, string) {
		var postString = 'option=view&'+string;
		$('post_wait').removeClass('hide');
		new Ajax (script, {
			postBody: postString,
			onComplete: populateList
		}).request();

		return true;
	}

	// Populate dropdwn from XML
	function populateList(responseText, responseXML) {
		var nodes = responseXML.documentElement.getElementsByTagName('item');
		var name = responseXML.documentElement.attributes[0].nodeValue;
		var list = $(name);

		for (var count = list.options.length-1; count >= 0; count--)
			list.options[count] = null;
	
		var idValue;
		var selectedValue = false;
		var textValue; 
		var optionItem;
		// populate the dropdown list with data from the xml doc
		for (var count = 0; count < nodes.length; count++) {
			textValue = GetInnerText(nodes[count]);
			idValue = nodes[count].getAttribute("id");
			selectedValue = nodes[count].getAttribute("selected");
			optionItem = new Option( textValue, idValue, false, selectedValue);
			list.options[list.length] = optionItem;
		}
		$('post_wait').addClass('hide');
	}

	// returns the node text value 
	function GetInnerText (node) {
		 return (node.textContent || node.innerText || node.text || node.firstChild.nodeValue || '') ;
	}

