﻿//为导航添加连接
$(document).ready(function(){
    if($("#secondNavigation")!=null)
    {
        if($("#secondNavigation").get(0)!= undefined)
        {
            $("#secondNavigation").get(0).href = GetHref($("#secondNavigation").get(0).innerText);
        }
    }
})
//页面加载时让屏幕铺满
$(document).ready(function(){
    var ieHeight = document.body.offsetHeight;//得到浏览器可工作区的高度
    var workHeight=parseInt(ieHeight)-350;
    if($(".inside_contend")!=null)
    if($(".inside_contend").get(0)!=null)
    {
        if($(".inside_contend").get(0).scrollHeight<parseInt(workHeight))
        {
            $(".inside_contend").get(0).style.height= ($(".inside_contend").get(0).scrollHeight + parseInt(workHeight)-$(".inside_contend").get(0).scrollHeight).toString()+"px";
        }
    }
})

//页面加载修改导航的高度
$(document).ready(function(){
    if($(".right_template_01 table").get(0)!=null)
    {
        $(".right_template_01 table").attr("height","25px");
    }
})

function UploadFileGo(strgcbh, isOwnProject) 
{ 
   if(isOwnProject == 0)
   {            
    return false;
    }
   try
     {
	   SZCAOcx.AxInit();		
	   //过滤CA证书
	    SetCertFilter(1,0);    
	    //检查成功，您的环境符合要求
	    document.getElementById("ctl00_cph_context_hfCaValue").value=GetKeyInfo() ;
	    document.getElementById("ctl00_cph_context_lblGcbh").value = strgcbh ;
      }
        catch(e)
     {
     alert("没有安装深圳建设工程交易服务网驱动程序，请下载安装");
     return false;
     }
  }