var publicjs = '<script language="JavaScript" src="/script/public.js"><\/script>'; 
var cookiejs = '<script language="JavaScript" src="/script/cookie.js"><\/script>'; 
document.write(publicjs);
document.write(cookiejs);

var dlgWidth=(window.screen.availWidth)*0.9;  
var dlgHeight=(window.screen.availHeight)*0.9;  
function TableMouseOver(Obj){
    Obj.style.backgroundColor='#F1EEEE';
}
function TableMouseOut(Obj){
    Obj.style.backgroundColor='';
}

function print_head(){
    var str = "";
    str = str
        + "  <table border=0 cellpadding='0' cellspacing='0'>"
        + "      <tr><td width=100% valign=bottom height=100%>"

        + "         <table width=100% height=150 valign=top border=0 cellspacing=0 cellpadding=0>"
        + "         <tr><td>"
        + "         <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='800' height='150'>"
        + "                    <param name=movie value='/images/kdx.swf'>"
        + "                    <param name=quality value=high>"
	+"			<param name='wmode' value='opaque'>"
        + "                    <embed src='/images/kdx.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='800' height='150'>"
        + "                    </embed> "
        + "                   </object>"
        + "         </td></tr></table>"
        
        //+ "         <table class=bannertable cellpadding='0' cellspacing='0' border=0>"
        //+ "          <tr><td></td></tr>"
        //+ "          </table>"
        + "         <table width=100% cellpadding='0' cellspacing='0' border=0>"
        + "         <tr>"
        + "           <td align='right' width=100% valign=bottom>"+menu()+"</td>"
        + "         </tr>"
        + "         </table>"
        + "      </td></tr>"
        + "  </table>"

        ;
        
    document.write(str);
    }

function menu() {
    var str = "<table width=100% cellpadding='0' cellspacing='0' border=0 background='/images/menubg.jpg'><tr>"
            + "<td width=632 align=center>"
            + "   <table width=100% cellpadding='0' cellspacing='0' border=0 ><tr><td width=100%>"
            + "    <table width=100% cellpadding='0' cellspacing='0' border=0><tr>"
            + "     <td width=32 align=left><img src='/images/menu0.jpg' border=0 width=32 height=92></td>"
            + "     <td width=100 align=left><a href='/' ><img src='/images/menu1.jpg' border=0 width=100 height=92></a></td>"
            + "     <td width=100 align=left><a href='/Content_Intro' ><img src='/images/menu2.jpg' border=0 width=100 height=92></a></td>"
            + "     <td width=100 align=left><a href='/Info_List' ><img src='/images/menu3.jpg' border=0 width=100 height=92></a></td>"
            + "     <td width=100 align=left><a href='/Product_List' ><img src='/images/menu4.jpg' border=0 width=100 height=92></a></td>"
            + "     <td width=100 align=left><a href='/Feedback_Add' ><img src='/images/menu5.jpg' border=0 width=100 height=92></a></td>"
            + "     <td width=100 align=left><a href='/contentus.htm' ><img src='/images/menu6.jpg' border=0 width=100 height=92></a></td>"
            + "    </tr></table>"
            + "   </td></tr>"
            + "   </table>"
            + "  </td>"
            + "<td valign=top>&nbsp;<iframe scrolling=no frameborder=0 height=30 width=150 src='/ServerDate'></iframe></td>"
            + "  </tr>"
            +"</table>"
            ;
    return str;
}

//左边联系方式
function print_intro(){
    var str = "  <table class=introtable cellpadding='0' cellspacing='0' border=0>"
            + "   <tr><td width=100%>"
            + "  <span class='red14'>"
			+ "&nbsp;&nbsp;&nbsp;&nbsp;公司地址：北京市海淀区<br>"
			+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;中关村北二条13号<br>"
			+ "&nbsp;&nbsp;&nbsp;&nbsp;邮&nbsp;&nbsp;&nbsp;&nbsp;编：100080<br>"
			+ "&nbsp;&nbsp;&nbsp;&nbsp;联系电话：010-62575267<br>"
			+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;010-82871576 <br>"
			+ "&nbsp;&nbsp;&nbsp;&nbsp;传&nbsp;&nbsp;&nbsp;&nbsp;真：010-62555887<br>"
			+ "&nbsp;&nbsp;&nbsp;&nbsp;E-mail&nbsp;&nbsp;：bjkdx@163.com "
			+ "</span>"
            + "   </td></tr>"
            + "  </table>"
			;
    document.write(str);
}

