﻿// JScript 文件
/*if(document.location.toString().indexOf("www.") < 0)
{
    document.location.href = "http://www." + document.location.toString().replace("http://","");
}*/
function AddFavorite(sURL, sTitle)
{
    try
    {
        window.external.addFavorite(sURL, sTitle);
    }
    catch (e)
    {
        try
        {
            window.sidebar.addPanel(sTitle, sURL, "");
        }
        catch (e)
        {
            alert("加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
}
function SetHome(obj,vrl){
        try{
                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        }
        catch(e){
                if(window.netscape) {
                        try {
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        }
                        catch (e) {
                                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
}
function getX(obj)
{
	
		var x = obj.offsetLeft;
		var parent = obj;
		while (parent.offsetParent)
		{
			parent = parent.offsetParent;
			x += parent.offsetLeft;
		}
		return x;
}
function getY(obj)
{
	
		var y = obj.offsetTop + obj.offsetHeight;
		var parent = obj;
		while (parent.offsetParent)
		{
			parent = parent.offsetParent;
			y += parent.offsetTop;
		}
		return y;
}
function UserOnline()
{
    document.write("<iframe src=\"/UserOnLine.aspx\" id=\"UserOnline\" scrolling=\"no\" frameborder=\"0\" height=\"31px\" width=\"708px\" allowtransparency=\"true\" style=\"background-color:Transparent\"></iframe>");
    
}
        /*
 * Date Format 1.2.2
 * (c) 2007-2008 Steven Levithan <stevenlevithan.com>
 * MIT license
 * Includes enhancements by Scott Trenda <scott.trenda.net> and Kris Kowal <cixar.com/~kris.kowal/>
 **/
 document.write("<script language=\"javascript\" src=\"/js/bottom.js\" type=\"text/javascript\"></script>");
 /*
 * Accepts a date, a mask, or a date and a mask.
 * Returns a formatted version of the given date.
 * The date defaults to the current date/time.
 * The mask defaults to dateFormat.masks.default.
 */
var dateFormat = function () {
    var    token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
        timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
        timezoneClip = /[^-+\dA-Z]/g,
        pad = function (val, len) {
            val = String(val);
            len = len || 2;
            while (val.length < len) val = "0" + val;
            return val;
        };

    // Regexes and supporting functions are cached through closure
    return function (date, mask, utc) {
        var dF = dateFormat;

        // You can't provide utc if you skip other args (use the "UTC:" mask prefix)
        if (arguments.length == 1 && (typeof date == "string" || date instanceof String) && !/\d/.test(date)) {
            mask = date;
            date = undefined;
        }

        // Passing date through Date applies Date.parse, if necessary
        date = date ? new Date(date) : new Date();
        if (isNaN(date)) throw new SyntaxError("invalid date");

        mask = String(dF.masks[mask] || mask || dF.masks["default"]);

        // Allow setting the utc argument via the mask
        if (mask.slice(0, 4) == "UTC:") {
            mask = mask.slice(4);
            utc = true;
        }

        var    _ = utc ? "getUTC" : "get",
            d = date[_ + "Date"](),
            D = date[_ + "Day"](),
            m = date[_ + "Month"](),
            y = date[_ + "FullYear"](),
            H = date[_ + "Hours"](),
            M = date[_ + "Minutes"](),
            s = date[_ + "Seconds"](),
            L = date[_ + "Milliseconds"](),
            o = utc ? 0 : date.getTimezoneOffset(),
            flags = {
                d:    d,
                dd:   pad(d),
                ddd:  dF.i18n.dayNames[D],
                dddd: dF.i18n.dayNames[D + 7],
                m:    m + 1,
                mm:   pad(m + 1),
                mmm:  dF.i18n.monthNames[m],
                mmmm: dF.i18n.monthNames[m + 12],
                yy:   String(y).slice(2),
                yyyy: y,
                h:    H % 12 || 12,
                hh:   pad(H % 12 || 12),
                H:    H,
                HH:   pad(H),
                M:    M,
                MM:   pad(M),
                s:    s,
                ss:   pad(s),
                l:    pad(L, 3),
                L:    pad(L > 99 ? Math.round(L / 10) : L),
                t:    H < 12 ? "a"  : "p",
                tt:   H < 12 ? "am" : "pm",
                T:    H < 12 ? "A"  : "P",
                TT:   H < 12 ? "AM" : "PM",
                Z:    utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""),
                o:    (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4),
                S:    ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
            };

        return mask.replace(token, function ($0) {
            return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
        });
    };
}();

// Some common format strings
dateFormat.masks = {
    "default":      "ddd mmm dd yyyy HH:MM:ss",
    shortDate:      "m/d/yy",
    mediumDate:     "mmm d, yyyy",
    longDate:       "mmmm d, yyyy",
    fullDate:       "dddd, mmmm d, yyyy",
    shortTime:      "h:MM TT",
    mediumTime:     "h:MM:ss TT",
    longTime:       "h:MM:ss TT Z",
    isoDate:        "yyyy-mm-dd",
	chineseDate:    "yyyy年m月d日",
    isoTime:        "HH:MM:ss",
    isoDateTime:    "yyyy-mm-dd'T'HH:MM:ss",
    isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
};

// Internationalization strings
dateFormat.i18n = {
    dayNames: [
        "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
        "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
    ],
    monthNames: [
        "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
        "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
    ]
};

// For convenience...
Date.prototype.format = function (mask, utc) {
    return dateFormat(this, mask, utc);
};
//保留小数函数
if(typeof(Number.prototype.toFixed)!="function")   
  {   
          Number.prototype.toFixed   =   function(d)   
          {   
                  var   s=this+"";if(s.indexOf(".")==-1)s+=".";s+=new   Array(d+1).join("0");   
                  if   (new   RegExp("^((-|\\+)?\\d+(\\.\\d{0,"+   (d+1)   +"})?)\\d*$").test(s))   
                  {   
                          s="0"+   RegExp.$1,   pm=RegExp.$2,   a=RegExp.$3.length,   b=true;   
                          if   (a==d+2){a=s.match(/\d/g);   if   (parseInt(a[a.length-1])>4)   
                          {   
                                  for(var   i=a.length-2;   i>=0;   i--)   {a[i]   =   parseInt(a[i])+1;   
                                  if(a[i]==10){a[i]=0;   b=i!=1;}   else   break;}   
                          }   
                          s=a.join("").replace(new   RegExp("(\\d+)(\\d{"+d+"})\\d$"),"$1.$2");   
                  }if(b)s=s.substr(1);   return   (pm+s).replace(/\.$/,   "");}   return   this+"";   
          };   
  }  
  Date.prototype.toCommonCase=function()
  {
        var xYear=this.getFullYear();
        xYear=xYear;

        var xMonth=this.getMonth()+1;
        if(xMonth<10)
        {
            xMonth=xMonth;
        }

        var xDay=this.getDate();
        if(xDay<10)
        {
            xDay=xDay;
        }
        return xYear+"-"+xMonth+"-"+xDay;
    }
    function DateAdd(interval,number,date)
    {
	    switch(interval.toLowerCase())
	    {
		    case "y": return new Date(date.setFullYear(date.getFullYear()+number));
		    case "m": return new Date(date.setMonth(date.getMonth()+number));
		    case "d": return new Date(date.setDate(date.getDate()+number));
		    case "w": return new Date(date.setDate(date.getDate()+7*number));
		    case "h": return new Date(date.setHours(date.getHours()+number));
		    case "n": return new Date(date.setMinutes(date.getMinutes()+number));
		    case "s": return new Date(date.setSeconds(date.getSeconds()+number));
		    case "l": return new Date(date.setMilliseconds(date.getMilliseconds()+number));
	    } 
    }
    function DateDiff(interval,d1,d2)
    {
        date1 = new Date(d1.replace("-","/"));
        date2 = new Date(d2.replace("-","/"));
	    var long = date2.getTime() - date1.getTime(); //相差毫秒
	    switch(interval.toLowerCase())
	    {
		    case "y": return parseInt(date2.getFullYear() - date1.getFullYear());
		    case "m": return parseInt((date2.getFullYear() - date1.getFullYear())*12 + (date2.getMonth()-date1.getMonth()));
		    case "d": return parseInt(long/1000/60/60/24);
		    case "w": return parseInt(long/1000/60/60/24/7);
		    case "h": return parseInt(long/1000/60/60);
		    case "n": return parseInt(long/1000/60);
		    case "s": return parseInt(long/1000);
		    case "l": return parseInt(long);
	    }
    }
    function IsDate(dateval)
    {
	    var arr = new Array();
    	
	    if(dateval.indexOf("-") != -1)
	    {
		    arr = dateval.toString().split("-");
	    }
	    else if(dateval.indexOf("/") != -1)
	    {
		    arr = dateval.toString().split("/");
	    }
	    else
	    {
		    return false;
	    }
    	
	    //yyyy-mm-dd || yyyy/mm/dd
	    if(arr[0].length==4)
	    {
		    var date = new Date(arr[0],arr[1]-1,arr[2]);
		    if(date.getFullYear()==arr[0] && date.getMonth()==arr[1]-1 && date.getDate()==arr[2])
		    {
			    return true;
		    }
	    }
	    //dd-mm-yyyy || dd/mm/yyyy
	    if(arr[2].length==4)
	    {
		    var date = new Date(arr[2],arr[1]-1,arr[0]);
		    if(date.getFullYear()==arr[2] && date.getMonth()==arr[1]-1 && date.getDate()==arr[0])
		    {
			    return true;
		    }
	    }
	    //mm-dd-yyyy || mm/dd/yyyy
	    if(arr[2].length==4)
	    {
		    var date = new Date(arr[2],arr[0]-1,arr[1]);
		    if(date.getFullYear()==arr[2] && date.getMonth()==arr[0]-1 && date.getDate()==arr[1])
		    {
			    return true;
		    }
	    }
    	
	    return false;
    }
function DivRoomPrice()
{
    document.write("<div class=\"l3\"><div class=\"l34\"><div id=\"l341\">全部房型及价格</div><div id=\"l342\">入住日期：</div><div class=\"l343\"><input type=\"text\" id=\"StartDate\" name=\"StartDate\"/></div><div class=\"l344\"><a onclick=\"event.cancelBubble=true;\" href=\"javascript:showCalendar('imageCalendar2',false,'StartDate','EndDate','setCheckInDate');\" style=\"cursor:hand;\"><img src=\"/img/t1.gif\" id=\"imageCalendar2\" /></a></div><div id=\"l345\">离店日期：</div><div class=\"l343\"><input type=\"text\" id=\"EndDate\" name=\"EndDate\"/></div><div class=\"l344\"><a onclick=\"event.cancelBubble=true;\" href=\"javascript:showCalendar('Img1',false,'EndDate',null);\" style=\"cursor:hand\"><img src=\"/img/t1.gif\" id=\"Img1\" /></a></div><div id=\"l346\"><img src=\"/img/btn1.gif\" onclick=\"RoomPrice(sHId,document.getElementById('StartDate').value,document.getElementById('EndDate').value)\" /></div></div><div class=\"l33\" id =\"RoomPrice\"></div></div>");
}
mainLoop = function()
{
    val = queryField.value;		
    if (lastVal != val)
    {				
        eval("var response = " + AreaObj + ".getHANames(escape(val));");
        showQueryDiv(response.value);
        lastVal = val;
    }				
    setTimeout('mainLoop()', 10);
    return true;
}
function AreaZhaoJiudian()
{
    eval("location.href = " + AreaObj + ".getZHaoJiudianUrl(document.getElementById(\"TopHAId\").value).value")
}
function SearchHotel()
		{
		    
		    strStartDate = "";
		    if(document.getElementById("StartDate1"))
		    {
		        strStartDate = document.getElementById("StartDate1").value;
		    }
		    else
		    {
		        strStartDate = document.getElementById("StartDate").value;
		    }
		    if(strStartDate == "")
		    {
		        alert("请选择入住日期");
		        document.getElementById("StartDate").focus();
		        return false;
		    }
		    strEndDate = "";
		    if(document.getElementById("EndDate1"))
		    {
		        strEndDate = document.getElementById("EndDate1").value;
		    }
		    else
		    {
		        strEndDate = document.getElementById("EndDate").value;
		    }
		    if(strEndDate == "")
		    {
		        alert("请选择离店日期");
		        document.getElementById("EndDate").focus();
		        return false;
		    }
		    if(IsDate(strStartDate) == false)
                    {
                        alert("您输入的入住日期格式不正确，请重新输入");
                        return false;
                    }
                    if(IsDate(strEndDate) == false)
                    {
                        alert("您输入的离店日期格式不正确，请重新输入");
                        return false;
                    }
                    if(DateDiff("d",strStartDate,strEndDate) < 1)
                    {
                        alert("您输入的离店日期不能小于或者等于入住日期，请重新输入");
                        return false;
                    }
		
		    strHCNName = document.getElementById("HCNName").value;
		    strHAddress = "";
		    if(document.getElementById("txtHAddress"))
		    {
		        strHAddress = document.getElementById("txtHAddress").value;
		    }
		    strStar = document.getElementById("star").value;

		    strPrice = document.getElementById("Price").value;
		    strRoomType = "";
		    if(document.getElementById("RoomType"))
		    {
		        strRoomType = document.getElementById("RoomType").value;
		    }
		    strPdId = document.getElementById("PdId").value;
		    strHAId = document.getElementById("HAId").value;
		    
		    strHKysj = document.getElementById("HKysj").value;
		    DivSetVisible();document.getElementById("Lay1").style.display='block';document.getElementById("Lay2").style.display='block';document.getElementById("Lay1").focus();location.href="#Pub";progress_update();
		    location.href="/hotel/hotelsearchlist.aspx?HCNName=" + strHCNName + "&star=" + strStar + "&Price=" + strPrice + "&RoomType=" + strRoomType + "&PdId=" + strPdId + "&HAId=" + strHAId + "&StartDate=" + strStartDate + "&EndDate=" + strEndDate + "&HAddress=" + strHAddress + "&HKysj=" + strHKysj;
		    
		}
		function SearchHotelWrite()
{
    document.write("<div class=\"r3\"><div class=\"r31\">大连酒店快速查询</div><div class=\"r33\"><div>入住日期 <input onclick=\"javascript:event.cancelBubble=true;showCalendar('StartDate1',false,'StartDate1','EndDate1','setCheckInDate1');\" type=\"text\" id=\"StartDate1\" name=\"StartDate1\"/></div><div>离店日期 <input onclick=\"event.cancelBubble=true;javascript:showCalendar('EndDate1',true,'EndDate1',null);\" type=\"text\" id=\"EndDate1\" name=\"EndDate1\"/></div><div>星级标准 <select name=\"star\" id=\"star\"><option value=\"\">-不限-</option><option value=\"3\">三星级</option><option value=\"4\">四星级</option><option value=\"5\">五星级</option><option value=\"0\">经济型酒店</option><option value=\"-2\">酒店式公寓</option><option value=\"2\">两星级</option></select></div><div>价格范围 <select name=\"Price\" id=\"Price\"><option value=\"\">不限</option><option value=\"50-100\">50至100元</option><option value=\"100-200\">100至200元</option><option value=\"200-300\">200至300元</option><option value=\"300-400\">300至400元</option><option value=\"400-500\">400至500元</option><option value=\"500-600\">500至600元</option><option value=\"500-600\">600至700元</option><option value=\"700-800\">700至800元</option><option value=\"800-0\">800元以上</option></select></div><div>开业时间 <select name=\"HKysj\" id=\"HKysj\"></select></div><div>行政区域 <select name=\"PdId\" id=\"PdId\"><option value=\"\">-不限-</option><option value=\"BH000002\">中山区</option><option value=\"BH000004\">西岗区</option><option value=\"BH000018\">沙河口区</option><option value=\"BH000067\">开发区</option><option value=\"BH000019\">甘井子区</option><option value=\"BH000021\">金州区</option></select></div><div>地理位置 <select name=\"HAId\" id=\"HAId\" onchange=\"if(this.value == 'qt'){location.href='/chaxun/'}\"><option value=\"\">不限</option><option value=\"3\">大连市中心</option><option value=\"1\">大连火车站</option><option value=\"11\">大连星海广场</option><option value=\"22\">大连中山广场</option><option value=\"125\">星海会展中心</option><option value=\"126\">老虎滩风景区</option><option value=\"117\">付家庄风景区</option><option value=\"2\">国际机场</option><option value=\"817\">高新园区</option><option value=\"816\">大连软件园</option><option value=\"25\">大连理工大学</option><option value=\"27\">大连医科大学</option><option value=\"28\">大连海事大学</option><option value=\"29\">大连交通大学</option><option value=\"qt\">其它区域</option></select></div><div>客房类型 <select id=\"RoomType\" name=\"RoomType\" ><option value=\"\">不限</option><option value=\"3\">三人间</option><option value=\"4\">四人间</option></select></div><div>酒店名称 <input type=\"text\" id=\"HCNName\" name=\"HCNName\"/></div><div>酒店地址 <input type=\"text\" id=\"txtHAddress\" name=\"txtHAddress\"/></div><div><img src=\"/img/btnsearch.gif\" onclick=\"javascript:SearchHotel()\" /></div></div></div>");
}
var sHAName = "";
document.write("<iframe id=\"ifLogin\" src=\"about:blank\" scrolling=\"no\" frameborder=\"0\" style=\"position:absolute;top:0px;left:0px;display:none;Z-INDEX:10;background-color:transparent;filter:alpha(opacity=0);moz-opacity: 0; opacity: 0;\"></iframe>");
            document.write("<div id=\"loginDiv\"></div>");
            document.write("<div id=\"hy1\"><a name=\"Login\"></a><div id=\"hy11\"><div id=\"hy111\"><div id=\"hyleft\"><div id=\"hy1111\"></div><div class=\"hy1112\">用户名：<input type=\"hidden\" id=\"HId\"/><input type=\"hidden\" id=\"hStartDate\"/><input type=\"hidden\" id=\"hEndDate\"/><input type=\"hidden\" id=\"RId\"/> <input type=\"text\" id=\"UserName\"/></div><div class=\"hy1112\">密&nbsp;&nbsp;码： <input type=\"password\" id=\"UserPwd\"/></div><div id=\"hy1113\"><img src=\"/img/hr13.gif\" onclick=\"javascript:loginUser()\"/></div><div id=\"hy1114\"><a href=\"/ForgetPwd.aspx\" target=\"_blank\">忘记密码？</a></div><div id=\"hy1115\"><div id=\"hy11151\">通过大连旅程网(www.dl766.com)及其旗下网站大连假日旅行网预订酒店享受6项旅游超值大礼。<a href=\"/info/list_1.html\" target=\"_blank\"><font color=\"green\">[查看详情]</font></a></div></div></div><div id=\"hyright\"><div id=\"hyr1\"><div id=\"hrytop\"><div id=\"hyr11\"></div><div id=\"hyr12\">1、直接输入手机号码注册并预订</div><div id=\"hyr13\">手机号码：<input type=\"text\" id=\"UserMobile\" /></div><div id=\"hyr14\"><img src=\"/img/hr11.gif\" onclick=\"funFastRegUser(1)\" /></div></div><div id=\"hyrbottom\"><div id=\"hyrb1\">2、直接输入邮箱地址注册并预订</div><div id=\"hyrb2\">邮箱地址：<input type=\"text\" id=\"UserMail\" /></div><div id=\"hyrb3\"><img src=\"/img/hr11.gif\" onclick=\"funFastRegUser(2)\" /></div><div id=\"hyrb4\">您只需输入手机号或邮箱地址，系统将自动为您完成会员注册，用户名是您输入的手机号码或邮箱地址，登录密码系统自动发送到您的手机或邮箱里面。</div></div></div></div></div></div></div>");
function DivLoginVisible(sHId,sRId,pStartDate,pDateEnd)
        {
            if(pStartDate == null)
		    {
		        pStartDate = "";
		    }
		    if(pDateEnd == null)
		    {
		        pDateEnd = "";
		    }     
            var IfrRef = document.getElementById('ifLogin');
            IfrRef.style.display = "block";
            IfrRef.style.width = screen.width + "px";
            IfrRef.style.height = screen.height + "px";
            
            document.getElementById("loginDiv").style.display = "block";
            document.getElementById("loginDiv").style.height= screen.height + "px";
            document.getElementById("loginDiv").style.width= screen.width + "px";
            
            document.getElementById("hy1").style.display = "block";
            document.getElementById("hy1").style.top = (screen.height - 550)/2 + "px";
            document.getElementById("hy1").style.left = (screen.width - 500)/2  + "px";
            document.getElementById("HId").value = sHId;
            document.getElementById("RId").value = sRId;
            document.getElementById("hStartDate").value = pStartDate;
            document.getElementById("hEndDate").value = pDateEnd;
            location.href="#Login";
            
        }
        function LineYuding(sValue,sLId)
        {
            window.open("/line/order.aspx?LId=" + sLId,"_blank","");
        }
        	function funKefangyuding(sHId,sRId,pStartDate,pDateEnd)
		    {
		        if(pStartDate == null)
		        {
		            pStartDate = "";
		        }
		        if(pDateEnd == null)
		        {
		            pDateEnd = "";
		        }
		        //var sValueUser = document.getElementsByTagName("iframe")["UserOnline"].contentWindow.document.getElementById("txtIsUser").value;
		        //if(sValueUser == 0)
		        //{
		            //DivLoginVisible(sHId,sRId,pStartDate,pDateEnd);
		        //}
		        //else
		        //{
		            if(pStartDate == "")
		            {
		                window.open("/hotel/hotelorder.aspx?HId=" + sHId + "&RId=" + sRId,"_blank","");
		            }
		            else
		            {
		                window.open("/hotel/hotelorder.aspx?HId=" + sHId + "&RId=" + sRId + "&StartDate=" + pStartDate + "&EndDate=" + pDateEnd ,"_blank","");
		            }
		        //}
		    }
		    function loginUser()
		    {
		        var sUserName = document.getElementById("UserName").value;
		        if(sUserName == "")
		        {
		            alert("请输入用户名");
		            document.getElementById("UserName").focus();
		            return false;
		        }
		        var sUserPwd = document.getElementById("UserPwd").value;
		        if(sUserPwd == "")
		        {
		            alert("请输入密码");
		            document.getElementById("UserPwd").focus();
		            return false;
		        }
		        var sHId = document.getElementById("HId").value;
                var sRId = document.getElementById("RId").value;
                var sStartDate = document.getElementById("hStartDate").value;
                var sEndDate = document.getElementById("hEndDate").value;
                document.getElementById("UserName").value = "";
                document.getElementById("UserPwd").value = "";
                document.form1.action = "/hotel/hotelorder.aspx";
		        document.form1.submit();
		        location.href = "/huiyuan/LoginCheck.aspx?UserName=" + sUserName + "&UserPwd=" + sUserPwd + "&HId=" + sHId + "&RId=" + sRId + "&StartDate=" + sStartDate + "&EndDate=" + sEndDate;
		    }
		    
		    function funFastRegUser(iType)
		    {   
		        sUserName = "";
		        if(iType == 1)
		        {
		            sUserName = document.getElementById("UserMobile").value;
		        }
		        if(iType == 2)
		        {
		            sUserName = document.getElementById("UserMail").value;
		        }
		        eval("aryItem = " + AreaObj + ".FastRegUser('" + sUserName + "'," + iType + ").value;");
		        if(aryItem[0] == 0)
		        {
		            alert(aryItem[1]);
		            return false;
		        }
		        if(aryItem[0] == 1)
		        {
		            alert(aryItem[1]);
		            sHId = document.getElementById("HId").value;
                    sRId = document.getElementById("RId").value;
                    pStartDate = document.getElementById("hStartDate").value;
                    pDateEnd = document.getElementById("hEndDate").value;
		            location.href = "/huiyuan/LoginCheck.aspx?UserName=" + aryItem[2] + "&UserPwd=" + aryItem[3] + "&HId=" + sHId + "&RId=" + sRId + "&StartDate=" + pStartDate + "&EndDate=" + pDateEnd;
		            return false;
		        }
		         if(aryItem[0] == 2)
		        {
		            if(confirm(aryItem[1]))
		            {
		                window.open("/ForgetPwd.aspx" ,"_blank","");
		            }
		            return false;
		        }
		    }
		    /*var GouqingTimeId1;
		    function GuoqingImg1()
		    {
		        document.getElementById("gouqing").style.display = "block";
		        document.getElementById("objGouqing").filters.alpha.opacity += 1;
		        if(document.getElementById("objGouqing").filters.alpha.opacity == 100)
		        {
		            window.clearInterval(GouqingTimeId);
		            setTimeout("GuoqingImg2()",5000) ;
		        }
		    }
		    function GuoqingImg2()
		    {
		        
		        GouqingTimeId1 = setInterval("GuoqingImg3()",50);
		    }
		    function GuoqingImg3()
		    {
		        
		        document.getElementById("objGouqing").filters.alpha.opacity -= 1;
		        if(document.getElementById("objGouqing").filters.alpha.opacity == 0)
		        {
		            document.getElementById("gouqing").style.display = "none";
		            window.clearInterval(GouqingTimeId1);
		        }
		    }*/
		    









