﻿/// <reference path="../extjs_intellisense.js" />
document.onload = function() {
pageLoad();
if (typeof (InitializationSpaceGame) != "undefined")
    InitializationSpaceGame("gameList", "gameAreaList", "gameServerList");
}
function pageLoad() {
    
}
function CopyToClipBoard(clipBoardContent) {
    window.clipboardData.setData("Text", clipBoardContent);
    alert("以下地址复制成功，请粘贴到您的91U/QQ/MSN上推荐给您的好友：\n\n" + clipBoardContent);
}
function searchKeyFocus(obj) {
    if (obj.value == '请输入姓名') {
        obj.value = '';
        obj.style.color = '#000000';
    }
}
function searchKeyBlur(obj) {
    if (obj.value == '') {
        obj.value = '请输入姓名';
        obj.style.color = '#707070';
    }
}
function searchForLogin() {
    var key = document.getElementById("searchKey").value();
    if (key == "" || key == "请输入姓名或角色名") {
        key = " ";
    }
    var url = "&gnk=" + escape(key);
    if (document.getElementById("hidgameList").value() != "-1") {
        url += "&gin=" + document.getElementById("hidgameList").value();
    }
    if (document.getElementById("hidgameAreaList").value() != "-1") {
        url += "&gar=" + document.getElementById("hidgameAreaList").value();
    }
    if (document.getElementById("hidgameServerList").value() != "-1") {
        url += "&gsr=" + document.getElementById("hidgameServerList").value();
    }
    url = "/gsearch?from=1" + url;
    window.open(url);
}
function searchNameForLogin() {
    var key = document.getElementById("searchKey").value();
    if (key == "" || key == "请输入姓名或角色名") {
        key = " ";
    }
    var url = "&gnk=" + escape(key);
    url = "/gsearch?from=1" + url;
    window.open(url);
}