﻿<!--
document.write("<script type='text/javascript' src='/js/search.js'></script>");
document.write("<script type='text/javascript' src='/js/jquery.js'></script>");
document.write("<script type='text/javascript' src='/js/HG.Core.js'></script>");
document.write("<script type='text/javascript' src='/js/HG.Dialog.js'></script>");
document.write("<script type='text/javascript' src='/js/jquery.dimensions.js'></script>");    
    
var str = "<table width='1003' border='0' cellpadding='0' cellspacing='0' background='/images/02.gif'>" +
    "<tr>" +
      "<td height='23' align='right' background='/images/pic-01.gif' class='STYLE4'><img src='/images/pic-02.gif' width='15' height='13' align='absmiddle'>&nbsp; <span id='ShowDate'></span> &nbsp;&nbsp;<img src='/images/pic-03.gif' width='10' height='11'>&nbsp;<a href='#' onClick='this.style.behavior=\"url(#default#homepage)\";this.setHomePage(\"http://www.cdrd.gov.cn\");'>设为首页</a> <a target=_top href='javascript:window.external.addFavorite(\"http://www.cdrd.gov.cn\",\"成都人大网站\");'>加入收藏</a>&nbsp;</td>" +
    "</tr>" +
    "<tr>" +
      "<td height='179'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='1003' height='179'>" +
        "<param name='movie' value='/images/flash.swf'>" +
        "<param name='quality' value='high'>" +
       
        

        "<embed src='/images/flash.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='1003' height='179' wmode='opaque'></embed>" +
      "</object></td>" +
    "</tr>" +
    "<tr>" +
      "<td height='30' class='STYLE4'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>" +
        "<tr>" +
          "<td width='632'><table  width='632' height='30' border='0' cellpadding='0' cellspacing='0'>" +
              "<tr id='navigates'>" +
                "<td><img onclick='setHref(\"/\")'     style='cursor:hand;' id='navigate1' src='/images/a_01.gif' width='41' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/zrzc\")' style='cursor:hand;' id='navigate2' src='/images/a_02.gif' width='71' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/rdjg\")' style='cursor:hand;' id='navigate3' src='/images/a_03.gif' width='70' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/fzsc\")' style='cursor:hand;' id='navigate4' src='/images/a_04.gif' width='70' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/jdjc/gzjd\")' style='cursor:hand;' id='navigate5' src='/images/a_05.gif' width='70' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/zdsxjd\")' style='cursor:hand;' id='navigate6' src='/images/a_06.gif' width='97' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/rsrm\")' style='cursor:hand;' id='navigate7' src='/images/a_07.gif' width='69' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/jjdb\")' style='cursor:hand;' id='navigate8' src='/images/a_08.gif' width='71' height='30' alt=''></td>" +
                "<td><img onclick='setHref(\"/hdcy/InteraPar.html\")' style='cursor:hand;' id='navigate9' src='/images/a_09.gif' width='73' height='30' alt=''></td>" +
              "</tr>" +
          "</table></td>" +
          "<td width='23'><img src='/images/a_10.gif' width='23' height='30'></td>" +
          "<td background='/images/a_11.gif' class='STYLE4'>" +
              "信息检索&nbsp;" +
              "<input name='textfield' type='text' class='STYLE4' style='width: 100px'>" +
              "&nbsp;&nbsp;" +
              "<img src='/images/a_12.gif' onclick='search()' style='cursor:hand;' width='46' height='16' align='absmiddle'>&nbsp;&nbsp;&nbsp;&nbsp;" +
	      "<img src='/images/dl.gif' onclick='DelegatesShow()' style='cursor:hand;' align='absmiddle'>&nbsp;" +
            "</td>" +
        "</tr>" +
      "</table></td>" +
    "</tr>" +
  "</table>" +
  
    "<div id='Delegates' style='display:none;width:220px;height:120px;font-size:12px;'>" +
    "<iframe src='javascript:false;' scrolling='no' frameborder='0' style='position:absolute;width:220px;height:120px;top:0px; left:0px;z-index:9999;'></iframe>" +
    "<div style='position:absolute;top:0px; left:0px;width:220px;height:120px;border:solid 1px #e5b2b1;background-color:#E9E9E9;z-index:10000'>" +
    "<div style='width:100%;background-image:url(/images/14.gif);text-align:left;font-weight:bold;padding:3px 5px 3px 5px:'>人大代表登录</div>" +
    "<br />" +
        "<table border='0' cellpadding='0' cellspacing='0' style='width:100%;height:100%'>" +
            "<tr>" +
                "<td align='right' style='width:60px;font-size:12px;' >" +
                    "用户名：</td>" +
                "<td >" +
                    "<input type='text' id='UserName' style='width: 140px' onblur='DelegatesIsExist()' />" +
                "</td>" +
                "<td >" +
                "</td>" +
            "</tr>" +
            "<tr>" +
                "<td align='right' style='width:60px;font-size:12px;'>" +
                    "密码：</td>" +
                "<td >" +
                    "<input type='password' id='UserPassword' style='width: 140px' />" +
                "</td>" +
                "<td >" +
                "</td>" +
            "</tr>" +
            "<tr>" +
                "<td colspan='3' align='center' >" +
                    "<span id='DelegatesMessage' style='font-size:12px;'>&nbsp;</span>" +
                "</td>" +
            "</tr>" +
            "<tr>" +
                "<td colspan='3' align='center' >" +
                    "<input type='button' value=' 登录 ' onclick='DelegatesLogin()' />&nbsp;&nbsp;&nbsp;&nbsp;" +
                    "<input type='button' value=' 关闭 ' id ='DelegatesClose' />" +
                "</td>" +
            "</tr>" +
        "</table>" +
    "</div></div>";

