function newsLetterSignUp(){
	
	//Create the URL
	var email = $('newsLetterEmail').value
	
	//Validate that this is indeed an email address
	if(!isEmail(email)){
		alert("Enter email address")
	}
	else
	{
		var url = 'includes/ajax.php?action=newsLetterSignup&email=' +email
		ajax(url, newsLetterSignUpResponse)
		
		$('newsLetterEmail').value = 'Loading....'
	}
}

function newsLetterSignUpResponse(response){
	$('newsLetterEmail').value = response
}

function toUpper(e){
	var str = new String(e.value)
	e.value = str.toUpperCase()
}	

function onLoad(){

	switch(currentPage()){

		case "":
			$('innerContent').style.height = '825px'
		break;

		case "index.php":
			$('innerContent').style.height = '825px'
		break;

		case "faqs.php":
			$('innerContent').style.height = '1100px'
		break;
		
		case "sapp.php":
			$('innerContent').style.height = '4200px'
		break;
		
		case "terms.php":
			$('innerContent').style.height = '3450px'
		break;
		
		case "returns.php":
			$('innerContent').style.height = '800px'
		break;
		
		case "company.php":
			$('innerContent').style.height = '600px'
		break;
		
		case "installation.php":
			$('innerContent').style.height = '6440px'
		break;	
		
		
		case "sponsors.php":
			$('innerContent').style.height = '450px'
		break;					
		
		case "contact.php":
			$('innerContent').style.height = '850px'
		break;
		
		case "shoppingCart2.php":
			$('innerContent').style.height = '1100px'
		break;
				
	}
	
	//Call any page onLoad functions
	if(onPageLoad != 'undefined')
	{
		onPageLoad()	
	}
}