﻿// JScript 文件
//首页登录用户信息
function checkdefaultLogin() 
{
    if(document.getElementById("txtUserName").value=="")
    {
        alert('请输入用户名！');
        document.getElementById("txtUserName").focus();
        return false;
    }
    if(document.getElementById("txtPassWord").value=="")
    {
        alert('请输入密码！');
        document.getElementById("txtPassWord").focus();
        return false;
    }
}

function checkfenLogin() 
{
    if(document.getElementById("txtLand").value=="")
    {
        alert('请输入用户名！');
        document.getElementById("txtLand").focus();
        return false;
     }
    if(document.getElementById("txtPassWord").value=="")
    {
        alert('请输入密码！');
        document.getElementById("txtPassWord").focus();
        return false;
     }
}
function chgTDColor(oTD) 
{
    oTD.style.cursor = "hand";
}
//首页查询js
function ChkSearch()
{
    var SearchKeys=document.getElementById("txtSearchKeys").value;
    if(SearchKeys=="")
    {
        window.location.href = "/job/search.aspx?area=zpningbo&searchkey=";
    }
    else
    {
        window.location.href = "/job/search.aspx?area=zpningbo&searchkey=" + encodeURI(SearchKeys);
    }
}
function doClick(linkId, e)
{    
    if(e.keyCode != 13)
    {
        return;
    }
    var fireOnThis = document.getElementById(linkId)
    if (document.createEvent)
    {
        ChkSearch();
    }
    else if (document.createEventObject)
    {
        ChkSearch();
    }
}
