function show_nofocus(sender) {
    $(sender).css({ "background": "url(/images/onseden_button_02.png) no-repeat -2px -200px","color":"#666666" });
}
function show_girl_r()//推荐女会员
{
    $("#girl_recommend").css("display","block");
    $("#girl_new").css("display", "none");
    $("#boy_recommend").css("display", "none");
    $("#boy_new").css("display", "none");
    $("#user_girl_r").css({ "background": "url(/images/onseden_button_02.png) no-repeat -2px -235px", "color": "#fff" });
    $("#user_girl_new").attr("className","users");
    $("#user_boy_r").attr("className","users");
    $("#user_boy_new").attr("className", "users");
}
function show_girl_new()//最新女会员
{
    $("#girl_recommend").css("display", "none");
    $("#girl_new").css("display", "block");
    $("#boy_recommend").css("display", "none");
    $("#boy_new").css("display", "none");
    show_nofocus($("#user_girl_r"));
    $("#user_girl_new").css({ "background": "url(/images/onseden_button_02.png) no-repeat -2px -235px", "color": "#fff" });
    show_nofocus($("#user_boy_r"));
    show_nofocus($("#user_boy_new"));
}
function show_boy_r()//推荐男会员
{
    $("#girl_recommend").css("display", "none");
    $("#girl_new").css("display", "none");
    $("#boy_recommend").css("display", "block");
    $("#boy_new").css("display", "none");
    show_nofocus($("#user_girl_r"));
    show_nofocus($("#user_girl_new"));
    $("#user_boy_r").css({ "background": "url(/images/onseden_button_02.png) no-repeat -2px -235px", "color": "#fff" });
    show_nofocus($("#user_boy_new"));
}
function show_boy_new()//最新男会员
{
    $("#girl_recommend").css("display", "none");
    $("#girl_new").css("display", "none");
    $("#boy_recommend").css("display", "none");
    $("#boy_new").css("display", "block");
    show_nofocus($("#user_girl_r"));
    show_nofocus($("#user_girl_new"));
    show_nofocus($("#user_boy_r"));
    $("#user_boy_new").css({ "background": "url(/images/onseden_button_02.png) no-repeat -2px -235px", "color": "#fff" });
}
function show_onsbplus()//ONS币奖励
{
    $("#onsb_plus").css("display", "block");
    $("#onsb_cut").css("display", "none");

    $("#onsbplusing").attr("className", "onspuls");
    $("#onsbcuting").attr("className","onscut");
}
function show_onsbcut()//ONS币惩罚
{
    $("#onsb_plus").css("display", "none");
    $("#onsb_cut").css("display", "block");

    $("#onsbplusing").attr("className", "onscut");
    $("#onsbcuting").attr("className", "onspuls");
}

//input事件
function input_onBlurU() {
    var $Key_Username = $('#Key_Username').val();

    if ($.trim($Key_Username) == '') {
        document.all.Key_Username.value = '请输入登录邮箱';
    }

}
function input_onBlurK() {
    var $itcity = $('#itcity').val();

    if ($.trim($itcity) == '') {
        document.all.itcity.value = '请输入城市关键字...例如:北京';
    }

}
function input_onBlurK9() {
    var $itcity = $('#itcity').val();

    if ($.trim($itcity) == '') {
        document.all.itcity.value = '请输入用户名/QQ号码...';
    }

}
function input_onBlurP() {
    var $Key_Password = $('#Key_Password').val();

    if ($.trim($Key_Password) == '') {
        document.all.Key_Password.value = '密码';
    }

}
function input_onFocusU() {
    var $Key_Username = $('#Key_Username').val();

    if ($.trim($Key_Username) == '请输入登录邮箱') {
        document.all.Key_Username.value = '';
    }

}
function input_onFocusK() {
    var $itcity = $('#itcity').val();

    if ($.trim($itcity) == '请输入城市关键字...例如:北京') {
        document.all.itcity.value = '';
    }

}
function input_onFocusK9() {
    var $itcity = $('#itcity').val();

    if ($.trim($itcity) == '请输入用户名/QQ号码...') {
        document.all.itcity.value = '';
    }

}

function input_onFocusP() {
    var $Key_Password = $('#Key_Password').val();

    if ($.trim($Key_Password) == '密码') {
        document.all.Key_Password.value = '';
    }

}

function changeboy() {
    var $itsex = $('#itsex').val();

    document.all.itsex.value = '男';

}
function changegirl() {
    var $itsex = $('#itsex').val();

    document.all.itsex.value = '女';

}