//左边产品
function print_product(){
    var str = ""
	        + "<a href='/Product_List'><img src='/images/product0.jpg' height=39 border=0></a>"
	        + "<a href='/Product_List?type=1'><img src='/images/product1.jpg' height=39 border=0></a>"
	        + "<a href='/Product_List?type=2'><img src='/images/product2.jpg' height=39 border=0></a>"
	        + "<a href='/Product_List?type=3'><img src='/images/product3.jpg' height=39 border=0></a>"
	        + "<a href='/Product_List?type=4'><img src='/images/product4.jpg' height=39 border=0></a>"
           /*
			+ "  <table width=100% cellpadding='0' cellspacing='0' border=0>"
            + "   <tr><td width=100% height=39>"
            + "   <a href='/Product_List?type=1'><img src='/images/product1.jpg' height=39 border=0></a>"
            + "   </td></tr>"
			+ "   <tr><td width=100% height=39>"
            + "   <a href='/Product_List?type=2'><img src='/images/product2.jpg' height=39 border=0></a>"
            + "   </td></tr>"
            + "   <tr><td width=100% height=39>"
            + "   <a href='/Product_List?type=3'><img src='/images/product3.jpg' height=39 border=0></a>"
            + "   </td></tr>"
            + "   <tr><td width=100%>"
            + "   <img src='/images/product0.jpg' border=0 height=21>"
            + "   </td></tr>"
            + "  </table>"
			*/
			;
    document.write(str);
}
 

//首页用
function print_foot(){
    var str = "";
    str = str
        + " <table  border='0' cellpadding='0' class='bottomtable'>"
        + "   <tr>"
        + "           <td style='height:30px' align='center'>"
        + "           <span class='style14'>北京科迪信生物技术开发中心</span>&nbsp;&nbsp;<span class='style12'>@2007  京ICP备08011035号</td></tr>"
        + "           <tr><td style='height:30px' align='center'><span class='style14'>"
        +"关键字：科迪信、北京科迪信、光疗仪、冲洗器、阴道镜、妇科设备、光谱、红外光"
		+"  <br>您是第 "
		//+"<%= new java.util.Date() %>"
			//+" <script src='http://www.kedixin.cn:8081/page_Count' language='JavaScript'></script>"
		+"<iframe name='countframe' width=66px height=19px noresize scolling=no frameborder=0 marginwidth=0 marginheight=0  src='/page_Count'></iframe>"
		+" 名访问者"
        + "           </span></td>"
        + "           <td style='width:50px' align='center'>"
        + "           <span class='style12'><a class=linkred12 href='/Opt_Login' target=_blank>管理</a></span>"
        + "           </td>"
        + "  </tr>"
        + "</table>"
        ;
    document.write(str);
}

//内页用
function print_foot2(){
    var str = "";
    str = str
        + " <table  border='0' cellpadding='0' cellspacing='0' class='bottomtable'>"
        + "  <tr><td width=100% height=5 >"
		+ "   <tr>"
        + "    <td style='height:28px' align='center' valign='center' width=100% bgcolor='#C2C1BF'>"
        + "    <span class='red14'>北京科迪信生物技术开发中心</span>&nbsp;&nbsp;<span class='red12'>@2007  京ICP备08011035号</span>"//<br><br>地址：北京市海淀区中关村北二条13号,100080<br>电话：010-62575267&nbsp;&nbsp;010-82871567&nbsp;&nbsp;传真：010-82871567-612<br>Ｅ-ＭＡＩＬ：webmaster@kedixin.cn&nbsp;&nbsp;&nbsp;<br>"
        + "    </td>"
        + "  </tr>"
        + "</table>"
        ;
    document.write(str);
}

