﻿// JScript 文件
function Check()
{
}

function checkfill()
{
   var loginNameInput = document.getElementById("ctl00_MeunLeft_Login1_TextBox1").value;
   var loginPasswordInput = document.getElementById("ctl00_MeunLeft_Login1_TextBox2").value;

   if(loginNameInput == "" || loginNameInput == "卡号/手机号码/身份证")
   {
       alert("请输入用户名Please input the login name")
       return false;
   }
   else if(loginPasswordInput == "")
   {
       alert("请输入密码Please input the login password")
       return false;
   }
   else
   {
       return true;
   }
}
function searchBoxBlur(defaultSearchLabel)
{
    var searchBoxInput = document.getElementById("ctl00_MeunLeft_Login1_TextBox1");
    if(searchBoxInput.value.replace(/(^\s*)|(\s*$)/g, '')=='')
    {
        searchBoxInput.value = defaultSearchLabel;
        //searchBoxInput.style.fontStyle ='Italic';
        //searchBoxInput.style.color = "#a1a1a1";

        //searchBoxInput.style.width = searchBoxWidthWithKievLogo;
    }
}
function searchBoxFocused(defaultSearchLabel)
{
    var searchBoxInput = document.getElementById("ctl00_MeunLeft_Login1_TextBox1");
    if(searchBoxInput.value == defaultSearchLabel)
    {
        searchBoxInput.value = "";
        //searchBoxInput.style.fontStyle = '';
        //searchBoxInput.style.color='#000000';

        //searchBoxInput.style.width = searchBoxWidthWithoutKievLogo;
    }
}

///-----------------------------------------------------
function searchBoxBlurC(defaultSearchLabel, crtlId)
{
    //var searchBoxInput = document.getElementById("ctl00_LeftMenu_Login1_lbUserName");
    if($("#"+crtlId).val().replace(/(^\s*)|(\s*$)/g, '')=='')
    {
        $("#"+crtlId).val(defaultSearchLabel);
        //searchBoxInput.style.fontStyle ='Italic';
        //searchBoxInput.style.color = "#a1a1a1";

        //searchBoxInput.style.width = searchBoxWidthWithKievLogo;
    }
}
function searchBoxFocusedC(defaultSearchLabel, crtlId)
{
    //var searchBoxInput = document.getElementById("ctl00_LeftMenu_Login1_lbUserName");
    if($("#"+crtlId).val() == defaultSearchLabel)
    {
        $("#"+crtlId).val("");
        //searchBoxInput.style.fontStyle = '';
        //searchBoxInput.style.color='#000000';

        //searchBoxInput.style.width = searchBoxWidthWithoutKievLogo;
    }
}
//---------------------------------------------------------

// 酒店地图
function showMap(location)
{
    //华天
    //var mapUrl = "http://searchbox.mapbar.com/publish/template/template1010/index.jsp?tid=tid1010&CID=ehuatian&nid=" + location + "&showSearchDiv=1&infopoi=1&zoom=10&control=2&width=600&height=550";
   //凯旋龙
   var mapUrl = "http://searchbox.mapbar.com/publish/template/template1010/index.jsp?tid=tid1010&CID=sicon08&nid=" + location + "&showSearchDiv=1&infopoi=1&zoom=10&control=2&width=600&height=550"; 
    window.showModalDialog(mapUrl, window, 'dialogHeight:550px;dialogWidth:600px;center:Yes;Help:No;Resizable:no;Scroll:No;Status:no;location:no;edge:raised;'); 
}


