
		function show(show){
			document.getElementById(show).style.display='block';
			if(show==="card"){
				document.getElementById('cover').style.display='block';
			}
		}
		
		function hide(hide){
			document.getElementById(hide).style.display='none';
			if(hide==="card"){
				document.getElementById('cover').style.display='none';
			}
		}
		
		function check_email(e) {
			ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

			for(i=0; i < e.length ;i++){
				if(ok.indexOf(e.charAt(i))<0){ 
					return (false);
				}	
			} 

			if (document.images) {
				re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
				re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
				if (!e.match(re) && e.match(re_two)) {
					return (-1);		
				} 
			}
		}
		
		function check_form(card) { // f is the form (passed using the this keyword)
			// check the first email address
			if(!check_email(card.email.value)){
				alert("Invalid email detected.");
				card.email.focus(); 
				// if the browser is Netscape 6 or IE
				if(document.all || document.getElementByID){
					card.email.style.background = "yellow";
				}
				return false;
			}
			
			if(card.email.value != card.email2.value){
				alert("Email did not match in both fields.");
				card.email.focus();
				return false;
			}
		}

		
	