/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function changecon(menu,start,end){
    for(var i=1;i<=end;i++){
        var menutab=menu+"_tab"+i;
        var menucon=menu+"_con"+i;
        if(i==start){
            document.getElementById(menutab).style.background="url('sd_images/images/46.gif')";
            document.getElementById(menucon).style.display="block";
        }else{
            document.getElementById(menutab).style.background="url('sd_images/images/47.gif')";
            document.getElementById(menucon).style.display="none";
        }
    }
}
function showmenus(menu,start,end){
    for(var i=1;i<=end;i++){
        var menuid=menu+i;
        if(i==start){
            document.getElementById(menuid).style.display="block";
        }else{
            document.getElementById(menuid).style.display="none";
        }
    }
}
function checksan(){
    alert(1);
    var gongsi = document.getElementById("gongsi").value;
    var zhiwu = document.getElementById("zhiwu").value;
    var dizhi = document.getElementById("dizhi").value;
    if(gongsi.length < 1){
        alert("请填写单位名称！");
        document.getElementById("gongsi").focus;
        return false;
    }
    if(zhiwu.length < 1){
        alert("请填写职务！");
        document.getElementById("zhiwu").focus;
        return false;
    }
    if(dizhi.length < 1){
        alert("请填写联系地址！");
        document.getElementById("dizhi").focus;
        return false;
    }
    return true;
}


