function ToggleAvail (tilde_exist, date_range) {
	if (tilde_exist == 'N') {
		var result = '<div style="width: 300px; height: 20px; font-family: arial; font-size: 12px; font-weight: bold; color: #009900;"><img src="http://lib.store.yahoo.net/lib/denimexpress/green-check-mark.gif" width="22" height="20" align="absmiddle" />&nbsp;&nbsp;Usually ships within 1-2 Business days</div>';
	} else {
		var dates = date_range.split ('-');

		var todays_date_low = new Date();
		todays_date_low.setDate (todays_date_low.getDate() + parseInt(dates[0])); 

		var low_month = todays_date_low.getMonth() + 1
		var low_day = todays_date_low.getDate()
		var low_year = todays_date_low.getFullYear()

		var todays_date_high = new Date();
		todays_date_high.setDate (todays_date_high.getDate() + parseInt(dates[1])); 

		var high_month = todays_date_high.getMonth() + 1
		var high_day = todays_date_high.getDate()
		var high_year = todays_date_high.getFullYear()

		var result = '<div style="width: 300px; height: 20px; font-family: arial; font-size: 12px; font-weight: bold; color: #e59100;"><img src="http://lib.store.yahoo.net/lib/denimexpress/orange-check-mark.gif" width="22" height="20" align="absmiddle" />&nbsp;&nbsp;Will Ship Between ' + low_month + '/' + low_day + '/' + low_year + ' and ' + high_month + '/' + high_day + '/' + high_year + '</div>';

		if (!document.getElementById('kwm-estimated-delivery')) {
			var new_input = document.createElement("input");
			new_input.setAttribute('type', 'hidden');
			new_input.setAttribute('name', 'Special Order Item Estimated Delivery Date');
			new_input.setAttribute('id', 'kwm-estimated-delivery');
			document.forms['itemform'].appendChild(new_input);
		}
		
		if (document.getElementById('kwm-estimated-delivery'))		
			document.getElementById('kwm-estimated-delivery').value = 'Will Ship Between '+ low_month + '/' + low_day + '/' + low_year + ' and ' + high_month + '/' + high_day + '/' + high_year;
	}

	document.getElementById('avail_status').innerHTML = result;
}

