﻿$(function()
{			
	if ($('#bodytext').html() == '') 
	{ 
		$('#hptext').html(''); 
		$('#hptext').css('background', 'none'); 
		$('#hptext').css('border', '0');
	}
	else
	{
		var h1 = $('h1').html()	;
		$('h1').html('// ' + h1);
	}	
});

function SignUp(formname)
{		
	var theForm = document.forms[formname];
	var email = theForm.elements["*email address"];
	
	if (email.value.toLowerCase() == "your email address")
	{
		email.value = '';
		email.focus();	
		alert("Please enter your email address.");
	}
	else
	{	
		if (checkrequired(formname, ''))
		{			
			var postData = "email=" + email.value;
					
			$.ajax({
			   type: "POST",
			   url: "/SignUp.aspx",
			   data: postData,
			   error: function(msg)
			   {			
					$("#signup").html(msg);				
			   },
			   success: function(msg)
			   {			
					$("#signup").html(msg);				
			   }
			 });
		}
	}	
}		

