function confirm_entry( email )
{
	// First check if the e-mail field was empty or not
	if( !email )
	{
		alert("Your E-mail field cannot be empty!");
		
		return false;
	}
	
	var domain = email.substr(email.indexOf('@') + 1,email.length)
	if( domain == "gmail.com" )
	{
		// Domain name was Gmail, proceed
		return true;
	}
	else if( domain == "googlemail.com" )
	{
		// Domain name was Googlemail, proceed
		return true;
	}
	
	// The e-mail was not empty, but also not gmail.com or googlemail.com, error, so it's a different e-mail!
	// Charge ze lasers! Nao!
	// If gmail was not found, error out and give them an option
	input_box = confirm("We noticed you entered an email other than Gmail.\n\nGmail is highly recommended as it has less filters and is delivered to you easier.\nIf you keep this email and it \"bounces,\" you will have to change it later on as the system will automatically require it.\n\nClick OK to stay on this page and change your e-mail or click Cancel to continue anyway.");
	
	if( input_box == true )
	{ 
		// Cancel and stay on the page when OK is clicked
		return false;
	}
	else
	{
		// Proceed when Cancel is clicked
		return true;
	}
}

function textCounter( field, countfield, maxlimit )
{
 	if ( field.value.length > maxlimit )
	{
		field.value = field.value.substring( 0, maxlimit );
		field.blur();
		field.focus();
		return false;
	}
	else
	{
		countfield.value = maxlimit - field.value.length;
	}
}
