﻿var Changed = true;
function Mea(value) {
    //if (Changed) {
        for (var i = 1; i <= 7; i++) {
            if (value == i) {
                document.getElementById("lia" + value).className = 'sy_bj_tp';
                document.getElementById("c_lia" + value).className = "sy_s_bj";
                document.getElementById("c_lia" + value).style.display = "block";
            } else {
                document.getElementById("lia" + i).className = '';
                document.getElementById("c_lia" + i).style.display = "none";
            }
        }
    //}
}

function Meaonclick(value) {
    for (var i = 1; i <= 7; i++) {
        if (value == i) {
            document.getElementById("lia" + value).className = 'sy_bj_tp';
            document.getElementById("c_lia" + value).className = "sy_s_bj";
            document.getElementById("c_lia" + value).style.display = "block";
        } else {
            document.getElementById("lia" + i).className = '';
            document.getElementById("c_lia" + i).style.display = "none";
        }
    }
    Changed = true;
}


var Changed1 = true;
function Mea1(value) {
    if (Changed1) {
        for (var i = 1; i <= 10; i++) {
            if (value == i) {
                document.getElementById("lib" + value).className = 'kuang_top';
                document.getElementById("c_lib" + value).className = "kuang_title";
                document.getElementById("c_lib" + value).style.display = "block";
            } else {
                document.getElementById("lib" + i).className = '';
                document.getElementById("c_lib" + i).style.display = "none";
            }
        }
    }
}

function Mea1onclick(value) {
    for (var i = 1; i <= 10; i++) {
        if (value == i) {
            document.getElementById("lib" + value).className = 'kuang_top';
            document.getElementById("c_lib" + value).className = "kuang_title";
            document.getElementById("c_lib" + value).style.display = "block";
        } else {
            document.getElementById("lib" + i).className = '';
            document.getElementById("c_lib" + i).style.display = "none";
        }
    }
    Changed1 = true;
}

function HideObject(value) {
    document.getElementById(value).style.display = "none";
}

$().ready(function() {
    $('#txta1').val("网页").focus(function() {
        if ($(this).val() == '网页') {
            $(this).val('');
            $(this).removeClass('sy_sb_kk');
            $(this).addClass('sy_sb_kk1');
            Changed = false;
        }
    });

    $('#txta2').val("新闻").focus(function() {
        if ($(this).val() == '新闻') {
            $(this).val('');
            $(this).removeClass('sy_sb_kk');
            $(this).addClass('sy_sb_kk1');
            Changed = false;
        }
    });

    $('#txta3').val("学校").focus(function() {
        if ($(this).val() == '学校') {
            $(this).val('');
            $(this).removeClass('sy_sb_kk');
            $(this).addClass('sy_sb_kk1');
            Changed = false;
        }
    });

    $('#txta4').val("专业").focus(function() {
        if ($(this).val() == '专业') {
            $(this).val('');
            $(this).removeClass('sy_sb_kk');
            $(this).addClass('sy_sb_kk1');
            Changed = false;
        }
    });

    $('#txta5').val("课程").focus(function() {
        if ($(this).val() == '课程') {
            $(this).val('');
            $(this).removeClass('sy_sb_kk');
            $(this).addClass('sy_sb_kk1');
            Changed = false;
        }
    });

    $('#txta6').val("学吧").focus(function() {
        if ($(this).val() == '学吧') {
            $(this).val('');
            $(this).removeClass('sy_sb_kk');
            $(this).addClass('sy_sb_kk1');
            Changed = false;
        }
    });

    $('#txta7').val("问学").focus(function() {
        if ($(this).val() == '问学') {
            $(this).val('');
            $(this).removeClass('sy_sb_kk');
            $(this).addClass('sy_sb_kk1');
            Changed = false;
        }
    });



    $('#txtb1').val("请输入中文或英文").focus(function() {
        if ($(this).val() == '请输入中文或英文') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb2').val("请输入中文或英文").focus(function() {
        if ($(this).val() == '请输入中文或英文') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb3').val("请输入运算式").focus(function() {
        if ($(this).val() == '请输入运算式') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb4').val("请输入汉语").focus(function() {
        if ($(this).val() == '请输入汉语') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb5').val("请输入成语").focus(function() {
        if ($(this).val() == '请输入成语') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb6').val("请输入歇后语").focus(function() {
        if ($(this).val() == '请输入歇后语') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb7').val("查看万年历").focus(function() {
        if ($(this).val() == '查看万年历') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb8').val("请输入如“北京天气”").focus(function() {
        if ($(this).val() == '请输入如“北京天气”') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb9').val("请输入如“192.168.0.1”").focus(function() {
        if ($(this).val() == '请输入如“192.168.0.1”') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });

    $('#txtb10').val("请输入如“北京邮编区号”").focus(function() {
        if ($(this).val() == '请输入如“北京邮编区号”') {
            $(this).val('');
            $(this).removeClass('input1');
            $(this).addClass('input2');
            Changed1 = false;
        }
    });
});