// JavaScript Document


function addbookmark()
{
bookmarkurl="http://www.londoncityhotels.net/"
bookmarktitle="London City Hotels - Discounted Hotels in London"
if(document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}






function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function request_pass()
{
 ablak=window.open('http://www.londoncityhotels.net/request_password.asp', 'ujabl','scrollbars=no,status=no,width=370,height=150');
}

function registration()
{
 ablak=window.open('https://vault2.secured-url.com/londoncityhotels/registration.asp', 'ujabl','scrollbars=yes,status=no,width=450,height=630');
}

function log_in()
{
  if (document.forms.loginform.remail.value=='')
 {
  window.alert('Please enter e-mail!');
  return;
 }
     
if (!verifyemail_check(document.forms.loginform.remail.value))
    {
        alert("E-mail is Not Valid!");
        document.forms.loginform.remail.focus();
        return;
    } 
  if (document.forms.loginform.rpassword.value=='')
 {
  window.alert('Please enter your password!');
  return;
 }  

 document.forms.loginform.submit();
}

function verifyemail_check(str) 
 { 
        if(!str.match(/^[\w]{1}[\w\.\-_]*@[\w]{1}[\w\-_\.]*\.[\w]{2,6}$/i)) { 
            return false; 
        } else { 
            return true; 
        } 
    }
    
function log_off()
{
  window.location.href='dologout.asp';
}

function modify_profile()
{
  profile_ablak=window.open('https://vault2.secured-url.com/londoncityhotels/modifyprofile.asp?gid=', 'profabl','scrollbars=yes,status=no,width=377,height=450');
}
