/**
 * 点击友情链接
 */
function showLinks(obj) {
    var url = obj.value;
    if (url != "") {
        window.open("http://" + url);
    }
}

/**
 * 点击社会工作者
 */
function goWorker(){
    var url = appName + "/wnews.go?flag=worker&unit_class=" + unit_class + 
                  "&unit_id=" + unit_id;
    window.open(url);
}

/**
 * 点击救助
 */
function goHelp(){
    var url = appName + "/wnews.go?flag=help&unit_class=" + unit_class + 
                  "&unit_id=" + unit_id;
    window.open(url);
}
/**
 * 网上调查投票
 */
function addPoll() {
    investigateForm.submit();
}
/*
 * 网上调查显示结果
 */
function showResult(){
    window.open("investigate.go?flag=seeResult&inid="+investigateForm.inid.value);  
}
/**
 * 网上调查投票成功
 */
function showSuc(){
    document.getElementById("showMsg").innerHTML = "<font color='red'>&nbsp;&nbsp;&nbsp;投票成功！</font>";
}
/**
 * 网上调查投票失败
 */
function showError() {
   document.getElementById("showMsg").innerHTML = "<font color='red'>&nbsp;&nbsp;&nbsp;投票失败！</font>";
}
/*
 * 链接到民政局网站
 */
function goMzj(){
    window.open("http://www.btsmz.gov.cn/");
}
