// This is the default Blueprint javascript lib for this site.
function clearMe(formfield){
  if (formfield.defaultValue==formfield.value)
   formfield.value = ""
}
function fadeLineItem(trId, checked) {
	var opacityOptions = { duration: 0.3 }
	if (checked) { 
		opacityOptions.from = 1;
		opacityOptions.to = 0.3
	} else {
		opacityOptions.from = 0.3;
		opacityOptions.to = 1;
	}
	new Effect.Opacity(trId, opacityOptions);
}

// var requiredFieldNames = [
//   'basket_billing_company',
//   'basket_first_name',
//   'basket_last_name',
//   'basket_email_address',
//   'basket_phone_number'
// ];
// 
// function checkForm(evt) {
//   if (document.yourDetails.field.value == '') {
// 		return false;
// 	}
// 		{
// 			// something is wrong
// 			alert('There is a problem with the first field');
// 			return false;
// 		}
// 		else if (value of next field is or isn't something)
// 		{
// 			// something else is wrong
// 			alert('There is a problem with...');
// 			return false;
// 		}
// 		// If the script gets this far through all of your fields
// 		// without problems, it's ok and you can submit the form
// 
// 		return true;
//   
// }
// 
// Event.observe(window, 'load', function () {
//   Event.observe($("yourDetails"), "submit", rememberDetails);    
//   populateDetails();
// });
