﻿// JScript 文件
var img1 = new Image();
var img2 = new Image();
var img3 = new Image();
img1.src="Images/shangjiantou.jpg";
img2.src="Images/xiajiantou.jpg";
img3.src="Images/lookfortalentlankuai.jpg";
window.onload=function(){
}
function getID(id)
{
    return document.getElementById(id);
}
function ChangeState(id){
	if(id == "1"){
		getID("PostionDiv").style.background = "url("+img3.src+") no-repeat bottom";
		getID("PostionDiv").style.color = "#ffffff";
		getID("ListDiv").style.background = "none";
		getID("ListDiv").style.color = "#606060";
		getID("IntroDiv").style.color = "#606060";
		getID("IntroDiv").style.background = "none";
	}else if(id == "2"){
		getID("ListDiv").style.background = "url("+img3.src+") no-repeat bottom";
		getID("ListDiv").style.color = "#ffffff";
		getID("PostionDiv").style.color = "#606060";
		getID("IntroDiv").style.color = "#606060";
		getID("PostionDiv").style.background = "none";
		getID("IntroDiv").style.background = "none";
		changeClose();
	}else{
		getID("IntroDiv").style.background = "url("+img3.src+") no-repeat bottom";
		getID("IntroDiv").style.color = "#ffffff";
		getID("PostionDiv").style.color = "#606060";
		getID("ListDiv").style.color = "#606060";
		getID("PostionDiv").style.background = "none";
		getID("ListDiv").style.background = "none";
		changeOpen();
	}
}
function changeOpen(){
    for(var i=0;i<20;i++)
    {
        var id="tr"+ i;
        getID(id).style.display ="block";
    }
}
function changeClose(){
    for(var i=0;i<20;i++)
    {
        var id="tr"+ i;
        getID(id).style.display ="none";
    }
}
function showtrDiv(desc_id,arror_id){
    if(getID(desc_id).style.display == "none")
    {
        getID(desc_id).style.display = "block";
        getID(arror_id).style.background = "url(Images/lookfortalentshang.jpg) no-repeat";
    }
    else
    {
        getID(desc_id).style.display = "none";
        getID(arror_id).style.background = "url(Images/lookfortalentxia.jpg) no-repeat";
    }
}
function CheckAll(form){
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.Name != "chkAll")
e.checked = form.chkAll.checked;
}}
function CheckAll1(form){
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.Name != "chkAll_under")
e.checked = form.chkAll_under.checked;
}}
function changeWord(obj,id){
getID("class_position").style.color="#6d6d6d";
getID("class_position_type").style.color="#6d6d6d";
getID("class_position_Address").style.color="#6d6d6d";
if(id == 1){
getID("class_position").style.color="#ff0000";
getID("hid_word").value = "guanjianzi";
}else if (id == 3){
getID("class_position_type").style.color="#ff0000";
getID("hid_word").value = "gangwei";
}else{
getID("class_position_Address").style.color="#ff0000";
getID("hid_word").value = "gongzuodidian";
}}

