
var str_in;
var str_out = ""; 
var num_in;
var num_out = "";

function checkPass(where)  {

pass = prompt("Please Enter the Password...","");

num_out = "";

str_in = escape(pass);

for(i = 0; i < str_in.length; i++) {

     num_out += str_in.charCodeAt(i) - 23;
	
     if (num_out == 767487988887 && where == "listing") {window.location.href="listing_form.htm";}
     if (num_out == 767487988887 && where == "agent") {window.location.href="agent_form.htm";}

     }


}
