/**
 * Function for hiding/ showing form fields om the  
 * the invoice page when the "Invoice address same as 
 * contact" checkbox is checked
 
function disableInvoiceForm()
{
	// If the all dates has been check then disable the dropdwons
	if(document.forms.invoice.invSameAsContact.checked == true){
				
		// Disable the form fields
		document.forms.invoice.invAddressLine1.disabled 	= true;
		document.forms.invoice.invAddressLine2.disabled 	= true;
		document.forms.invoice.invTown.disabled 			= true;
		document.forms.invoice.invCounty.disabled 			= true;
		document.forms.invoice.invPostcode.disabled 		= true;
							
	}else{
		
		// Enable the form fields
		document.forms.invoice.invAddressLine1.disabled 	= false;
		document.forms.invoice.invAddressLine2.disabled 	= false;
		document.forms.invoice.invTown.disabled 			= false;
		document.forms.invoice.invCounty.disabled 			= false;
		document.forms.invoice.invPostcode.disabled 		= false;

	}	
	
	new Effect.toggle('toggle-appear', 'appear', { duration: 0.5 });
		
}// End of disableInvoiceForm
*/

/**
 * Function for showing/ hiding the delegates for courses on the 
 * order-confirmation page
 
function delegateToggle(divName, aName)
{
	var divChange = document.getElementById(divName);						
	var aChange = document.getElementById(aName);	
	
	if('View' == aChange.innerHTML){
		
		aChange.innerHTML = 'Hide';
		
	}else{
		
		aChange.innerHTML = 'View';
	}
	
	new Effect.toggle(divChange, 'slide', { duration: 0.75 });	
}	
*/
