

//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 "jan@hotmail.com": 
		
			if ( pass == "ceremony" )
			window.location="clients/jan_aux_ceremony/index.html";
			else
			alert("Invalid Password");
			break;
			
	case "marilyn@hotmail.com": 
		
			if ( pass == "marilyn" )
			window.location="clients/2011_marilyn_riley/index.html";
			else
			alert("Invalid Password");
			break;
			
	case "maria@hotmail.com": 
		
			if ( pass == "maria" )
			window.location="clients/romolo/index.html";
			else
			alert("Invalid Password");
			break;
			
	case "sara@hotmail.com": 
		
			if ( pass == "birthday" )
			window.location="sarasshow/index.html";
			else
			alert("Invalid Password");
			break;
			
	case "ranj@hotmail.com": 
		
			if ( pass == "ranj" )
			window.location="clients/ranj/index.html";
			else
			alert("Invalid Password");
			break;
			
	case "nicola":
		
			if ( pass == "scott")
			window.location="clients/nicolascott/index.html";
			else
			alert ("Invalid Password");
			break;
			
		
	case "sarabradd@hotmail.com":
		
			if ( pass == "wedding2010")
			window.location="clients/sarabrad/index.html";
			else
			alert ("Invalid Password");
			break;
			
	case "janine@hotmail.com":
		
			if ( pass == "celina")
			window.location="clients/janine16/index.html";
			else
			alert ("Invalid Password");
			break;
			
	case "garygnu@hotmail.com":
		
			if ( pass == "garygnu")
			window.location="clients/gary_tom/index.html";
			else
			alert ("Invalid Password");
			break;
			
	case "moocow16merk@hotmail.com":
		
			if ( pass == "shelby")
			window.location="clients/2011_shelby_birthday/index.html";
			else
			alert ("Invalid Password");
			break;
			
	case "jakesmail001@yahoo.ca":
		
			if ( pass == "photoshoot")
			window.location="clients/jackiecagnoni/index.html";
			else
			alert ("Invalid Password");
			break;
			
	case "tcerantola@shaw.ca":
		
			if ( pass == "amaya")
			window.location="clients/2011_tania_family/tania_shows.html";
			else
			alert ("Invalid Password");
			break;
			
	default:
		alert("Invalid E-mail/User Name and/or Password");
	}

}
		
