function redirect(image)
{
 
 
  name = "luke";
  var pass = "mapwalker";
  
 
  window.location.replace("http://www.liveviewgps.net/map.aspx?login=luke&pwd=" + xor_str(pass)+"&cid=liveviewgps") ;
 
  
}
 
function enterHandler(event,image)
{
 
 var keycode;
 
 if(window.event)
 {
   keycode = event.keyCode;
 }
 else if(e.which)
 {
   keycode = e.which;
 }
 
 if(keycode == 13)
 {
  redirect(image);
 }
 
 return true;
}
 
function xor_str(pwd)
{
    var dateis = new Date; 
 var xor_key=(dateis.getDate() % 3 ) + 1
    pwd = pwd.toUpperCase();
 var the_res="";//the result will be here
 for(i=0;i<pwd.length;++i)
 {
  the_res+=String.fromCharCode(xor_key^pwd.charCodeAt(i));
 }
 return the_res;
 
}
