// JavaScript Document
	// GLOBAL vars from outside of document
	function ratePrintOut()
	{
		var rateForm = document.quickRateForm;
		var rate_id =  rateForm.quickRateSelect.options[rateForm.quickRateSelect.selectedIndex].value; // grab selected value
		if (rate_id > null) // test to see if a selection was made
		{	// printout costs and country
			var value = '<b>' + array_country[rate_id] + '</b> (code ' + array_countryCode[rate_id] + ')<br /> <b>' + array_minutes[rate_id] + ' minute(s)</b> for just $1, <b>' + array_cents[rate_id] + '/minute</b> afterwards';
			writit(value,'quickRatePrintout');
		} else {
			writit('Select a calling destination above','quickRatePrintout');		
		}
	}

	function writit(text,id)
	// Use appropriate DOM (Netscape 5, IE 5, and IE 6) for writing to document
	{
		if (document.getElementById)
		{
			x = document.getElementById(id);
			x.innerHTML = '';
			x.innerHTML = text;
		}
		else if (document.all)
		{
			x = document.all[id];
			x.innerHTML = text;
		}
		else if (document.layers)
		{
			x = document.layers[id];
			x.document.open();
			x.document.write(text);
			x.document.close();
		}
	}
