// JavaScript Document
function goto(page,mode){
	if (mode==1){
		window.open(page)
	}
	else{
		document.location.href=page 
	}
}
function clearMailinput(){
	if(document.getElementById('mailinput').value=='Your email'){
		document.getElementById('mailinput').value=''
	}
}
function valideEmail(){
	clearMailinput();
	var email=new String(document.getElementById('mailinput').value);
	if  (!email.match('^[-_\.0-9a-zA-Z]{1,}@[-_\.0-9a-zA-Z]{1,}[\.][0-9a-zA-Z]{2,}$')){
		alert("Invalid email adress")	
	}
	else{
		goto('registration.asp?email='+email)
	}
}