function printIFrame(srcurl){
    var str="<table id=iframeTable width=100%>"
           +"   <tr><td valign=top>"
           +"    <iframe allowTransparency='true' name='identframe' scrolling='no' frameborder=0 class='editiframe'></iframe>"
           +"   </td></tr>"
           +"</table>"
           ;
   document.write(str);
   if (srcurl!="")
       document.all.identframe.src=srcurl;
}


function chkEmail(checkStr){
    if (checkStr=="")  return false;
    if (checkStr.length < 6)  return false;

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_@.";
    var allValid = true;
    for (i = 0;  i < checkStr.length;  i++){
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkOK.length;  j++)
            if (ch == checkOK.charAt(j))
                return false;
    }
    return true;

}


function webHttp(sAspFile){
    if (navigator.onLine==false)return "";
    var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.Open("POST", sAspFile, false);
    try    {
        xmlhttp.Send("<root></root>");
    }
    catch (exception){;}
    
    try    {
        var str=xmlhttp.responseText;
        return str;
    }
    catch (exception){return "";}
    return "";
}

function printTitle(value){
    var str="<br>"
	   + "<table class='maintable' border=0 cellpadding=0 cellspacing=0 align=center valign=top>"
       + "  <tr><td class='redtable' width=120>&nbsp;"+value+"</td><td class='titlebg'>&nbsp;</td></tr>"
       + "</table><br>"
       ;
    document.write(str);
}

/*信息标题*/
function printTitle1(value){
    var str="<table width=100% border=0 valign=top cellpadding=0 cellspacing=0>"
       +"  <tr>"
       +"  <td align=center width=60 height=50><img src='/images/long.jpg' border=0 width=47 height=47></td>"
       +"  <td align=left valign=center class=black14>"+value+"</td>"
       +"  </tr>"
       +"</table>"
       ;
    document.write(str);
}

//--------ok

function printHint(value){
    var str="<table class='table_hint'>"
       +"  <tr>"
       +"  <td width=100% align=right>"+value+"</td>"
       +"  </tr>"
       +"</table>"
       ;
    document.write(str);
}

function printDate(value, align){
    if (align==null) align="center";
    var str="<table class='table_hint'>"
       +"  <tr>"
       +"  <td width=100% align="+align+">"+value+"</td>"
       +"  </tr>"
       +"</table>"
       ;
    document.write(str);
}


/*
function printImg(img, mywidth, myheight){
    if (img=="") return  "";

    img = imgloadpath+img;
    var tmp_img = new Image();
    tmp_img.src = img;
    
    //if ( !tmp_img.attachEvent("onerror",oe))return "";

    var image_x = tmp_img.width;
    var image_y = tmp_img.height;

    if (mywidth==null) {mywidth = image_x;}
    if (myheight==null) myheight = image_y;
    if  (image_x > mywidth){
        tmp_img.height = image_y * mywidth / image_x;
        tmp_img.width = mywidth;

        if(tmp_img.height > myheight){
            tmp_img.width = tmp_img.width * myheight / tmp_img.height;
            tmp_img.height=myheight;
        }
    }
    else if(image_y > myheight){
        tmp_img.width = image_x * myheight / image_y;
        tmp_img.height=myheight;

        if(tmp_img.width > mywidth){
            tmp_img.height = tmp_img.height * mywidth / tmp_img.width;
            tmp_img.width=mywidth;
        }
    }

    var imgStr = "";
    if (tmp_img.width>=350){
        imgStr="<center><a href='"+img+"' target=_blank>"
                + "<img src='"+img+"' width='"+tmp_img.width+"' height='"+tmp_img.height+"' border=0>"
                + "</a></center><br>";
        document.write(imgStr);
    }
    else{
        imgStr="<a href='"+img+"' target=_blank>"
                +"<img src='"+img+"' width='"+tmp_img.width+"' height='"+tmp_img.height+"' border=0 align=left>"
                +"</a>";
        document.write(imgStr);
    }
    return imgStr;
}



function oe(){
   //alert("cant load img");
   return false;
}
*/


       
        
           
           
           
           
          
