//	Be aware this sorce code file is the property of Andrew Jackson, and by copying it, 
//	or distributing the code, you will violate copyright laws.
//	Andrew Jackson, is the code developer and you may seek
//	his permission to use the code on your own page.

//	Developed by:		Andrew Jackson, Interneers
//	Released on:		15 Aug 2002

//	Version No:		1.0

//	Updates:		None




















window.defaultStatus = "Welcome to the Sally Anne Bears web site.";

function Move(destination){
	location.href = destination;
}

function checkemail(str){

	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	if (filter.test(str))
		testresults=true;
	else
		testresults=false;
	return (testresults);
}

function ContactForm()
{
	if (document.webform.Name.value.length < 1){
		alert("Please enter your full name.");
		document.webform.Name.focus();
		return false;
	}
	if (document.webform.Email.value.length < 1){
		alert("Please enter a contact email address.");
		document.webform.Email.focus();
		return false;
	}
	if (document.webform.word.value.length < 1){
		alert("Please enter the Security word.");
		document.webform.word.focus();
		return false;
	}
	isemail = checkemail(document.webform.Email.value);
	if (!isemail){
		alert("Email Address does not follow normal guidelines. Please try again or Email admin@sallyannebears.co.uk directly.");
		document.webform.Email.focus();
		return false;
	}
}

function Move(destination){
	location.href = destination;
}


function Status(message)
{
	window.status = message;
}