var str_in;
var str_out = ""; 
var num_in;
var num_out = "";
function str_to_num_mal()
{	num_out = "";
	if(document.restricted.pass.value == "") alert("Please provide a passowrd.  Note:  All passwords are case sensitive.");
	else
	{	str_in = escape(document.restricted.pass.value);
		for(i = 0; i < str_in.length; i++)
		{	num_out += str_in.charCodeAt(i) - 23;
		}
		check(document.restricted.login.value, num_out,'mal');
	}
}
function str_to_num_eal()
{	num_out = "";
	if(document.restricted.pass.value == "") alert("Please provide a passowrd.  Note:  All passwords are case sensitive.");
	else
	{	str_in = escape(document.restricted.pass.value);
		for(i = 0; i < str_in.length; i++)
		{	num_out += str_in.charCodeAt(i) - 23;
		}
		check(document.restricted.login.value, num_out,'eal');
	}
}
function check(l, p, k)
{	if(k=='mal')
	{	if((l=='514')&&(p=='302629'))
			window.open('../members_area_m1424.html')
		else
			alert('Wrong ID/Password combination.  Please try again.  Note:  ID is your property ID / Password is your select passowrd which is case sensitive.  Forgot your password?  Email: password@VacationHook.com from your registered email address with your property ID.')
	}
	else if(k=='eal')
	{	if((l=='514')&&(p=='302629'))
			window.open('editing_area_m1424.html')
		else
			alert('Wrong ID/Password combination.  Please try again.  Note:  ID is your property ID / Password is your select passowrd which is case sensitive.')
	}
/*	else
	{
		else
			alert('Wrong ID/Password combination.  Please try again.  Note:  ID is your property ID / Password is your select passowrd which is case sensitive.')
	}*/
}