document.write(str);

var pathname =  window.location.pathname.substr(1);
pathname = pathname.indexOf("/") == -1 ? "index" : pathname.substr(0,pathname.indexOf("/"));
if(pathname.length < 2) pathname = "index";

switch(pathname.toLowerCase()){
    case "index":
    {
        Navigate(1);
        break;
    }
    case "zrzc":
    {
        Navigate(2);
        break;
    }  
    case "rdjg":
    {
        Navigate(3);
        break;
    } 
    case "fzsc":
    {
        Navigate(4);
        break;
    } 
    case "jdjc":
    {
        Navigate(5);
        break;
    } 
    case "zdsxjd":
    {
        Navigate(6);
        break;
    } 
    case "rsrm":
    {
        Navigate(7);
        break;
    } 
    case "jjdb":
    {
        Navigate(8);
        break;
    } 
    case "hdcy":
    {
        Navigate(9);
        break;
    } 
}

var datep=new Date();  
document.getElementById("ShowDate").innerHTML=datep.getYear()+'年'+ (datep.getMonth() + 1) + '月'+datep.getDate()+'日'+' 星期'+'日一二三四五六'.charAt(new Date().getDay());


function Navigate(index)
{    
    var dom = document.getElementById("navigate"+index);
    dom.setAttribute("src",dom.getAttribute("src").replace("a_","b_"));
}

function setHref(url){
    window.location.href = url;
}

function DelegatesShow(){
window.open('http://www.cdrd.gov.cn:2009/dps/');
//        $("#Delegates").Dialog({   
//            maskColor : "#FFE2B9", //遮罩层的颜色,默认为#000000   
//            maskOpacity: 80,   //遮罩层透明度,默认为5   
//            left :"",          //对话框弹出时距离窗体左侧的位置   
//            top  :"",          //对话框弹出时距离窗体顶部的位置   
//                               //@left @top不填是默认显示在正中央   
//            animate:"",  //对话框弹出时的过度动画，默认为无效果 
//            draggable:false,    //是否可以拖拽   
//            dragHandle:"#Hand",//拖拽助手,当draggable为true是有效   
//            dragRange:"Range", //拖拽范围,当draggable为true是有效   
//                               //关于拖拽祥见HG.Drag   
//            close:"#DelegatesClose"     //触发关闭事件的对象，jquery选择器   
//        }) ;
    }
    function DelegatesIsExist(){            
        $.post("/AjaxMethod.aspx",{type:"DelegatesUserNameIsExist",UserName:$("#UserName").val()},function(m){
            $("#DelegatesMessage").text( m == "true" ? " " : "用户名不存在！");
        }); 
    }
    function DelegatesLogin(){
        if($("#UserName").val() == ""){
            $("#DelegatesMessage").text("用户名不能为空！");
            return;
        }
        if($("#UserPassword").val() == ""){
            $("#DelegatesMessage").text("密码不能为空！");
            return;
        }  
        $.post("/AjaxMethod.aspx",{type:"DelegatesLogin",UserName:$("#UserName").val(),UserPassword:$("#UserPassword").val()},function(m){
            if(m == "false"){
                $("#DelegatesMessage").text("用户名或密码错误！");
            }
            else{
                window.location.href = "/dbzl/DelegateList.aspx";
            }
        }); 
    }
    
-->
