﻿// JScript 文件

function beij()
{
    var num_list=document.getElementsByTagName("td");
    for(i=0;i<num_list.length;i++)
    {
        if(num_list[i].innerText=="质"||num_list[i].innerText=="合")
        {
            num_list[i].className="num";
        }
    }
for(i=1;i<document.getElementById("dltpic").rows.length-1;i++)
{
   if(document.getElementById("dltpic").rows[i].children(9).innerText=="质")
    {

        if(document.getElementById("dltpic").rows[i+1].children(9).innerText=="质")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(9)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(9)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(9).innerText=="质")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(11).innerText=="质")
    {

        if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="质")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="质")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(13).innerText=="质")
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="质")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="质")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }

}
}
var absPosition = function(element){
	var iTop = iLeft = 0;
	do{
		iTop += element.offsetTop+2;
		iLeft += element.offsetLeft+3;
	}while(element = element.offsetParent);
	return {'x': iLeft, 'y': iTop};
 } 
 
 //iframe自动适应
 function SetCwinHeight()
 { 
    var bobo=document.getElementById("bobo"); //iframe id 
    if (document.getElementById)
    { 
        if (bobo && !window.opera)
        { 
            if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight)
            { 
                bobo.height = bobo.contentDocument.body.offsetHeight; 
            }
            else if(bobo.Document && bobo.Document.body.scrollHeight)
            { 
                bobo.height = bobo.Document.body.scrollHeight; 
            } 
        } 
    } 
} 
//奇偶显示
function jo()
{
    var num_list=document.getElementsByTagName("td");
    for(i=0;i<num_list.length;i++)
    {
        if(num_list[i].innerText=="奇"||num_list[i].innerText=="偶")
        {
            num_list[i].className="num";
        }
    }
for(i=1;i<document.getElementById("dltpic").rows.length-1;i++)
{
   if(document.getElementById("dltpic").rows[i].children(9).innerText=="奇")
    {

        if(document.getElementById("dltpic").rows[i+1].children(9).innerText=="奇")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(9)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(9)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(9).innerText=="奇")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(11).innerText=="奇")
    {

        if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="奇")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="奇")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(13).innerText=="奇")
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="奇")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="奇")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }

}
}
//大小显示
function dx()
{
    var num_list=document.getElementsByTagName("td");
    for(i=0;i<num_list.length;i++)
    {
        if(num_list[i].innerText=="大"||num_list[i].innerText=="小")
        {
            num_list[i].className="num";
        }
    }
for(i=1;i<document.getElementById("dltpic").rows.length-1;i++)
{
   if(document.getElementById("dltpic").rows[i].children(9).innerText=="大")
    {

        if(document.getElementById("dltpic").rows[i+1].children(9).innerText=="大")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(9)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(9)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(9).innerText=="大")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(9)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(11).innerText=="大")
    {

        if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="大")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="大")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(13).innerText=="大")
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="大")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="大")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'"   to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }

}
}
//012路显示
function p012()
{
var count=document.getElementById("dltpic").rows.length;
//alert(count);
    var num_list=document.getElementsByTagName("td");
    /*alert(num_list[3].innerText)
    for(i=14;i<num_list.length;i++)
    {
    
        if(num_list[i].innerText=="0"||num_list[i].innerText=="1"||num_list[i].innerText=="2")
        {
            num_list[i].className="num";
        }
    }*/
  for(i=1;i<count;i++)
  {
       if(i==1)
       {
            for(k=14;k<23;k++)
            {
                if(num_list[k].innerText=="0"||num_list[k].innerText=="1"||num_list[k].innerText=="2")
                {
                    num_list[k].className="num";
                }
            }
       }
       else
       {
            for(j=33+19*(i-2);j<42+19*(i-2);j++)
            {
                if(j>num_list.length-1)
                {
                    break;
                }
                else
                {
                    if(num_list[j].innerText=="0"||num_list[j].innerText=="1"||num_list[j].innerText=="2")
                    {
                        num_list[j].className="num";
                    }
                }
            }
        }
    }
    
for(i=1;i<document.getElementById("dltpic").rows.length-1;i++)
{
   if(document.getElementById("dltpic").rows[i].children(10).innerText=="0")
    {

        if(document.getElementById("dltpic").rows[i+1].children(10).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(10)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else if(document.getElementById("dltpic").rows[i].children(11).innerText=="1")
    {
        if(document.getElementById("dltpic").rows[i+1].children(10).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(11)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(10).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(10)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(11).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(11)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(12)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(12)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(13).innerText=="0")
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(14).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(13)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(15)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(15)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else if(document.getElementById("dltpic").rows[i].children(14).innerText=="1")
    {
        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(14).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(14)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(15)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(15)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(13).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(15)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(15)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(13)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(14).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(15)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(15)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(14)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(15)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(15)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(15)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(15)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    
    if(document.getElementById("dltpic").rows[i].children(16).innerText=="0")
    {

        if(document.getElementById("dltpic").rows[i+1].children(16).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(16)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(16)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(16)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(16)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(17).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(16)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(16)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(17)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(17)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(16)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(16)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(18)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(18)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
    else if(document.getElementById("dltpic").rows[i].children(17).innerText=="1")
    {
        if(document.getElementById("dltpic").rows[i+1].children(16).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(17)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(17)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(16)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(16)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(17).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(17)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(17)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(17)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(17)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(17)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(17)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(18)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(18)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
    }
    else
    {

        if(document.getElementById("dltpic").rows[i+1].children(16).innerText=="0")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(18)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(18)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(16)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(16)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);   
        }
        else if(document.getElementById("dltpic").rows[i+1].children(17).innerText=="1")
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(18)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(18)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(17)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(17)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }
        else
        {
            var line='<v:line strokeweight="1px" strokecolor="blue" from="'+absPosition(document.getElementById("dltpic").rows[i].children(18)).x+','+absPosition(document.getElementById("dltpic").rows[i].children(18)).y+'" to="'+absPosition(document.getElementById("dltpic").rows[i+1].children(18)).x+','+absPosition(document.getElementById("dltpic").rows[i+1].children(18)).y+'"/>';   
            document.body.insertAdjacentHTML('afterBegin',line);
        }

    }
}
}

//和尾划线
function hwhx()
{
var num_list=document.getElementsByTagName("td");
//存储坐标
var num_listh=new Array();
var num=0;
    for(j=10;j<num_list.length-1;j++)
    {
        if(num_list[j].className=="num")
        {
            num_listh[num]=absPosition(num_list[j]).x-390;
            num++;
            num_listh[num]=absPosition(num_list[j]).y+5;
            num++;
        }
    }
for(i=0;i<num_listh.length-2;i++)
	{
		var line='<v:line strokeweight="1px" strokecolor="blue" from="'+num_listh[i]+','+num_listh[i+1]+'" to="'+num_listh[i+2]+','+num_listh[i+3]+'"/>';   
		
            document.body.insertAdjacentHTML('afterBegin',line);
            //alert(line);
			i++;
	}
}
//和值划线
function hwhz()
{
var num_list=document.getElementsByTagName("td");
//存储坐标
var num_listh=new Array();
var num=0;
    for(j=10;j<num_list.length-1;j++)
    {
        if(num_list[j].className=="ybei1")
        {
            num_listh[num]=absPosition(num_list[j]).x-390;
            num++;
            num_listh[num]=absPosition(num_list[j]).y+5;
            num++;
        }
    }
for(i=0;i<num_listh.length-2;i++)
	{
		var line='<v:line strokeweight="1px" strokecolor="blue" from="'+num_listh[i]+','+num_listh[i+1]+'" to="'+num_listh[i+2]+','+num_listh[i+3]+'"/>';   
		
            document.body.insertAdjacentHTML('afterBegin',line);
            //alert(line);
			i++;
	}
}