var sStyleWeight1;
var sStyleWeight2;
var sStyleWeight3;
var sStyleWeight4; 

function loadText()
    {
    var txtLang = document.getElementsByName("txtLang");
    txtLang[0].innerHTML = "\u5b57\u9ad4 ";
    txtLang[1].innerHTML = "\u6a23\u5f0f ";
    txtLang[2].innerHTML = "\u5927\u5c0f ";
    txtLang[3].innerHTML = "\u524d\u666f\u8272\u5f69 ";
    txtLang[4].innerHTML = "\u80cc\u666f\u8272\u5f69 ";
    txtLang[5].innerHTML = "\u6548\u679c ";
    
    txtLang[6].innerHTML = "\u6587\u5b57\u88dd\u98fe ";
    txtLang[7].innerHTML = "\u5927\u5c0f\u5beb ";
    txtLang[8].innerHTML = "\u8ff7\u4f60\u5c0f\u5beb ";
    txtLang[9].innerHTML = "\u5782\u76f4 ";

    txtLang[10].innerHTML = "\u6c92\u6709\u8a2d\u5b9a ";
    txtLang[11].innerHTML = "\u5e95\u7dda ";
    txtLang[12].innerHTML = "\u4e0a\u52a0\u7dda ";
    txtLang[13].innerHTML = "\u522a\u9664\u7dda ";
    txtLang[14].innerHTML = "\u6c92\u6709 ";

    txtLang[15].innerHTML = "\u6c92\u6709\u8a2d\u5b9a ";
    txtLang[16].innerHTML = "\u6a19\u984c\u5927\u5beb ";
    txtLang[17].innerHTML = "\u5168\u90e8\u5927\u5beb ";
    txtLang[18].innerHTML = "\u5168\u90e8\u5c0f\u5beb ";
    txtLang[19].innerHTML = "\u6c92\u6709 ";

    txtLang[20].innerHTML = "\u6c92\u6709\u8a2d\u5b9a ";
    txtLang[21].innerHTML = "\u5927\u5beb ";
    txtLang[22].innerHTML = "\u666e\u901a ";

    txtLang[23].innerHTML = "\u6c92\u6709\u8a2d\u5b9a ";
    txtLang[24].innerHTML = "\u4e0a\u6a19 ";
    txtLang[25].innerHTML = "\u4e0b\u6a19 ";
    txtLang[26].innerHTML = "\u76f8\u5c0d ";
    txtLang[27].innerHTML = "\u57fa\u6e96\u7dda ";
    
    txtLang[28].innerHTML = "\u5b57\u5143\u9593\u8ddd ";
    txtLang[29].innerHTML = "\u9810\u89bd ";
    txtLang[30].innerHTML = "\u61c9\u7528\u81f3 ";

    var optLang = document.getElementsByName("optLang");
    optLang[0].text = "\u6a19\u6e96 "
    optLang[1].text = "\u659c\u9ad4 "
    optLang[2].text = "\u7c97\u9ad4 "
    optLang[3].text = "\u7c97\u9ad4\u52a0\u659c\u9ad4 "
    
    optLang[0].value = "Regular"
    optLang[1].value = "Italic"
    optLang[2].value = "Bold"
    optLang[3].value = "Bold Italic"
    
    sStyleWeight1 = "Regular"
    sStyleWeight2 = "Italic"
    sStyleWeight3 = "Bold"
    sStyleWeight4 = "Bold Italic"
    
    optLang[4].text = "\u4e0a "
    optLang[5].text = "\u4e2d "
    optLang[6].text = "\u4e0b "
    optLang[7].text = "\u6587\u5b57\u4e0a\u65b9 "
    optLang[8].text = "\u6587\u5b57\u4e0b\u65b9 "
    optLang[9].text = "\u5df1\u9078\u6587\u5b57 "
    optLang[10].text = "\u5df1\u9078\u6a19\u97f1 "
    
    document.getElementById("btnPick1").value = "\u8272\u5f69 ";
    document.getElementById("btnPick2").value = "\u8272\u5f69 ";

    document.getElementById("btnCancel").value = "\u53d6\u6d88 ";
    document.getElementById("btnApply").value = "\u61c9\u7528 ";
    document.getElementById("btnOk").value = " \u78ba\u8a8d  ";
    }
function getText(s)
    {
    switch(s)
        {
        case "Custom Colors": return "\u81ea\u8a02\u8272\u5f69 ";
        case "More Colors...": return "\u66f4\u591a\u8272\u5f69 ...";
        default: return "";
        }
    }    
function writeTitle()
    {
    document.write("<title>\u6587\u5b57\u683c\u5f0f </title>")
    }