//(c)MMVII House of Graham
//1. Email Validate
//2. Set Window Status
//3. On select - go!
//4. Suppress Enter Key during form fill
//5. Popup message window

//1.

function checkEmail(contForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(contForm.email.value)){
return (true)
}
alert("Can't Continue - Please Enter Valid Email Address")
return (false)
}

//2.

window.status="http://www.georgemelly.com (.co.uk; .eu)"


//3.

function goSel(obj)
{
   for (i = 1; i < obj.length; i++)
      if (obj[i].selected == true)
        eval(obj[i].value);
}


//4.

function noEnter(e){
var characterCode
	 if(e && e.which){
	 e = e
	 characterCode = e.which
	 }
	 else{
	 e = event
	 characterCode = e.keyCode
	 }	 
	 if(characterCode == 13){
 	 return false
	 }
	 else{
	 return true
	 }
}
//5.
function popup(htmpage) {
window.open(htmpage,'newwindow','width=300, height=100,toolbar=no,titlebar=no,menubar=no,scrollbars=no, copyhistory=no; resizable=no,location=yes, directories=no,status=no;left=450,top=350,screenX=450,screenY=350')}
//ends


