

//Check Email for (.) and (@)
/*function verify()
{
	var email = document.forms.pword.email.value;
	var att = email.indexOf("@");
	var dot = email.indexOf(".");
	
	if ((att!== -1) && (dot!== -1))
	{
		password();
	}
	else
	alert("Enter a Valid Email Address.");
}
*/
//Verify Password Function
//for entering Item Submission Form

	
function password()
{
var pass = document.forms.pword.psword.value.toLowerCase();
var email = document.forms.pword.email.value.toLowerCase();

		
switch (email)
	{
	case "sara@hotmail.com": 
		
			if ( pass == "birthday" )
			window.location="sarasshow/index.html";
			else
			alert("Invalid Password");
			break;
			
	case "mackeystudio@shaw.ca": 
		
			if ( pass == "hilary" )
			window.location="hilary/hilaryentry.html";
			else
			alert("Invalid Password");
			break;
			
	case "rdifonzo@shaw.ca":
		
			if ( pass == "maria")
			window.location="mariaromolomovie.html";
			else
			alert ("Invalid Password");
			break;
			
		
	case "simi@hotmail.com":
		
			if ( pass == "montreal")
			window.location="simirobi_movie.html";
			else
			alert ("Invalid Password");
			break;
			
	case "karen@divineyou.ca":
		
			if ( pass == "mitchell")
			window.location="clients/mitchellmcgregor/mitchellmcgregor.html";
			else
			alert ("Invalid Password");
			break;
			
	case "alevelt@cogentis.ca":
		
			if ( pass == "rick")
			window.location="clients/astridwed09/astrid_mov.html";
			else
			alert ("Invalid Password");
			break;
			
	case "music@hotmail.com":
		
			if ( pass == "music")
			window.location="music/music1.html";
			else
			alert ("Invalid Password");
			break;
			
	case "romina@hotmail.com":
		
			if ( pass == "romina")
			window.location="romina.html";
			else
			alert ("Invalid Password");
			break;
			
	case "shannen@hotmail.com":
		
			if ( pass == "shannen08")
			window.location="shannen/shannen1.html";
			else
			alert ("Invalid Password");
			break;
			
	default:
		alert("Invalid E-mail/User Name and/or Password");
	}

}
		