function validateit()
{ 
	var str = document.form1.email.value;
	var filter =/^.+\@.+..{2,3}$/ ;
	
	if (document.form1.full_name.value == "")
	{
		alert("Please enter your full name");
		document.form1.full_name.focus();
		return;
	}
	if ( str == "" || !filter.test(str) )
	{ 
		alert("Please enter a valid email");
		document.form1.email.focus();
		return;
	}
	if (document.form1.note_wide.value == "")
	{
		alert("Please enter your message");
		document.form1.note_wide.focus();
		return;
	}
	
	document.form1.submit();
}

function validatelogin()
{ 
	var str = document.login.email.value;
	var filter =/^.+\@.+..{2,3}$/ ;
	
	if ( str == "" || !filter.test(str) )
	{ 
		alert("Please enter a valid email");
		document.login.email.focus();
		return;
	}
	if (document.login.password.value == "")
	{
		alert("Please enter your password");
		document.login.password.focus();
		return;
	}	
	document.login.submit();
}

function submitform()
{
	document.photos.submit();
}

function finalized()
{
	if(confirm('Are you sure you want to finalize your photo selection?\n This action is final and cannot be undone.'))
	{
	   	document.finalize.submit();
	}
}





















