HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/PSATR16S/TVI-parsing13_x150328.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CRPC6 TR016 Report</title>
<style type="text/css">
<!--
body {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	background: #ffffff;
	margin: 0; /* 比較好的做法是將 Body 元素的邊界與欄位間隔調整為零,以處理不同的瀏覽器預設值 */
	padding: 0;
	text-align: right; /* 這樣會讓容器在 IE 5* 瀏覽器內置中對齊。然後,文字會在 #container 選取器中設定為靠左對齊預設值 */
	color: #000000;
}
.oneColElsCtr #container {
	width: 46em;
	background: #FFFFFF;
	margin: 0 auto; /* 自動邊界 (搭配寬度) 會讓頁面置中對齊 */
	border: 0px solid #000000;
	text-align: left; /* 這樣做會覆寫 Body 元素上的 text-align: center。 */
}
.oneColElsCtr #mainContent {
	padding: 0 20px; /* 請記住,欄位間隔就是 Div 方塊內部的空間,而邊界就是 Div 方塊外部的空間 */
}
.oneColElsCtr table {
	text-align: right;
}
.oneColElsCtr {
	text-align: center;
}
-->
</style></head>

<body class="oneColElsCtr">
<?php

function GetBetweenTT($var1="",$var2="",$pool){
$temp1 = strpos($pool,$var1)+strlen($var1);
$result = substr($pool,$temp1,strlen($pool));
$dd=strpos($result,$var2);
if($dd == 0){
$dd = strlen($result);
}

return substr($result,0,$dd);
}

//echo "Get:".GetBetweenTT("a",",","abc efg h i,jk")."_zz<br>"; // returns: b


function get_between ($text, $s1, $s2) {
$mid_url = "";
$pos_s = strrpos($text,$s1);
$pos_e = strrpos($text,$s2);
for ( $i=$pos_s+strlen($s1) ; (( $i<($pos_e)) && $i < strlen($text)) ; $i++ ) {
$mid_url .= $text[$i];
}
return $mid_url;
}

function get_betweenC ($text, $s1, $s2) {
$mid_url = "";
$pos_s = strrpos($text,$s1);
$pos_e = strpos($text,$s2);
for ( $i=$pos_s+strlen($s1) ; (( $i<($pos_e)) && $i < strlen($text)) ; $i++ ) {
$mid_url .= $text[$i];
}
return $mid_url;
}

$sum=260;
$check=1;
$dtime=time();
$dStr=substr($dtime,7,9)."-";

  if ($_FILES["file"]["error"] > 0)
    {
    echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
    }
  else
    {
	echo "CRPC6 TR016 Report" .  "<br />";
    echo "Upload: " . $_FILES["file"]["name"] . "<br />";
	$filename=$dStr.$_FILES["file"]["name"];
	$fileP=$dStr.$_FILES["fileP"]["name"];
    //echo "Type: " . $_FILES["file"]["type"] . "<br />";
    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
   // echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";

    if (file_exists("upload/" .$dStr. $_FILES["file"]["name"]))
      {
      echo $_FILES["file"]["name"] . " already exists. ". "<br />";
      }
    else
      {
      move_uploaded_file($_FILES["file"]["tmp_name"],
      "upload/" .$dStr. $_FILES["file"]["name"]);
	   echo "upload sucess! " .  "<br />";
	  
	   echo "Report start: " .  "<br />";
     // echo "Stored in: " . "upload/" . $_FILES["file"]["name"]. "<br />";
	  
	  ///parsing start
	  

	  
	  $contents = file("upload/".$dStr.$_FILES["file"]["name"]);
	   $stringC = implode($contents);	
	   //echo $string."<br>";
	 //$cols=get_betweenC($stringC,"NUMBER_OF_FIELDS",'BEGIN_DATA_FORMAT');
	 $cols=45;
	 // $cols=40;
//echo "cols:".$cols."_zz<br>";
	  
	  //$col=get_between($contents,"BEGIN_DATA","END_DATA");
	  $key = array_search('BEGIN_DATA
', $contents); 
	  $key2 = array_search('END_DATA
', $contents); 


//print_r(array_values($contents));


//echo "Key1=".$key."  _key2=".$key2."xx__";

 for ( $i = 0; $i <= $key; $i += 1) {
unset($contents[$i]);
} 
unset($contents[$key2]);

	  //$key = 2;
	  
		//$string = implode($contents);
		natsort($contents);
		//echo $contents[15]."xx".$key."xx".$key2."<br>"; 
		//print_r(array_values($contents));
		//echo $string; 
//find paper 648
		
		
//print_r(array_values($contents));
//echo "cont:".$contents[1637]."<br>";


$myFile ="tempSet.txt";
		$fh = fopen($myFile, 'w') or die("can't open file");
		
$k=0;		
 for ( $i = 0; $i <= 1639; $i += 1) {
 
 $px = str_replace(" ", "", $contents[$i]);
 
	if (strpos($px, "	0.00	0.00	0.00	0.00")>0) {
	 
		if ($k1==0) { 
		$line='1	'.$contents[$i];
		
		fwrite($fh, $line);
		$k1=1;}
		elseif ($k1==1) {
		$line='1367	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	10.00	0.00	0.00")>0) {
	 
		if ($k2==0) { 
		$line='2	'.$contents[$i];
		fwrite($fh, $line);
		$k2=1;}
		elseif ($k2==1) {
		$line='1322	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	20.00	0.00	0.00")>0) {
	 
		if ($k3==0) { 
		$line='3	'.$contents[$i];
		fwrite($fh, $line);
		$k3=1;}
		elseif ($k3==1) {
		$line='1320	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	30.00	0.00	0.00")>0) {
	 
		if ($k4==0) { 
		$line='4	'.$contents[$i];
		fwrite($fh, $line);
		$k4=1;}
		elseif ($k4==1) {
		$line='1318	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	40.00	0.00	0.00")>0) {
	 
		if ($k5==0) { 
		$line='5	'.$contents[$i];
		fwrite($fh, $line);
		$k5=1;}
		elseif ($k5==1) {
		$line='1317	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	55.00	0.00	0.00")>0) {
	 
		if ($k6==0) { 
		$line='6	'.$contents[$i];
		fwrite($fh, $line);
		$k6=1;}
		elseif ($k6==1) {
		$line='1320	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	70.00	0.00	0.00")>0) {
	 
		if ($k7==0) { 
		$line='7	'.$contents[$i];
		fwrite($fh, $line);
		$k7=1;}
		elseif ($k7==1) {
		$line='1314	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	85.00	0.00	0.00")>0) {
	 
		if ($k8==0) { 
		$line='8	'.$contents[$i];
		fwrite($fh, $line);
		$k8=1;}
		elseif ($k8==1) {
		$line='1311	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	100.00	0.00	0.00")>0) {
	 
		if ($k9==0) { 
		$line='9	'.$contents[$i];
		fwrite($fh, $line);
		$k9=1;}
		elseif ($k9==1) {
		$line='1307	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	0.00	0.00	0.00")>0) {
	 
		if ($k10==0) { 
		$line='10	'.$contents[$i];
		fwrite($fh, $line);
		$k10=1;}
		elseif ($k10==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	10.00	0.00	0.00")>0) {
	 
		if ($k11==0) { 
		$line='11	'.$contents[$i];
		fwrite($fh, $line);
		$k11=1;}
		elseif ($k11==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	20.00	0.00	0.00")>0) {
	 
		if ($k12==0) { 
		$line='12	'.$contents[$i];
		fwrite($fh, $line);
		$k12=1;}
		elseif ($k12==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	30.00	0.00	0.00")>0) {
	 
		if ($k13==0) { 
		$line='13	'.$contents[$i];
		fwrite($fh, $line);
		$k13=1;}
		elseif ($k13==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	40.00	0.00	0.00")>0) {
	 
		if ($k14==0) { 
		$line='14	'.$contents[$i];
		fwrite($fh, $line);
		$k14=1;}
		elseif ($k14==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	55.00	0.00	0.00")>0) {
	 
		if ($k15==0) { 
		$line='15	'.$contents[$i];
		fwrite($fh, $line);
		$k15=1;}
		elseif ($k15==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	70.00	0.00	0.00")>0) {
	 
		if ($k16==0) { 
		$line='16	'.$contents[$i];
		fwrite($fh, $line);
		$k16=1;}
		elseif ($k16==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	85.00	0.00	0.00")>0) {
	 
		if ($k17==0) { 
		$line='17	'.$contents[$i];
		fwrite($fh, $line);
		$k17=1;}
		elseif ($k17==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	10.00	100.00	0.00	0.00")>0) {
	 
		if ($k18==0) { 
		$line='18	'.$contents[$i];
		fwrite($fh, $line);
		$k18=1;}
		elseif ($k18==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	0.00	0.00	0.00")>0) {
	 
		if ($k19==0) { 
		$line='19	'.$contents[$i];
		fwrite($fh, $line);
		$k19=1;}
		elseif ($k19==1) {
		$line='1300	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	10.00	0.00	0.00")>0) {
	 
		if ($k20==0) { 
		$line='20	'.$contents[$i];
		fwrite($fh, $line);
		$k20=1;}
		elseif ($k20==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	20.00	0.00	0.00")>0) {
	 
		if ($k21==0) { 
		$line='21	'.$contents[$i];
		fwrite($fh, $line);
		$k21=1;}
		elseif ($k21==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	30.00	0.00	0.00")>0) {
	 
		if ($k22==0) { 
		$line='22	'.$contents[$i];
		fwrite($fh, $line);
		$k22=1;}
		elseif ($k22==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
		if (strpos($px, "	20.00	40.00	0.00	0.00")>0) {
	 
		if ($k23==0) { 
		$line='23	'.$contents[$i];
		fwrite($fh, $line);
		$k23=1;}
		elseif ($k23==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	55.00	0.00	0.00")>0) {
	 
		if ($k24==0) { 
		$line='24	'.$contents[$i];
		fwrite($fh, $line);
		$k24=1;}
		elseif ($k24==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	70.00	0.00	0.00")>0) {
	 
		if ($k25==0) { 
		$line='25	'.$contents[$i];
		fwrite($fh, $line);
		$k25=1;}
		elseif ($k25==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	85.00	0.00	0.00")>0) {
	 
		if ($k26==0) { 
		$line='26	'.$contents[$i];
		fwrite($fh, $line);
		$k26=1;}
		elseif ($k26==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	20.00	100.00	0.00	0.00")>0) {
	 
		if ($k27==0) { 
		$line='27	'.$contents[$i];
		fwrite($fh, $line);
		$k27=1;}
		elseif ($k27==1) {
		$line='1302	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	0.00	0.00	0.00")>0) {
	 
		if ($k28==0) { 
		$line='28	'.$contents[$i];
		fwrite($fh, $line);
		$k28=1;}
		elseif ($k28==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	10.00	0.00	0.00")>0) {
	 
		if ($k29==0) { 
		$line='29	'.$contents[$i];
		fwrite($fh, $line);
		$k29=1;}
		elseif ($k29==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	20.00	0.00	0.00")>0) {
	 
		if ($k30==0) { 
		$line='30	'.$contents[$i];
		fwrite($fh, $line);
		$k30=1;}
		elseif ($k30==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	30.00	0.00	0.00")>0) {
	 
		if ($k31==0) { 
		$line='31	'.$contents[$i];
		fwrite($fh, $line);
		$k31=1;}
		elseif ($k31==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	40.00	0.00	0.00")>0) {
	 
		if ($k32==0) { 
		$line='32	'.$contents[$i];
		fwrite($fh, $line);
		$k32=1;}
		elseif ($k32==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
		if (strpos($px, "	30.00	55.00	0.00	0.00")>0) {
	 
		if ($k33==0) { 
		$line='33	'.$contents[$i];
		fwrite($fh, $line);
		$k33=1;}
		elseif ($k33==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	70.00	0.00	0.00")>0) {
	 
		if ($k34==0) { 
		$line='34	'.$contents[$i];
		fwrite($fh, $line);
		$k34=1;}
		elseif ($k34==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	85.00	0.00	0.00")>0) {
	 
		if ($k35==0) { 
		$line='35	'.$contents[$i];
		fwrite($fh, $line);
		$k35=1;}
		elseif ($k35==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	30.00	100.00	0.00	0.00")>0) {
	 
		if ($k36==0) { 
		$line='36	'.$contents[$i];
		fwrite($fh, $line);
		$k36=1;}
		elseif ($k36==1) {
		$line='1298	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	0.00	0.00	0.00")>0) {
	 
		if ($k37==0) { 
		$line='37	'.$contents[$i];
		fwrite($fh, $line);
		$k37=1;}
		elseif ($k37==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	10.00	0.00	0.00")>0) {
	 
		if ($k38==0) { 
		$line='38	'.$contents[$i];
		fwrite($fh, $line);
		$k38=1;}
		elseif ($k38==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	20.00	0.00	0.00")>0) {
	 
		if ($k39==0) { 
		$line='39	'.$contents[$i];
		fwrite($fh, $line);
		$k39=1;}
		elseif ($k39==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	30.00	0.00	0.00")>0) {
	 
		if ($k40==0) { 
		$line='40	'.$contents[$i];
		fwrite($fh, $line);
		$k40=1;}
		elseif ($k40==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	40.00	0.00	0.00")>0) {
	 
		if ($k41==0) { 
		$line='41	'.$contents[$i];
		fwrite($fh, $line);
		$k41=1;}
		elseif ($k41==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	55.00	0.00	0.00")>0) {
	 
		if ($k42==0) { 
		$line='42	'.$contents[$i];
		fwrite($fh, $line);
		$k42=1;}
		elseif ($k42==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	70.00	0.00	0.00")>0) {
	 
		if ($k43==0) { 
		$line='43	'.$contents[$i];
		fwrite($fh, $line);
		$k43=1;}
		elseif ($k43==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	85.00	0.00	0.00")>0) {
	 
		if ($k44==0) { 
		$line='44	'.$contents[$i];
		fwrite($fh, $line);
		$k44=1;}
		elseif ($k44==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	40.00	100.00	0.00	0.00")>0) {
	 
		if ($k45==0) { 
		$line='45	'.$contents[$i];
		fwrite($fh, $line);
		$k45=1;}
		elseif ($k45==1) {
		$line='1297	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	55.00	0.00	0.00	0.00")>0) {
	 
		if ($k46==0) { 
		$line='46	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	10.00	0.00	0.00")>0) {
	 
		if ($k47==0) { 
		$line='47	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	20.00	0.00	0.00")>0) {
	 
		if ($k48==0) { 
		$line='48	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	30.00	0.00	0.00")>0) {
	 
		if ($k49==0) { 
		$line='49	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	40.00	0.00	0.00")>0) {
	 
		if ($k50==0) { 
		$line='50	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	55.00	0.00	0.00")>0) {
	 
		if ($k51==0) { 
		$line='51	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	70.00	0.00	0.00")>0) {
	 
		if ($k52==0) { 
		$line='52	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	85.00	0.00	0.00")>0) {
	 
		if ($k53==0) { 
		$line='53	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	100.00	0.00	0.00")>0) {
	 
		if ($k54==0) { 
		$line='54	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	0.00	0.00	0.00")>0) {
	 
		if ($k55==0) { 
		$line='55	'.$contents[$i];
		fwrite($fh, $line);
		$k55=1;}
		elseif ($k55==1) {
		$line='1294	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	70.00	10.00	0.00	0.00")>0) {
	 
		if ($k56==0) { 
		$line='56	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	20.00	0.00	0.00")>0) {
	 
		if ($k57==0) { 
		$line='57	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	30.00	0.00	0.00")>0) {
	 
		if ($k58==0) { 
		$line='58	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	40.00	0.00	0.00")>0) {
	 
		if ($k59==0) { 
		$line='59	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	55.00	0.00	0.00")>0) {
	 
		if ($k60==0) { 
		$line='60	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	70.00	0.00	0.00")>0) {
	 
		if ($k61==0) { 
		$line='61	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	85.00	0.00	0.00")>0) {
	 
		if ($k62==0) { 
		$line='62	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	100.00	0.00	0.00")>0) {
	 
		if ($k63==0) { 
		$line='63	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	0.00	0.00	0.00")>0) {
	 
		if ($k64==0) { 
		$line='64	'.$contents[$i];
		fwrite($fh, $line);
		$k64=1;}
		elseif ($k64==1) {
		$line='1291	'.$contents[$i];
		fwrite($fh, $line);
		}		
	}
	if (strpos($px, "	85.00	10.00	0.00	0.00")>0) {
	 
		if ($k65==0) { 
		$line='65	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	20.00	0.00	0.00")>0) {
	 
		if ($k66==0) { 
		$line='66	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	30.00	0.00	0.00")>0) {
	 
		if ($k67==0) { 
		$line='67	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	40.00	0.00	0.00")>0) {
	 
		if ($k68==0) { 
		$line='68	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	55.00	0.00	0.00")>0) {
	 
		if ($k69==0) { 
		$line='69	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	70.00	0.00	0.00")>0) {
	 
		if ($k70==0) { 
		$line='70	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	85.00	0.00	0.00")>0) {
	 
		if ($k71==0) { 
		$line='71	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	100.00	0.00	0.00")>0) {
	 
		if ($k72==0) { 
		$line='72	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	0.00	0.00	0.00")>0) {
	 
		if ($k73==0) { 
		$line='73	'.$contents[$i];
		fwrite($fh, $line);
		$k73=1;}
		elseif ($k73==1) {
		$line='1287	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	100.00	10.00	0.00	0.00")>0) {
	 
		if ($k74==0) { 
		$line='74	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	20.00	0.00	0.00")>0) {
	 
		if ($k75==0) { 
		$line='75	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	30.00	0.00	0.00")>0) {
	 
		if ($k76==0) { 
		$line='76	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	40.00	0.00	0.00")>0) {
	 
		if ($k77==0) { 
		$line='77	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	55.00	0.00	0.00")>0) {
	 
		if ($k78==0) { 
		$line='78	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	70.00	0.00	0.00")>0) {
	 
		if ($k79==0) { 
		$line='79	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	85.00	0.00	0.00")>0) {
	 
		if ($k80==0) { 
		$line='80	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	100.00	0.00	0.00")>0) {
	 
		if ($k81==0) { 
		$line='81	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	0.00	10.00	0.00")>0) {
	 
		if ($k82==0) { 
		$line='82	'.$contents[$i];
		fwrite($fh, $line);
		$k82=1;}
		elseif ($k82==1) {
		$line='1342	'.$contents[$i];
		fwrite($fh, $line);
		}	
	}
	if (strpos($px, "	0.00	10.00	10.00	0.00")>0) {
	 
		if ($k83==0) { 
		$line='83	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	20.00	10.00	0.00")>0) {
	 
		if ($k84==0) { 
		$line='84	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	30.00	10.00	0.00")>0) {
	 
		if ($k85==0) { 
		$line='85	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	40.00	10.00	0.00")>0) {
	 
		if ($k86==0) { 
		$line='86	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	55.00	10.00	0.00")>0) {
	 
		if ($k87==0) { 
		$line='87	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	70.00	10.00	0.00")>0) {
	 
		if ($k88==0) { 
		$line='88	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	85.00	10.00	0.00")>0) {
	 
		if ($k89==0) { 
		$line='89	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	0.00	100.00	10.00	0.00")>0) {
	 
		if ($k90==0) { 
		$line='90	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	0.00	10.00	0.00")>0) {
	 
		if ($k91==0) { 
		$line='91	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	10.00	10.00	0.00")>0) {
	 
		if ($k92==0) { 
		$line='92	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	20.00	10.00	0.00")>0) {
	 
		if ($k93==0) { 
		$line='93	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	30.00	10.00	0.00")>0) {
	 
		if ($k94==0) { 
		$line='94	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	40.00	10.00	0.00")>0) {
	 
		if ($k95==0) { 
		$line='95	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	55.00	10.00	0.00")>0) {
	 
		if ($k96==0) { 
		$line='96	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	70.00	10.00	0.00")>0) {
	 
		if ($k97==0) { 
		$line='97	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	85.00	10.00	0.00")>0) {
	 
		if ($k98==0) { 
		$line='98	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	10.00	100.00	10.00	0.00")>0) {
	 
		if ($k99==0) { 
		$line='99	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	0.00	10.00	0.00")>0) {
	 
		if ($k100==0) { 
		$line='100	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	10.00	10.00	0.00")>0) {
	 
		if ($k101==0) { 
		$line='101	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	20.00	10.00	0.00")>0) {
	 
		if ($k102==0) { 
		$line='102	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	30.00	10.00	0.00")>0) {
	 
		if ($k103==0) { 
		$line='103	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	40.00	10.00	0.00")>0) {
	 
		if ($k104==0) { 
		$line='104	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	55.00	10.00	0.00")>0) {
	 
		if ($k105==0) { 
		$line='105	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	70.00	10.00	0.00")>0) {
	 
		if ($k106==0) { 
		$line='106	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	85.00	10.00	0.00")>0) {
	 
		if ($k107==0) { 
		$line='107	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	20.00	100.00	10.00	0.00")>0) {
	 
		if ($k108==0) { 
		$line='108	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	0.00	10.00	0.00")>0) {
	 
		if ($k109==0) { 
		$line='109	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	10.00	10.00	0.00")>0) {
	 
		if ($k110==0) { 
		$line='110	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	20.00	10.00	0.00")>0) {
	 
		if ($k111==0) { 
		$line='111	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	30.00	10.00	0.00")>0) {
	 
		if ($k112==0) { 
		$line='112	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	40.00	10.00	0.00")>0) {
	 
		if ($k113==0) { 
		$line='113	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	55.00	10.00	0.00")>0) {
	 
		if ($k114==0) { 
		$line='114	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	70.00	10.00	0.00")>0) {
	 
		if ($k115==0) { 
		$line='115	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	85.00	10.00	0.00")>0) {
	 
		if ($k116==0) { 
		$line='116	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	30.00	100.00	10.00	0.00")>0) {
	 
		if ($k117==0) { 
		$line='117	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	0.00	10.00	0.00")>0) {
	 
		if ($k118==0) { 
		$line='118	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	10.00	10.00	0.00")>0) {
	 
		if ($k119==0) { 
		$line='119	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	20.00	10.00	0.00")>0) {
	 
		if ($k120==0) { 
		$line='120	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	30.00	10.00	0.00")>0) {
	 
		if ($k121==0) { 
		$line='121	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	40.00	10.00	0.00")>0) {
	 
		if ($k122==0) { 
		$line='122	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	55.00	10.00	0.00")>0) {
	 
		if ($k123==0) { 
		$line='123	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	70.00	10.00	0.00")>0) {
	 
		if ($k124==0) { 
		$line='124	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	85.00	10.00	0.00")>0) {
	 
		if ($k125==0) { 
		$line='125	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	40.00	100.00	10.00	0.00")>0) {
	 
		if ($k126==0) { 
		$line='126	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	0.00	10.00	0.00")>0) {
	 
		if ($k127==0) { 
		$line='127	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	10.00	10.00	0.00")>0) {
	 
		if ($k128==0) { 
		$line='128	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	20.00	10.00	0.00")>0) {
	 
		if ($k129==0) { 
		$line='129	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	30.00	10.00	0.00")>0) {
	 
		if ($k130==0) { 
		$line='130	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	40.00	10.00	0.00")>0) {
	 
		if ($k131==0) { 
		$line='131	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	55.00	10.00	0.00")>0) {
	 
		if ($k132==0) { 
		$line='132	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	70.00	10.00	0.00")>0) {
	 
		if ($k133==0) { 
		$line='133	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	85.00	10.00	0.00")>0) {
	 
		if ($k134==0) { 
		$line='134	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	55.00	100.00	10.00	0.00")>0) {
	 
		if ($k135==0) { 
		$line='135	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	0.00	10.00	0.00")>0) {
	 
		if ($k136==0) { 
		$line='136	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	10.00	10.00	0.00")>0) {
	 
		if ($k137==0) { 
		$line='137	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	20.00	10.00	0.00")>0) {
	 
		if ($k138==0) { 
		$line='138	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	30.00	10.00	0.00")>0) {
	 
		if ($k139==0) { 
		$line='139	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	40.00	10.00	0.00")>0) {
	 
		if ($k140==0) { 
		$line='140	'.$contents[$i];
		fwrite($fh, $line);
		}
	}

	if (strpos($px, "	70.00	55.00	10.00	0.00")>0) {
	 
		if ($k141==0) { 
		$line='141	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	70.00	10.00	0.00")>0) {
	 
		if ($k142==0) { 
		$line='142	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	85.00	10.00	0.00")>0) {
	 
		if ($k143==0) { 
		$line='143	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	70.00	100.00	10.00	0.00")>0) {
	 
		if ($k144==0) { 
		$line='144	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	0.00	10.00	0.00")>0) {
	 
		if ($k145==0) { 
		$line='145	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	10.00	10.00	0.00")>0) {
	 
		if ($k146==0) { 
		$line='146	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	20.00	10.00	0.00")>0) {
	 
		if ($k147==0) { 
		$line='147	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	30.00	10.00	0.00")>0) {
	 
		if ($k148==0) { 
		$line='148	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	40.00	10.00	0.00")>0) {
	 
		if ($k149==0) { 
		$line='149	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	55.00	10.00	0.00")>0) {
	 
		if ($k150==0) { 
		$line='150	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	70.00	10.00	0.00")>0) {
	 
		if ($k151==0) { 
		$line='151	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	85.00	10.00	0.00")>0) {
	 
		if ($k152==0) { 
		$line='152	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	85.00	100.00	10.00	0.00")>0) {
	 
		if ($k153==0) { 
		$line='153	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	0.00	10.00	0.00")>0) {
	 
		if ($k154==0) { 
		$line='154	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	10.00	10.00	0.00")>0) {
	 
		if ($k155==0) { 
		$line='155	'.$contents[$i];
		fwrite($fh, $line);
		}
	}
	if (strpos($px, "	100.00	20.00	10.00	0.00")>0) {
	 
		if ($k156==0) { 
		$line='156	'.$contents[$i];
		fwrite($fh, $line);
		}
	}

	

	
if (strpos($px, "	100.00	30.00	10.00	0.00")>0) {  if ($k157==0) { $line='157	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	10.00	0.00")>0) {  if ($k158==0) { $line='158	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	10.00	0.00")>0) {  if ($k159==0) { $line='159	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	10.00	0.00")>0) {  if ($k160==0) { $line='160	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	10.00	0.00")>0) {  if ($k161==0) { $line='161	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	10.00	0.00")>0) {  if ($k162==0) { $line='162	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	20.00	0.00")>0) {  if ($k163==0) { $line='163	'.$contents[$i];fwrite($fh, $line);$k163=1;} elseif ($k163==1) { $line='1340	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	10.00	20.00	0.00")>0) {  if ($k164==0) { $line='164	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	20.00	0.00")>0) {  if ($k165==0) { $line='165	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	30.00	20.00	0.00")>0) {  if ($k166==0) { $line='166	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	20.00	0.00")>0) {  if ($k167==0) { $line='167	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	55.00	20.00	0.00")>0) {  if ($k168==0) { $line='168	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	20.00	0.00")>0) {  if ($k169==0) { $line='169	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	85.00	20.00	0.00")>0) {  if ($k170==0) { $line='170	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	20.00	0.00")>0) {  if ($k171==0) { $line='171	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	20.00	0.00")>0) {  if ($k172==0) { $line='172	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	20.00	0.00")>0) {  if ($k173==0) { $line='173	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	20.00	0.00")>0) {  if ($k174==0) { $line='174	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	30.00	20.00	0.00")>0) {  if ($k175==0) { $line='175	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	20.00	0.00")>0) {  if ($k176==0) { $line='176	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	55.00	20.00	0.00")>0) {  if ($k177==0) { $line='177	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	20.00	0.00")>0) {  if ($k178==0) { $line='178	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	85.00	20.00	0.00")>0) {  if ($k179==0) { $line='179	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	20.00	0.00")>0) {  if ($k180==0) { $line='180	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	20.00	0.00")>0) {  if ($k181==0) { $line='181	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	20.00	0.00")>0) {  if ($k182==0) { $line='182	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	20.00	0.00")>0) {  if ($k183==0) { $line='183	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	30.00	20.00	0.00")>0) {  if ($k184==0) { $line='184	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	20.00	0.00")>0) {  if ($k185==0) { $line='185	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	55.00	20.00	0.00")>0) {  if ($k186==0) { $line='186	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	20.00	0.00")>0) {  if ($k187==0) { $line='187	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	85.00	20.00	0.00")>0) {  if ($k188==0) { $line='188	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	20.00	0.00")>0) {  if ($k189==0) { $line='189	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	0.00	20.00	0.00")>0) {  if ($k190==0) { $line='190	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	10.00	20.00	0.00")>0) {  if ($k191==0) { $line='191	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	20.00	20.00	0.00")>0) {  if ($k192==0) { $line='192	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	30.00	20.00	0.00")>0) {  if ($k193==0) { $line='193	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	40.00	20.00	0.00")>0) {  if ($k194==0) { $line='194	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	55.00	20.00	0.00")>0) {  if ($k195==0) { $line='195	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	70.00	20.00	0.00")>0) {  if ($k196==0) { $line='196	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	85.00	20.00	0.00")>0) {  if ($k197==0) { $line='197	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	100.00	20.00	0.00")>0) {  if ($k198==0) { $line='198	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	20.00	0.00")>0) {  if ($k199==0) { $line='199	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	20.00	0.00")>0) {  if ($k200==0) { $line='200	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	20.00	0.00")>0) {  if ($k201==0) { $line='201	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	30.00	20.00	0.00")>0) {  if ($k202==0) { $line='202	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	20.00	0.00")>0) {  if ($k203==0) { $line='203	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	55.00	20.00	0.00")>0) {  if ($k204==0) { $line='204	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	20.00	0.00")>0) {  if ($k205==0) { $line='205	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	85.00	20.00	0.00")>0) {  if ($k206==0) { $line='206	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	20.00	0.00")>0) {  if ($k207==0) { $line='207	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	0.00	20.00	0.00")>0) {  if ($k208==0) { $line='208	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	10.00	20.00	0.00")>0) {  if ($k209==0) { $line='209	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	20.00	20.00	0.00")>0) {  if ($k210==0) { $line='210	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	30.00	20.00	0.00")>0) {  if ($k211==0) { $line='211	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	40.00	20.00	0.00")>0) {  if ($k212==0) { $line='212	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	55.00	20.00	0.00")>0) {  if ($k213==0) { $line='213	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	70.00	20.00	0.00")>0) {  if ($k214==0) { $line='214	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	85.00	20.00	0.00")>0) {  if ($k215==0) { $line='215	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	100.00	20.00	0.00")>0) {  if ($k216==0) { $line='216	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	20.00	0.00")>0) {  if ($k217==0) { $line='217	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	20.00	0.00")>0) {  if ($k218==0) { $line='218	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	20.00	0.00")>0) {  if ($k219==0) { $line='219	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	30.00	20.00	0.00")>0) {  if ($k220==0) { $line='220	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	20.00	0.00")>0) {  if ($k221==0) { $line='221	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	55.00	20.00	0.00")>0) {  if ($k222==0) { $line='222	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	20.00	0.00")>0) {  if ($k223==0) { $line='223	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	85.00	20.00	0.00")>0) {  if ($k224==0) { $line='224	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	20.00	0.00")>0) {  if ($k225==0) { $line='225	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	0.00	20.00	0.00")>0) {  if ($k226==0) { $line='226	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	10.00	20.00	0.00")>0) {  if ($k227==0) { $line='227	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	20.00	20.00	0.00")>0) {  if ($k228==0) { $line='228	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	30.00	20.00	0.00")>0) {  if ($k229==0) { $line='229	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	40.00	20.00	0.00")>0) {  if ($k230==0) { $line='230	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	55.00	20.00	0.00")>0) {  if ($k231==0) { $line='231	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	70.00	20.00	0.00")>0) {  if ($k232==0) { $line='232	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	85.00	20.00	0.00")>0) {  if ($k233==0) { $line='233	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	100.00	20.00	0.00")>0) {  if ($k234==0) { $line='234	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	20.00	0.00")>0) {  if ($k235==0) { $line='235	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	20.00	0.00")>0) {  if ($k236==0) { $line='236	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	20.00	0.00")>0) {  if ($k237==0) { $line='237	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	30.00	20.00	0.00")>0) {  if ($k238==0) { $line='238	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	20.00	0.00")>0) {  if ($k239==0) { $line='239	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	20.00	0.00")>0) {  if ($k240==0) { $line='240	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	20.00	0.00")>0) {  if ($k241==0) { $line='241	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	20.00	0.00")>0) {  if ($k242==0) { $line='242	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	20.00	0.00")>0) {  if ($k243==0) { $line='243	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	30.00	0.00")>0) {  if ($k244==0) { $line='244	'.$contents[$i];fwrite($fh, $line);$k244=1;} elseif ($k244==1) { $line='1338	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	10.00	30.00	0.00")>0) {  if ($k245==0) { $line='245	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	30.00	0.00")>0) {  if ($k246==0) { $line='246	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	30.00	30.00	0.00")>0) {  if ($k247==0) { $line='247	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	30.00	0.00")>0) {  if ($k248==0) { $line='248	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	55.00	30.00	0.00")>0) {  if ($k249==0) { $line='249	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	30.00	0.00")>0) {  if ($k250==0) { $line='250	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	85.00	30.00	0.00")>0) {  if ($k251==0) { $line='251	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	30.00	0.00")>0) {  if ($k252==0) { $line='252	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	30.00	0.00")>0) {  if ($k253==0) { $line='253	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	30.00	0.00")>0) {  if ($k254==0) { $line='254	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	30.00	0.00")>0) {  if ($k255==0) { $line='255	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	30.00	30.00	0.00")>0) {  if ($k256==0) { $line='256	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	30.00	0.00")>0) {  if ($k257==0) { $line='257	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	55.00	30.00	0.00")>0) {  if ($k258==0) { $line='258	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	30.00	0.00")>0) {  if ($k259==0) { $line='259	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	85.00	30.00	0.00")>0) {  if ($k260==0) { $line='260	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	30.00	0.00")>0) {  if ($k261==0) { $line='261	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	30.00	0.00")>0) {  if ($k262==0) { $line='262	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	30.00	0.00")>0) {  if ($k263==0) { $line='263	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	30.00	0.00")>0) {  if ($k264==0) { $line='264	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	30.00	30.00	0.00")>0) {  if ($k265==0) { $line='265	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	30.00	0.00")>0) {  if ($k266==0) { $line='266	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	55.00	30.00	0.00")>0) {  if ($k267==0) { $line='267	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	30.00	0.00")>0) {  if ($k268==0) { $line='268	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	85.00	30.00	0.00")>0) {  if ($k269==0) { $line='269	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	30.00	0.00")>0) {  if ($k270==0) { $line='270	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	0.00	30.00	0.00")>0) {  if ($k271==0) { $line='271	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	10.00	30.00	0.00")>0) {  if ($k272==0) { $line='272	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	20.00	30.00	0.00")>0) {  if ($k273==0) { $line='273	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	30.00	30.00	0.00")>0) {  if ($k274==0) { $line='274	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	40.00	30.00	0.00")>0) {  if ($k275==0) { $line='275	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	55.00	30.00	0.00")>0) {  if ($k276==0) { $line='276	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	70.00	30.00	0.00")>0) {  if ($k277==0) { $line='277	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	85.00	30.00	0.00")>0) {  if ($k278==0) { $line='278	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	100.00	30.00	0.00")>0) {  if ($k279==0) { $line='279	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	30.00	0.00")>0) {  if ($k280==0) { $line='280	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	30.00	0.00")>0) {  if ($k281==0) { $line='281	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	30.00	0.00")>0) {  if ($k282==0) { $line='282	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	30.00	30.00	0.00")>0) {  if ($k283==0) { $line='283	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	30.00	0.00")>0) {  if ($k284==0) { $line='284	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	55.00	30.00	0.00")>0) {  if ($k285==0) { $line='285	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	30.00	0.00")>0) {  if ($k286==0) { $line='286	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	85.00	30.00	0.00")>0) {  if ($k287==0) { $line='287	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	30.00	0.00")>0) {  if ($k288==0) { $line='288	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	0.00	30.00	0.00")>0) {  if ($k289==0) { $line='289	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	10.00	30.00	0.00")>0) {  if ($k290==0) { $line='290	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	20.00	30.00	0.00")>0) {  if ($k291==0) { $line='291	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	30.00	30.00	0.00")>0) {  if ($k292==0) { $line='292	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	40.00	30.00	0.00")>0) {  if ($k293==0) { $line='293	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	55.00	30.00	0.00")>0) {  if ($k294==0) { $line='294	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	70.00	30.00	0.00")>0) {  if ($k295==0) { $line='295	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	85.00	30.00	0.00")>0) {  if ($k296==0) { $line='296	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	100.00	30.00	0.00")>0) {  if ($k297==0) { $line='297	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	30.00	0.00")>0) {  if ($k298==0) { $line='298	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	30.00	0.00")>0) {  if ($k299==0) { $line='299	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	30.00	0.00")>0) {  if ($k300==0) { $line='300	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	30.00	30.00	0.00")>0) {  if ($k301==0) { $line='301	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	30.00	0.00")>0) {  if ($k302==0) { $line='302	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	55.00	30.00	0.00")>0) {  if ($k303==0) { $line='303	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	30.00	0.00")>0) {  if ($k304==0) { $line='304	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	85.00	30.00	0.00")>0) {  if ($k305==0) { $line='305	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	30.00	0.00")>0) {  if ($k306==0) { $line='306	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	0.00	30.00	0.00")>0) {  if ($k307==0) { $line='307	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	10.00	30.00	0.00")>0) {  if ($k308==0) { $line='308	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	20.00	30.00	0.00")>0) {  if ($k309==0) { $line='309	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	30.00	30.00	0.00")>0) {  if ($k310==0) { $line='310	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	40.00	30.00	0.00")>0) {  if ($k311==0) { $line='311	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	55.00	30.00	0.00")>0) {  if ($k312==0) { $line='312	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	70.00	30.00	0.00")>0) {  if ($k313==0) { $line='313	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	85.00	30.00	0.00")>0) {  if ($k314==0) { $line='314	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	100.00	30.00	0.00")>0) {  if ($k315==0) { $line='315	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	30.00	0.00")>0) {  if ($k316==0) { $line='316	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	30.00	0.00")>0) {  if ($k317==0) { $line='317	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	30.00	0.00")>0) {  if ($k318==0) { $line='318	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	30.00	30.00	0.00")>0) {  if ($k319==0) { $line='319	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	30.00	0.00")>0) {  if ($k320==0) { $line='320	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	30.00	0.00")>0) {  if ($k321==0) { $line='321	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	30.00	0.00")>0) {  if ($k322==0) { $line='322	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	30.00	0.00")>0) {  if ($k323==0) { $line='323	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	30.00	0.00")>0) {  if ($k324==0) { $line='324	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	0.00")>0) {  if ($k325==0) { $line='325	'.$contents[$i];fwrite($fh, $line);$k325=1;} elseif ($k325==1) { $line='1337	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	10.00	40.00	0.00")>0) {  if ($k326==0) { $line='326	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	40.00	0.00")>0) {  if ($k327==0) { $line='327	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	30.00	40.00	0.00")>0) {  if ($k328==0) { $line='328	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	0.00")>0) {  if ($k329==0) { $line='329	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	55.00	40.00	0.00")>0) {  if ($k330==0) { $line='330	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	40.00	0.00")>0) {  if ($k331==0) { $line='331	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	85.00	40.00	0.00")>0) {  if ($k332==0) { $line='332	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	40.00	0.00")>0) {  if ($k333==0) { $line='333	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	40.00	0.00")>0) {  if ($k334==0) { $line='334	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	40.00	0.00")>0) {  if ($k335==0) { $line='335	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	40.00	0.00")>0) {  if ($k336==0) { $line='336	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	30.00	40.00	0.00")>0) {  if ($k337==0) { $line='337	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	40.00	0.00")>0) {  if ($k338==0) { $line='338	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	55.00	40.00	0.00")>0) {  if ($k339==0) { $line='339	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	40.00	0.00")>0) {  if ($k340==0) { $line='340	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	85.00	40.00	0.00")>0) {  if ($k341==0) { $line='341	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	40.00	0.00")>0) {  if ($k342==0) { $line='342	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	40.00	0.00")>0) {  if ($k343==0) { $line='343	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	40.00	0.00")>0) {  if ($k344==0) { $line='344	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	40.00	0.00")>0) {  if ($k345==0) { $line='345	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	30.00	40.00	0.00")>0) {  if ($k346==0) { $line='346	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	40.00	0.00")>0) {  if ($k347==0) { $line='347	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	55.00	40.00	0.00")>0) {  if ($k348==0) { $line='348	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	40.00	0.00")>0) {  if ($k349==0) { $line='349	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	85.00	40.00	0.00")>0) {  if ($k350==0) { $line='350	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	40.00	0.00")>0) {  if ($k351==0) { $line='351	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	0.00	40.00	0.00")>0) {  if ($k352==0) { $line='352	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	10.00	40.00	0.00")>0) {  if ($k353==0) { $line='353	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	20.00	40.00	0.00")>0) {  if ($k354==0) { $line='354	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	30.00	40.00	0.00")>0) {  if ($k355==0) { $line='355	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	40.00	40.00	0.00")>0) {  if ($k356==0) { $line='356	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	55.00	40.00	0.00")>0) {  if ($k357==0) { $line='357	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	70.00	40.00	0.00")>0) {  if ($k358==0) { $line='358	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	85.00	40.00	0.00")>0) {  if ($k359==0) { $line='359	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	100.00	40.00	0.00")>0) {  if ($k360==0) { $line='360	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	0.00")>0) {  if ($k361==0) { $line='361	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	40.00	0.00")>0) {  if ($k362==0) { $line='362	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	40.00	0.00")>0) {  if ($k363==0) { $line='363	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	30.00	40.00	0.00")>0) {  if ($k364==0) { $line='364	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	0.00")>0) {  if ($k365==0) { $line='365	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	55.00	40.00	0.00")>0) {  if ($k366==0) { $line='366	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	40.00	0.00")>0) {  if ($k367==0) { $line='367	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	85.00	40.00	0.00")>0) {  if ($k368==0) { $line='368	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	40.00	0.00")>0) {  if ($k369==0) { $line='369	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	0.00	40.00	0.00")>0) {  if ($k370==0) { $line='370	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	10.00	40.00	0.00")>0) {  if ($k371==0) { $line='371	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	20.00	40.00	0.00")>0) {  if ($k372==0) { $line='372	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	30.00	40.00	0.00")>0) {  if ($k373==0) { $line='373	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	40.00	40.00	0.00")>0) {  if ($k374==0) { $line='374	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	55.00	40.00	0.00")>0) {  if ($k375==0) { $line='375	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	70.00	40.00	0.00")>0) {  if ($k376==0) { $line='376	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	85.00	40.00	0.00")>0) {  if ($k377==0) { $line='377	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	100.00	40.00	0.00")>0) {  if ($k378==0) { $line='378	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	40.00	0.00")>0) {  if ($k379==0) { $line='379	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	40.00	0.00")>0) {  if ($k380==0) { $line='380	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	40.00	0.00")>0) {  if ($k381==0) { $line='381	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	30.00	40.00	0.00")>0) {  if ($k382==0) { $line='382	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	40.00	0.00")>0) {  if ($k383==0) { $line='383	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	55.00	40.00	0.00")>0) {  if ($k384==0) { $line='384	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	40.00	0.00")>0) {  if ($k385==0) { $line='385	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	85.00	40.00	0.00")>0) {  if ($k386==0) { $line='386	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	40.00	0.00")>0) {  if ($k387==0) { $line='387	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	0.00	40.00	0.00")>0) {  if ($k388==0) { $line='388	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	10.00	40.00	0.00")>0) {  if ($k389==0) { $line='389	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	20.00	40.00	0.00")>0) {  if ($k390==0) { $line='390	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	30.00	40.00	0.00")>0) {  if ($k391==0) { $line='391	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	40.00	40.00	0.00")>0) {  if ($k392==0) { $line='392	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	55.00	40.00	0.00")>0) {  if ($k393==0) { $line='393	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	70.00	40.00	0.00")>0) {  if ($k394==0) { $line='394	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	85.00	40.00	0.00")>0) {  if ($k395==0) { $line='395	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	100.00	40.00	0.00")>0) {  if ($k396==0) { $line='396	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	40.00	0.00")>0) {  if ($k397==0) { $line='397	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	40.00	0.00")>0) {  if ($k398==0) { $line='398	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	40.00	0.00")>0) {  if ($k399==0) { $line='399	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	30.00	40.00	0.00")>0) {  if ($k400==0) { $line='400	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	40.00	0.00")>0) {  if ($k401==0) { $line='401	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	40.00	0.00")>0) {  if ($k402==0) { $line='402	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	40.00	0.00")>0) {  if ($k403==0) { $line='403	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	40.00	0.00")>0) {  if ($k404==0) { $line='404	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	40.00	0.00")>0) {  if ($k405==0) { $line='405	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	55.00	0.00")>0) {  if ($k406==0) { $line='406	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	55.00	0.00")>0) {  if ($k407==0) { $line='407	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	55.00	0.00")>0) {  if ($k408==0) { $line='408	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	30.00	55.00	0.00")>0) {  if ($k409==0) { $line='409	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	55.00	0.00")>0) {  if ($k410==0) { $line='410	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	55.00	55.00	0.00")>0) {  if ($k411==0) { $line='411	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	55.00	0.00")>0) {  if ($k412==0) { $line='412	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	85.00	55.00	0.00")>0) {  if ($k413==0) { $line='413	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	55.00	0.00")>0) {  if ($k414==0) { $line='414	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	55.00	0.00")>0) {  if ($k415==0) { $line='415	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	55.00	0.00")>0) {  if ($k416==0) { $line='416	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	55.00	0.00")>0) {  if ($k417==0) { $line='417	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	30.00	55.00	0.00")>0) {  if ($k418==0) { $line='418	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	55.00	0.00")>0) {  if ($k419==0) { $line='419	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	55.00	55.00	0.00")>0) {  if ($k420==0) { $line='420	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	55.00	0.00")>0) {  if ($k421==0) { $line='421	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	85.00	55.00	0.00")>0) {  if ($k422==0) { $line='422	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	55.00	0.00")>0) {  if ($k423==0) { $line='423	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	55.00	0.00")>0) {  if ($k424==0) { $line='424	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	55.00	0.00")>0) {  if ($k425==0) { $line='425	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	55.00	0.00")>0) {  if ($k426==0) { $line='426	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	30.00	55.00	0.00")>0) {  if ($k427==0) { $line='427	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	55.00	0.00")>0) {  if ($k428==0) { $line='428	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	55.00	55.00	0.00")>0) {  if ($k429==0) { $line='429	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	55.00	0.00")>0) {  if ($k430==0) { $line='430	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	85.00	55.00	0.00")>0) {  if ($k431==0) { $line='431	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	55.00	0.00")>0) {  if ($k432==0) { $line='432	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	0.00	55.00	0.00")>0) {  if ($k433==0) { $line='433	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	10.00	55.00	0.00")>0) {  if ($k434==0) { $line='434	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	20.00	55.00	0.00")>0) {  if ($k435==0) { $line='435	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	30.00	55.00	0.00")>0) {  if ($k436==0) { $line='436	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	40.00	55.00	0.00")>0) {  if ($k437==0) { $line='437	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	55.00	55.00	0.00")>0) {  if ($k438==0) { $line='438	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	70.00	55.00	0.00")>0) {  if ($k439==0) { $line='439	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	85.00	55.00	0.00")>0) {  if ($k440==0) { $line='440	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	100.00	55.00	0.00")>0) {  if ($k441==0) { $line='441	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	55.00	0.00")>0) {  if ($k442==0) { $line='442	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	55.00	0.00")>0) {  if ($k443==0) { $line='443	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	55.00	0.00")>0) {  if ($k444==0) { $line='444	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	30.00	55.00	0.00")>0) {  if ($k445==0) { $line='445	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	55.00	0.00")>0) {  if ($k446==0) { $line='446	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	55.00	55.00	0.00")>0) {  if ($k447==0) { $line='447	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	55.00	0.00")>0) {  if ($k448==0) { $line='448	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	85.00	55.00	0.00")>0) {  if ($k449==0) { $line='449	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	55.00	0.00")>0) {  if ($k450==0) { $line='450	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	0.00	55.00	0.00")>0) {  if ($k451==0) { $line='451	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	10.00	55.00	0.00")>0) {  if ($k452==0) { $line='452	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	20.00	55.00	0.00")>0) {  if ($k453==0) { $line='453	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	30.00	55.00	0.00")>0) {  if ($k454==0) { $line='454	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	40.00	55.00	0.00")>0) {  if ($k455==0) { $line='455	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	55.00	55.00	0.00")>0) {  if ($k456==0) { $line='456	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	70.00	55.00	0.00")>0) {  if ($k457==0) { $line='457	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	85.00	55.00	0.00")>0) {  if ($k458==0) { $line='458	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	100.00	55.00	0.00")>0) {  if ($k459==0) { $line='459	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	55.00	0.00")>0) {  if ($k460==0) { $line='460	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	55.00	0.00")>0) {  if ($k461==0) { $line='461	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	55.00	0.00")>0) {  if ($k462==0) { $line='462	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	30.00	55.00	0.00")>0) {  if ($k463==0) { $line='463	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	55.00	0.00")>0) {  if ($k464==0) { $line='464	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	55.00	55.00	0.00")>0) {  if ($k465==0) { $line='465	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	55.00	0.00")>0) {  if ($k466==0) { $line='466	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	85.00	55.00	0.00")>0) {  if ($k467==0) { $line='467	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	55.00	0.00")>0) {  if ($k468==0) { $line='468	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	0.00	55.00	0.00")>0) {  if ($k469==0) { $line='469	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	10.00	55.00	0.00")>0) {  if ($k470==0) { $line='470	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	20.00	55.00	0.00")>0) {  if ($k471==0) { $line='471	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	30.00	55.00	0.00")>0) {  if ($k472==0) { $line='472	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	40.00	55.00	0.00")>0) {  if ($k473==0) { $line='473	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	55.00	55.00	0.00")>0) {  if ($k474==0) { $line='474	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	70.00	55.00	0.00")>0) {  if ($k475==0) { $line='475	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	85.00	55.00	0.00")>0) {  if ($k476==0) { $line='476	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	100.00	55.00	0.00")>0) {  if ($k477==0) { $line='477	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	55.00	0.00")>0) {  if ($k478==0) { $line='478	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	55.00	0.00")>0) {  if ($k479==0) { $line='479	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	55.00	0.00")>0) {  if ($k480==0) { $line='480	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	30.00	55.00	0.00")>0) {  if ($k481==0) { $line='481	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	55.00	0.00")>0) {  if ($k482==0) { $line='482	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	55.00	0.00")>0) {  if ($k483==0) { $line='483	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	55.00	0.00")>0) {  if ($k484==0) { $line='484	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	55.00	0.00")>0) {  if ($k485==0) { $line='485	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	55.00	0.00")>0) {  if ($k486==0) { $line='486	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	70.00	0.00")>0) {  if ($k487==0) { $line='487	'.$contents[$i];fwrite($fh, $line);$k487=1;} elseif ($k487==1) { $line='1334	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	10.00	70.00	0.00")>0) {  if ($k488==0) { $line='488	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	70.00	0.00")>0) {  if ($k489==0) { $line='489	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	30.00	70.00	0.00")>0) {  if ($k490==0) { $line='490	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	70.00	0.00")>0) {  if ($k491==0) { $line='491	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	55.00	70.00	0.00")>0) {  if ($k492==0) { $line='492	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	70.00	0.00")>0) {  if ($k493==0) { $line='493	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	85.00	70.00	0.00")>0) {  if ($k494==0) { $line='494	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	70.00	0.00")>0) {  if ($k495==0) { $line='495	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	70.00	0.00")>0) {  if ($k496==0) { $line='496	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	70.00	0.00")>0) {  if ($k497==0) { $line='497	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	70.00	0.00")>0) {  if ($k498==0) { $line='498	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	30.00	70.00	0.00")>0) {  if ($k499==0) { $line='499	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	70.00	0.00")>0) {  if ($k500==0) { $line='500	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	55.00	70.00	0.00")>0) {  if ($k501==0) { $line='501	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	70.00	0.00")>0) {  if ($k502==0) { $line='502	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	85.00	70.00	0.00")>0) {  if ($k503==0) { $line='503	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	70.00	0.00")>0) {  if ($k504==0) { $line='504	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	70.00	0.00")>0) {  if ($k505==0) { $line='505	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	70.00	0.00")>0) {  if ($k506==0) { $line='506	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	70.00	0.00")>0) {  if ($k507==0) { $line='507	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	30.00	70.00	0.00")>0) {  if ($k508==0) { $line='508	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	70.00	0.00")>0) {  if ($k509==0) { $line='509	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	55.00	70.00	0.00")>0) {  if ($k510==0) { $line='510	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	70.00	0.00")>0) {  if ($k511==0) { $line='511	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	85.00	70.00	0.00")>0) {  if ($k512==0) { $line='512	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	70.00	0.00")>0) {  if ($k513==0) { $line='513	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	0.00	70.00	0.00")>0) {  if ($k514==0) { $line='514	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	10.00	70.00	0.00")>0) {  if ($k515==0) { $line='515	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	20.00	70.00	0.00")>0) {  if ($k516==0) { $line='516	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	30.00	70.00	0.00")>0) {  if ($k517==0) { $line='517	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	40.00	70.00	0.00")>0) {  if ($k518==0) { $line='518	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	55.00	70.00	0.00")>0) {  if ($k519==0) { $line='519	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	70.00	70.00	0.00")>0) {  if ($k520==0) { $line='520	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	85.00	70.00	0.00")>0) {  if ($k521==0) { $line='521	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	100.00	70.00	0.00")>0) {  if ($k522==0) { $line='522	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	70.00	0.00")>0) {  if ($k523==0) { $line='523	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	70.00	0.00")>0) {  if ($k524==0) { $line='524	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	70.00	0.00")>0) {  if ($k525==0) { $line='525	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	30.00	70.00	0.00")>0) {  if ($k526==0) { $line='526	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	70.00	0.00")>0) {  if ($k527==0) { $line='527	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	55.00	70.00	0.00")>0) {  if ($k528==0) { $line='528	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	70.00	0.00")>0) {  if ($k529==0) { $line='529	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	85.00	70.00	0.00")>0) {  if ($k530==0) { $line='530	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	70.00	0.00")>0) {  if ($k531==0) { $line='531	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	0.00	70.00	0.00")>0) {  if ($k532==0) { $line='532	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	10.00	70.00	0.00")>0) {  if ($k533==0) { $line='533	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	20.00	70.00	0.00")>0) {  if ($k534==0) { $line='534	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	30.00	70.00	0.00")>0) {  if ($k535==0) { $line='535	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	40.00	70.00	0.00")>0) {  if ($k536==0) { $line='536	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	55.00	70.00	0.00")>0) {  if ($k537==0) { $line='537	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	70.00	70.00	0.00")>0) {  if ($k538==0) { $line='538	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	85.00	70.00	0.00")>0) {  if ($k539==0) { $line='539	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	100.00	70.00	0.00")>0) {  if ($k540==0) { $line='540	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	70.00	0.00")>0) {  if ($k541==0) { $line='541	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	70.00	0.00")>0) {  if ($k542==0) { $line='542	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	70.00	0.00")>0) {  if ($k543==0) { $line='543	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	30.00	70.00	0.00")>0) {  if ($k544==0) { $line='544	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	70.00	0.00")>0) {  if ($k545==0) { $line='545	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	55.00	70.00	0.00")>0) {  if ($k546==0) { $line='546	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	70.00	0.00")>0) {  if ($k547==0) { $line='547	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	85.00	70.00	0.00")>0) {  if ($k548==0) { $line='548	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	70.00	0.00")>0) {  if ($k549==0) { $line='549	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	0.00	70.00	0.00")>0) {  if ($k550==0) { $line='550	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	10.00	70.00	0.00")>0) {  if ($k551==0) { $line='551	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	20.00	70.00	0.00")>0) {  if ($k552==0) { $line='552	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	30.00	70.00	0.00")>0) {  if ($k553==0) { $line='553	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	40.00	70.00	0.00")>0) {  if ($k554==0) { $line='554	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	55.00	70.00	0.00")>0) {  if ($k555==0) { $line='555	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	70.00	70.00	0.00")>0) {  if ($k556==0) { $line='556	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	85.00	70.00	0.00")>0) {  if ($k557==0) { $line='557	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	100.00	70.00	0.00")>0) {  if ($k558==0) { $line='558	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	70.00	0.00")>0) {  if ($k559==0) { $line='559	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	70.00	0.00")>0) {  if ($k560==0) { $line='560	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	70.00	0.00")>0) {  if ($k561==0) { $line='561	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	30.00	70.00	0.00")>0) {  if ($k562==0) { $line='562	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	70.00	0.00")>0) {  if ($k563==0) { $line='563	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	70.00	0.00")>0) {  if ($k564==0) { $line='564	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	70.00	0.00")>0) {  if ($k565==0) { $line='565	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	70.00	0.00")>0) {  if ($k566==0) { $line='566	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	70.00	0.00")>0) {  if ($k567==0) { $line='567	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	85.00	0.00")>0) {  if ($k568==0) { $line='568	'.$contents[$i];fwrite($fh, $line);$k568=1;} elseif ($k568==1) { $line='1331	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	10.00	85.00	0.00")>0) {  if ($k569==0) { $line='569	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	85.00	0.00")>0) {  if ($k570==0) { $line='570	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	30.00	85.00	0.00")>0) {  if ($k571==0) { $line='571	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	85.00	0.00")>0) {  if ($k572==0) { $line='572	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	55.00	85.00	0.00")>0) {  if ($k573==0) { $line='573	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	85.00	0.00")>0) {  if ($k574==0) { $line='574	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	85.00	85.00	0.00")>0) {  if ($k575==0) { $line='575	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	85.00	0.00")>0) {  if ($k576==0) { $line='576	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	85.00	0.00")>0) {  if ($k577==0) { $line='577	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	85.00	0.00")>0) {  if ($k578==0) { $line='578	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	85.00	0.00")>0) {  if ($k579==0) { $line='579	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	30.00	85.00	0.00")>0) {  if ($k580==0) { $line='580	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	85.00	0.00")>0) {  if ($k581==0) { $line='581	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	55.00	85.00	0.00")>0) {  if ($k582==0) { $line='582	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	85.00	0.00")>0) {  if ($k583==0) { $line='583	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	85.00	85.00	0.00")>0) {  if ($k584==0) { $line='584	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	85.00	0.00")>0) {  if ($k585==0) { $line='585	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	85.00	0.00")>0) {  if ($k586==0) { $line='586	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	85.00	0.00")>0) {  if ($k587==0) { $line='587	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	85.00	0.00")>0) {  if ($k588==0) { $line='588	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	30.00	85.00	0.00")>0) {  if ($k589==0) { $line='589	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	85.00	0.00")>0) {  if ($k590==0) { $line='590	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	55.00	85.00	0.00")>0) {  if ($k591==0) { $line='591	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	85.00	0.00")>0) {  if ($k592==0) { $line='592	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	85.00	85.00	0.00")>0) {  if ($k593==0) { $line='593	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	85.00	0.00")>0) {  if ($k594==0) { $line='594	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	0.00	85.00	0.00")>0) {  if ($k595==0) { $line='595	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	10.00	85.00	0.00")>0) {  if ($k596==0) { $line='596	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	20.00	85.00	0.00")>0) {  if ($k597==0) { $line='597	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	30.00	85.00	0.00")>0) {  if ($k598==0) { $line='598	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	40.00	85.00	0.00")>0) {  if ($k599==0) { $line='599	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	55.00	85.00	0.00")>0) {  if ($k600==0) { $line='600	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	70.00	85.00	0.00")>0) {  if ($k601==0) { $line='601	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	85.00	85.00	0.00")>0) {  if ($k602==0) { $line='602	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	100.00	85.00	0.00")>0) {  if ($k603==0) { $line='603	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	85.00	0.00")>0) {  if ($k604==0) { $line='604	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	85.00	0.00")>0) {  if ($k605==0) { $line='605	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	85.00	0.00")>0) {  if ($k606==0) { $line='606	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	30.00	85.00	0.00")>0) {  if ($k607==0) { $line='607	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	85.00	0.00")>0) {  if ($k608==0) { $line='608	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	55.00	85.00	0.00")>0) {  if ($k609==0) { $line='609	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	85.00	0.00")>0) {  if ($k610==0) { $line='610	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	85.00	85.00	0.00")>0) {  if ($k611==0) { $line='611	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	85.00	0.00")>0) {  if ($k612==0) { $line='612	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	0.00	85.00	0.00")>0) {  if ($k613==0) { $line='613	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	10.00	85.00	0.00")>0) {  if ($k614==0) { $line='614	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	20.00	85.00	0.00")>0) {  if ($k615==0) { $line='615	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	30.00	85.00	0.00")>0) {  if ($k616==0) { $line='616	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	40.00	85.00	0.00")>0) {  if ($k617==0) { $line='617	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	55.00	85.00	0.00")>0) {  if ($k618==0) { $line='618	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	70.00	85.00	0.00")>0) {  if ($k619==0) { $line='619	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	85.00	85.00	0.00")>0) {  if ($k620==0) { $line='620	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	100.00	85.00	0.00")>0) {  if ($k621==0) { $line='621	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	85.00	0.00")>0) {  if ($k622==0) { $line='622	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	85.00	0.00")>0) {  if ($k623==0) { $line='623	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	85.00	0.00")>0) {  if ($k624==0) { $line='624	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	30.00	85.00	0.00")>0) {  if ($k625==0) { $line='625	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	85.00	0.00")>0) {  if ($k626==0) { $line='626	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	55.00	85.00	0.00")>0) {  if ($k627==0) { $line='627	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	85.00	0.00")>0) {  if ($k628==0) { $line='628	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	85.00	85.00	0.00")>0) {  if ($k629==0) { $line='629	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	85.00	0.00")>0) {  if ($k630==0) { $line='630	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	0.00	85.00	0.00")>0) {  if ($k631==0) { $line='631	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	10.00	85.00	0.00")>0) {  if ($k632==0) { $line='632	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	20.00	85.00	0.00")>0) {  if ($k633==0) { $line='633	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	30.00	85.00	0.00")>0) {  if ($k634==0) { $line='634	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	40.00	85.00	0.00")>0) {  if ($k635==0) { $line='635	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	55.00	85.00	0.00")>0) {  if ($k636==0) { $line='636	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	70.00	85.00	0.00")>0) {  if ($k637==0) { $line='637	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	85.00	85.00	0.00")>0) {  if ($k638==0) { $line='638	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	100.00	85.00	0.00")>0) {  if ($k639==0) { $line='639	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	85.00	0.00")>0) {  if ($k640==0) { $line='640	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	85.00	0.00")>0) {  if ($k641==0) { $line='641	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	85.00	0.00")>0) {  if ($k642==0) { $line='642	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	30.00	85.00	0.00")>0) {  if ($k643==0) { $line='643	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	85.00	0.00")>0) {  if ($k644==0) { $line='644	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	85.00	0.00")>0) {  if ($k645==0) { $line='645	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	85.00	0.00")>0) {  if ($k646==0) { $line='646	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	85.00	0.00")>0) {  if ($k647==0) { $line='647	'.$contents[$i];fwrite($fh, $line);$k647=1;} elseif ($k647==1) { $line='1368	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	100.00	100.00	85.00	0.00")>0) {  if ($k648==0) { $line='648	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	0.00")>0) {  if ($k649==0) { $line='649	'.$contents[$i];fwrite($fh, $line);$k649=1;} elseif ($k649==1) { $line='1327	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	10.00	100.00	0.00")>0) {  if ($k650==0) { $line='650	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	100.00	0.00")>0) {  if ($k651==0) { $line='651	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	30.00	100.00	0.00")>0) {  if ($k652==0) { $line='652	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	100.00	0.00")>0) {  if ($k653==0) { $line='653	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	55.00	100.00	0.00")>0) {  if ($k654==0) { $line='654	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	100.00	0.00")>0) {  if ($k655==0) { $line='655	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	85.00	100.00	0.00")>0) {  if ($k656==0) { $line='656	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	0.00")>0) {  if ($k657==0) { $line='657	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	100.00	0.00")>0) {  if ($k658==0) { $line='658	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	100.00	0.00")>0) {  if ($k659==0) { $line='659	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	100.00	0.00")>0) {  if ($k660==0) { $line='660	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	30.00	100.00	0.00")>0) {  if ($k661==0) { $line='661	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	100.00	0.00")>0) {  if ($k662==0) { $line='662	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	55.00	100.00	0.00")>0) {  if ($k663==0) { $line='663	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	100.00	0.00")>0) {  if ($k664==0) { $line='664	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	85.00	100.00	0.00")>0) {  if ($k665==0) { $line='665	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	100.00	0.00")>0) {  if ($k666==0) { $line='666	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	100.00	0.00")>0) {  if ($k667==0) { $line='667	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	100.00	0.00")>0) {  if ($k668==0) { $line='668	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	100.00	0.00")>0) {  if ($k669==0) { $line='669	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	30.00	100.00	0.00")>0) {  if ($k670==0) { $line='670	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	100.00	0.00")>0) {  if ($k671==0) { $line='671	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	55.00	100.00	0.00")>0) {  if ($k672==0) { $line='672	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	100.00	0.00")>0) {  if ($k673==0) { $line='673	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	85.00	100.00	0.00")>0) {  if ($k674==0) { $line='674	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	100.00	0.00")>0) {  if ($k675==0) { $line='675	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	0.00	100.00	0.00")>0) {  if ($k676==0) { $line='676	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	10.00	100.00	0.00")>0) {  if ($k677==0) { $line='677	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	20.00	100.00	0.00")>0) {  if ($k678==0) { $line='678	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	30.00	100.00	0.00")>0) {  if ($k679==0) { $line='679	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	40.00	100.00	0.00")>0) {  if ($k680==0) { $line='680	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	55.00	100.00	0.00")>0) {  if ($k681==0) { $line='681	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	70.00	100.00	0.00")>0) {  if ($k682==0) { $line='682	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	85.00	100.00	0.00")>0) {  if ($k683==0) { $line='683	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	30.00	100.00	100.00	0.00")>0) {  if ($k684==0) { $line='684	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	100.00	0.00")>0) {  if ($k685==0) { $line='685	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	100.00	0.00")>0) {  if ($k686==0) { $line='686	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	100.00	0.00")>0) {  if ($k687==0) { $line='687	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	30.00	100.00	0.00")>0) {  if ($k688==0) { $line='688	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	100.00	0.00")>0) {  if ($k689==0) { $line='689	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	55.00	100.00	0.00")>0) {  if ($k690==0) { $line='690	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	100.00	0.00")>0) {  if ($k691==0) { $line='691	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	85.00	100.00	0.00")>0) {  if ($k692==0) { $line='692	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	100.00	0.00")>0) {  if ($k693==0) { $line='693	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	0.00	100.00	0.00")>0) {  if ($k694==0) { $line='694	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	10.00	100.00	0.00")>0) {  if ($k695==0) { $line='695	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	20.00	100.00	0.00")>0) {  if ($k696==0) { $line='696	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	30.00	100.00	0.00")>0) {  if ($k697==0) { $line='697	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	40.00	100.00	0.00")>0) {  if ($k698==0) { $line='698	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	55.00	100.00	0.00")>0) {  if ($k699==0) { $line='699	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	70.00	100.00	0.00")>0) {  if ($k700==0) { $line='700	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	85.00	100.00	0.00")>0) {  if ($k701==0) { $line='701	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	55.00	100.00	100.00	0.00")>0) {  if ($k702==0) { $line='702	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	100.00	0.00")>0) {  if ($k703==0) { $line='703	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	100.00	0.00")>0) {  if ($k704==0) { $line='704	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	100.00	0.00")>0) {  if ($k705==0) { $line='705	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	30.00	100.00	0.00")>0) {  if ($k706==0) { $line='706	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	100.00	0.00")>0) {  if ($k707==0) { $line='707	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	55.00	100.00	0.00")>0) {  if ($k708==0) { $line='708	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	100.00	0.00")>0) {  if ($k709==0) { $line='709	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	85.00	100.00	0.00")>0) {  if ($k710==0) { $line='710	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	100.00	0.00")>0) {  if ($k711==0) { $line='711	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	0.00	100.00	0.00")>0) {  if ($k712==0) { $line='712	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	10.00	100.00	0.00")>0) {  if ($k713==0) { $line='713	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	20.00	100.00	0.00")>0) {  if ($k714==0) { $line='714	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	30.00	100.00	0.00")>0) {  if ($k715==0) { $line='715	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	40.00	100.00	0.00")>0) {  if ($k716==0) { $line='716	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	55.00	100.00	0.00")>0) {  if ($k717==0) { $line='717	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	70.00	100.00	0.00")>0) {  if ($k718==0) { $line='718	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	85.00	100.00	0.00")>0) {  if ($k719==0) { $line='719	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	85.00	100.00	100.00	0.00")>0) {  if ($k720==0) { $line='720	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	0.00")>0) {  if ($k721==0) { $line='721	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	100.00	0.00")>0) {  if ($k722==0) { $line='722	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	100.00	0.00")>0) {  if ($k723==0) { $line='723	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	30.00	100.00	0.00")>0) {  if ($k724==0) { $line='724	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	100.00	0.00")>0) {  if ($k725==0) { $line='725	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	55.00	100.00	0.00")>0) {  if ($k726==0) { $line='726	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	100.00	0.00")>0) {  if ($k727==0) { $line='727	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	100.00	0.00")>0) {  if ($k728==0) { $line='728	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	100.00	0.00")>0) {  if ($k729==0) { $line='729	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	20.00")>0) {  if ($k730==0) { $line='730	'.$contents[$i];fwrite($fh, $line);$k730=1;} elseif ($k730==1) { $line='1360	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	10.00	0.00	20.00")>0) {  if ($k731==0) { $line='731	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	0.00	20.00")>0) {  if ($k732==0) { $line='732	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	0.00	20.00")>0) {  if ($k733==0) { $line='733	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	0.00	20.00")>0) {  if ($k734==0) { $line='734	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	0.00	20.00")>0) {  if ($k735==0) { $line='735	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	0.00	20.00")>0) {  if ($k736==0) { $line='736	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	0.00	20.00")>0) {  if ($k737==0) { $line='737	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	0.00	20.00")>0) {  if ($k738==0) { $line='738	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	0.00	20.00")>0) {  if ($k739==0) { $line='739	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	0.00	20.00")>0) {  if ($k740==0) { $line='740	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	0.00	20.00")>0) {  if ($k741==0) { $line='741	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	0.00	20.00")>0) {  if ($k742==0) { $line='742	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	0.00	20.00")>0) {  if ($k743==0) { $line='743	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	0.00	20.00")>0) {  if ($k744==0) { $line='744	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	0.00	20.00")>0) {  if ($k745==0) { $line='745	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	0.00	20.00")>0) {  if ($k746==0) { $line='746	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	0.00	20.00")>0) {  if ($k747==0) { $line='747	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	0.00	20.00")>0) {  if ($k748==0) { $line='748	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	0.00	20.00")>0) {  if ($k749==0) { $line='749	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	0.00	20.00")>0) {  if ($k750==0) { $line='750	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	20.00")>0) {  if ($k751==0) { $line='751	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	0.00	20.00")>0) {  if ($k752==0) { $line='752	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	0.00	20.00")>0) {  if ($k753==0) { $line='753	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	0.00	20.00")>0) {  if ($k754==0) { $line='754	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	0.00	20.00")>0) {  if ($k755==0) { $line='755	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	0.00	20.00")>0) {  if ($k756==0) { $line='756	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	0.00	20.00")>0) {  if ($k757==0) { $line='757	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	0.00	20.00")>0) {  if ($k758==0) { $line='758	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	0.00	20.00")>0) {  if ($k759==0) { $line='759	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	0.00	20.00")>0) {  if ($k760==0) { $line='760	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	0.00	20.00")>0) {  if ($k761==0) { $line='761	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	0.00	20.00")>0) {  if ($k762==0) { $line='762	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	0.00	20.00")>0) {  if ($k763==0) { $line='763	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	0.00	20.00")>0) {  if ($k764==0) { $line='764	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	0.00	20.00")>0) {  if ($k765==0) { $line='765	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	10.00	20.00")>0) {  if ($k766==0) { $line='766	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	10.00	20.00")>0) {  if ($k767==0) { $line='767	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	10.00	20.00")>0) {  if ($k768==0) { $line='768	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	10.00	20.00")>0) {  if ($k769==0) { $line='769	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	10.00	20.00")>0) {  if ($k770==0) { $line='770	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	10.00	20.00")>0) {  if ($k771==0) { $line='771	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	10.00	20.00")>0) {  if ($k772==0) { $line='772	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	10.00	20.00")>0) {  if ($k773==0) { $line='773	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	10.00	20.00")>0) {  if ($k774==0) { $line='774	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	10.00	20.00")>0) {  if ($k775==0) { $line='775	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	10.00	20.00")>0) {  if ($k776==0) { $line='776	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	10.00	20.00")>0) {  if ($k777==0) { $line='777	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	10.00	20.00")>0) {  if ($k778==0) { $line='778	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	10.00	20.00")>0) {  if ($k779==0) { $line='779	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	10.00	20.00")>0) {  if ($k780==0) { $line='780	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	10.00	20.00")>0) {  if ($k781==0) { $line='781	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	10.00	20.00")>0) {  if ($k782==0) { $line='782	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	10.00	20.00")>0) {  if ($k783==0) { $line='783	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	10.00	20.00")>0) {  if ($k784==0) { $line='784	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	10.00	20.00")>0) {  if ($k785==0) { $line='785	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	10.00	20.00")>0) {  if ($k786==0) { $line='786	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	10.00	20.00")>0) {  if ($k787==0) { $line='787	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	10.00	20.00")>0) {  if ($k788==0) { $line='788	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	10.00	20.00")>0) {  if ($k789==0) { $line='789	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	10.00	20.00")>0) {  if ($k790==0) { $line='790	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	10.00	20.00")>0) {  if ($k791==0) { $line='791	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	10.00	20.00")>0) {  if ($k792==0) { $line='792	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	10.00	20.00")>0) {  if ($k793==0) { $line='793	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	10.00	20.00")>0) {  if ($k794==0) { $line='794	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	10.00	20.00")>0) {  if ($k795==0) { $line='795	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	10.00	20.00")>0) {  if ($k796==0) { $line='796	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	10.00	20.00")>0) {  if ($k797==0) { $line='797	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	10.00	20.00")>0) {  if ($k798==0) { $line='798	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	10.00	20.00")>0) {  if ($k799==0) { $line='799	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	10.00	20.00")>0) {  if ($k800==0) { $line='800	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	10.00	20.00")>0) {  if ($k801==0) { $line='801	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	20.00	20.00")>0) {  if ($k802==0) { $line='802	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	20.00	20.00")>0) {  if ($k803==0) { $line='803	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	20.00	20.00")>0) {  if ($k804==0) { $line='804	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	20.00	20.00")>0) {  if ($k805==0) { $line='805	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	20.00	20.00")>0) {  if ($k806==0) { $line='806	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	20.00	20.00")>0) {  if ($k807==0) { $line='807	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	20.00	20.00")>0) {  if ($k808==0) { $line='808	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	20.00	20.00")>0) {  if ($k809==0) { $line='809	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	20.00	20.00")>0) {  if ($k810==0) { $line='810	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	20.00	20.00")>0) {  if ($k811==0) { $line='811	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	20.00	20.00")>0) {  if ($k812==0) { $line='812	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	20.00	20.00")>0) {  if ($k813==0) { $line='813	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	20.00	20.00")>0) {  if ($k814==0) { $line='814	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	20.00	20.00")>0) {  if ($k815==0) { $line='815	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	20.00	20.00")>0) {  if ($k816==0) { $line='816	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	20.00	20.00")>0) {  if ($k817==0) { $line='817	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	20.00	20.00")>0) {  if ($k818==0) { $line='818	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	20.00	20.00")>0) {  if ($k819==0) { $line='819	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	20.00	20.00")>0) {  if ($k820==0) { $line='820	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	20.00	20.00")>0) {  if ($k821==0) { $line='821	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	20.00	20.00")>0) {  if ($k822==0) { $line='822	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	20.00	20.00")>0) {  if ($k823==0) { $line='823	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	20.00	20.00")>0) {  if ($k824==0) { $line='824	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	20.00	20.00")>0) {  if ($k825==0) { $line='825	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	20.00	20.00")>0) {  if ($k826==0) { $line='826	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	20.00	20.00")>0) {  if ($k827==0) { $line='827	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	20.00	20.00")>0) {  if ($k828==0) { $line='828	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	20.00	20.00")>0) {  if ($k829==0) { $line='829	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	20.00	20.00")>0) {  if ($k830==0) { $line='830	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	20.00	20.00")>0) {  if ($k831==0) { $line='831	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	20.00	20.00")>0) {  if ($k832==0) { $line='832	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	20.00	20.00")>0) {  if ($k833==0) { $line='833	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	20.00	20.00")>0) {  if ($k834==0) { $line='834	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	20.00	20.00")>0) {  if ($k835==0) { $line='835	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	20.00	20.00")>0) {  if ($k836==0) { $line='836	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	20.00	20.00")>0) {  if ($k837==0) { $line='837	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	20.00")>0) {  if ($k838==0) { $line='838	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	40.00	20.00")>0) {  if ($k839==0) { $line='839	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	40.00	20.00")>0) {  if ($k840==0) { $line='840	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	20.00")>0) {  if ($k841==0) { $line='841	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	40.00	20.00")>0) {  if ($k842==0) { $line='842	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	40.00	20.00")>0) {  if ($k843==0) { $line='843	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	40.00	20.00")>0) {  if ($k844==0) { $line='844	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	40.00	20.00")>0) {  if ($k845==0) { $line='845	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	40.00	20.00")>0) {  if ($k846==0) { $line='846	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	40.00	20.00")>0) {  if ($k847==0) { $line='847	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	40.00	20.00")>0) {  if ($k848==0) { $line='848	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	40.00	20.00")>0) {  if ($k849==0) { $line='849	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	40.00	20.00")>0) {  if ($k850==0) { $line='850	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	40.00	20.00")>0) {  if ($k851==0) { $line='851	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	40.00	20.00")>0) {  if ($k852==0) { $line='852	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	40.00	20.00")>0) {  if ($k853==0) { $line='853	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	40.00	20.00")>0) {  if ($k854==0) { $line='854	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	40.00	20.00")>0) {  if ($k855==0) { $line='855	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	20.00")>0) {  if ($k856==0) { $line='856	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	40.00	20.00")>0) {  if ($k857==0) { $line='857	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	40.00	20.00")>0) {  if ($k858==0) { $line='858	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	20.00")>0) {  if ($k859==0) { $line='859	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	40.00	20.00")>0) {  if ($k860==0) { $line='860	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	40.00	20.00")>0) {  if ($k861==0) { $line='861	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	40.00	20.00")>0) {  if ($k862==0) { $line='862	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	40.00	20.00")>0) {  if ($k863==0) { $line='863	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	40.00	20.00")>0) {  if ($k864==0) { $line='864	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	40.00	20.00")>0) {  if ($k865==0) { $line='865	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	40.00	20.00")>0) {  if ($k866==0) { $line='866	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	40.00	20.00")>0) {  if ($k867==0) { $line='867	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	40.00	20.00")>0) {  if ($k868==0) { $line='868	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	40.00	20.00")>0) {  if ($k869==0) { $line='869	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	40.00	20.00")>0) {  if ($k870==0) { $line='870	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	40.00	20.00")>0) {  if ($k871==0) { $line='871	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	40.00	20.00")>0) {  if ($k872==0) { $line='872	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	40.00	20.00")>0) {  if ($k873==0) { $line='873	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	70.00	20.00")>0) {  if ($k874==0) { $line='874	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	70.00	20.00")>0) {  if ($k875==0) { $line='875	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	70.00	20.00")>0) {  if ($k876==0) { $line='876	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	70.00	20.00")>0) {  if ($k877==0) { $line='877	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	70.00	20.00")>0) {  if ($k878==0) { $line='878	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	70.00	20.00")>0) {  if ($k879==0) { $line='879	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	70.00	20.00")>0) {  if ($k880==0) { $line='880	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	70.00	20.00")>0) {  if ($k881==0) { $line='881	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	70.00	20.00")>0) {  if ($k882==0) { $line='882	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	70.00	20.00")>0) {  if ($k883==0) { $line='883	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	70.00	20.00")>0) {  if ($k884==0) { $line='884	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	70.00	20.00")>0) {  if ($k885==0) { $line='885	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	70.00	20.00")>0) {  if ($k886==0) { $line='886	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	70.00	20.00")>0) {  if ($k887==0) { $line='887	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	70.00	20.00")>0) {  if ($k888==0) { $line='888	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	70.00	20.00")>0) {  if ($k889==0) { $line='889	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	70.00	20.00")>0) {  if ($k890==0) { $line='890	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	70.00	20.00")>0) {  if ($k891==0) { $line='891	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	70.00	20.00")>0) {  if ($k892==0) { $line='892	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	70.00	20.00")>0) {  if ($k893==0) { $line='893	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	70.00	20.00")>0) {  if ($k894==0) { $line='894	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	70.00	20.00")>0) {  if ($k895==0) { $line='895	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	70.00	20.00")>0) {  if ($k896==0) { $line='896	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	70.00	20.00")>0) {  if ($k897==0) { $line='897	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	70.00	20.00")>0) {  if ($k898==0) { $line='898	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	70.00	20.00")>0) {  if ($k899==0) { $line='899	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	70.00	20.00")>0) {  if ($k900==0) { $line='900	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	70.00	20.00")>0) {  if ($k901==0) { $line='901	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	70.00	20.00")>0) {  if ($k902==0) { $line='902	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	70.00	20.00")>0) {  if ($k903==0) { $line='903	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	70.00	20.00")>0) {  if ($k904==0) { $line='904	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	70.00	20.00")>0) {  if ($k905==0) { $line='905	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	70.00	20.00")>0) {  if ($k906==0) { $line='906	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	70.00	20.00")>0) {  if ($k907==0) { $line='907	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	70.00	20.00")>0) {  if ($k908==0) { $line='908	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	70.00	20.00")>0) {  if ($k909==0) { $line='909	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	20.00")>0) {  if ($k910==0) { $line='910	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	100.00	20.00")>0) {  if ($k911==0) { $line='911	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	100.00	20.00")>0) {  if ($k912==0) { $line='912	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	100.00	20.00")>0) {  if ($k913==0) { $line='913	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	100.00	20.00")>0) {  if ($k914==0) { $line='914	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	20.00")>0) {  if ($k915==0) { $line='915	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	100.00	20.00")>0) {  if ($k916==0) { $line='916	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	100.00	20.00")>0) {  if ($k917==0) { $line='917	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	100.00	20.00")>0) {  if ($k918==0) { $line='918	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	100.00	20.00")>0) {  if ($k919==0) { $line='919	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	100.00	20.00")>0) {  if ($k920==0) { $line='920	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	100.00	100.00	20.00")>0) {  if ($k921==0) { $line='921	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	100.00	20.00")>0) {  if ($k922==0) { $line='922	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	100.00	20.00")>0) {  if ($k923==0) { $line='923	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	100.00	20.00")>0) {  if ($k924==0) { $line='924	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	100.00	20.00")>0) {  if ($k925==0) { $line='925	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	100.00	20.00")>0) {  if ($k926==0) { $line='926	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	100.00	20.00")>0) {  if ($k927==0) { $line='927	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	100.00	20.00")>0) {  if ($k928==0) { $line='928	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	100.00	20.00")>0) {  if ($k929==0) { $line='929	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	100.00	20.00")>0) {  if ($k930==0) { $line='930	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	100.00	20.00")>0) {  if ($k931==0) { $line='931	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	100.00	20.00")>0) {  if ($k932==0) { $line='932	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	100.00	20.00")>0) {  if ($k933==0) { $line='933	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	100.00	20.00")>0) {  if ($k934==0) { $line='934	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	100.00	20.00")>0) {  if ($k935==0) { $line='935	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	100.00	20.00")>0) {  if ($k936==0) { $line='936	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	100.00	20.00")>0) {  if ($k937==0) { $line='937	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	100.00	20.00")>0) {  if ($k938==0) { $line='938	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	100.00	20.00")>0) {  if ($k939==0) { $line='939	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	20.00")>0) {  if ($k940==0) { $line='940	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	10.00	100.00	20.00")>0) {  if ($k941==0) { $line='941	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	100.00	20.00")>0) {  if ($k942==0) { $line='942	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	100.00	20.00")>0) {  if ($k943==0) { $line='943	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	100.00	20.00")>0) {  if ($k944==0) { $line='944	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	100.00	20.00")>0) {  if ($k945==0) { $line='945	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	40.00")>0) {  if ($k946==0) { $line='946	'.$contents[$i];fwrite($fh, $line);$k946=1;} elseif ($k946==1) { $line='1357	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	20.00	0.00	40.00")>0) {  if ($k947==0) { $line='947	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	0.00	40.00")>0) {  if ($k948==0) { $line='948	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	0.00	40.00")>0) {  if ($k949==0) { $line='949	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	0.00	40.00")>0) {  if ($k950==0) { $line='950	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	0.00	40.00")>0) {  if ($k951==0) { $line='951	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	0.00	40.00")>0) {  if ($k952==0) { $line='952	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	0.00	40.00")>0) {  if ($k953==0) { $line='953	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	0.00	40.00")>0) {  if ($k954==0) { $line='954	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	0.00	40.00")>0) {  if ($k955==0) { $line='955	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	0.00	40.00")>0) {  if ($k956==0) { $line='956	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	0.00	40.00")>0) {  if ($k957==0) { $line='957	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	40.00")>0) {  if ($k958==0) { $line='958	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	0.00	40.00")>0) {  if ($k959==0) { $line='959	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	0.00	40.00")>0) {  if ($k960==0) { $line='960	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	0.00	40.00")>0) {  if ($k961==0) { $line='961	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	0.00	40.00")>0) {  if ($k962==0) { $line='962	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	0.00	40.00")>0) {  if ($k963==0) { $line='963	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	0.00	40.00")>0) {  if ($k964==0) { $line='964	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	0.00	40.00")>0) {  if ($k965==0) { $line='965	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	0.00	40.00")>0) {  if ($k966==0) { $line='966	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	0.00	40.00")>0) {  if ($k967==0) { $line='967	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	0.00	40.00")>0) {  if ($k968==0) { $line='968	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	0.00	40.00")>0) {  if ($k969==0) { $line='969	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	0.00	40.00")>0) {  if ($k970==0) { $line='970	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	20.00	40.00")>0) {  if ($k971==0) { $line='971	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	20.00	40.00")>0) {  if ($k972==0) { $line='972	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	20.00	40.00")>0) {  if ($k973==0) { $line='973	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	20.00	40.00")>0) {  if ($k974==0) { $line='974	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	20.00	40.00")>0) {  if ($k975==0) { $line='975	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	20.00	40.00")>0) {  if ($k976==0) { $line='976	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	20.00	40.00")>0) {  if ($k977==0) { $line='977	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	20.00	40.00")>0) {  if ($k978==0) { $line='978	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	20.00	40.00")>0) {  if ($k979==0) { $line='979	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	20.00	40.00")>0) {  if ($k980==0) { $line='980	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	20.00	40.00")>0) {  if ($k981==0) { $line='981	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	20.00	40.00")>0) {  if ($k982==0) { $line='982	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	20.00	40.00")>0) {  if ($k983==0) { $line='983	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	20.00	40.00")>0) {  if ($k984==0) { $line='984	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	20.00	40.00")>0) {  if ($k985==0) { $line='985	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	20.00	40.00")>0) {  if ($k986==0) { $line='986	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	20.00	40.00")>0) {  if ($k987==0) { $line='987	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	20.00	40.00")>0) {  if ($k988==0) { $line='988	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	20.00	40.00")>0) {  if ($k989==0) { $line='989	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	20.00	40.00")>0) {  if ($k990==0) { $line='990	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	20.00	40.00")>0) {  if ($k991==0) { $line='991	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	20.00	40.00")>0) {  if ($k992==0) { $line='992	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	20.00	40.00")>0) {  if ($k993==0) { $line='993	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	20.00	40.00")>0) {  if ($k994==0) { $line='994	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	20.00	40.00")>0) {  if ($k995==0) { $line='995	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	40.00")>0) {  if ($k996==0) { $line='996	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	40.00	40.00")>0) {  if ($k997==0) { $line='997	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	40.00")>0) {  if ($k998==0) { $line='998	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	40.00	40.00")>0) {  if ($k999==0) { $line='999	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	40.00	40.00")>0) {  if ($k1000==0) { $line='1000	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	40.00	40.00")>0) {  if ($k1001==0) { $line='1001	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	40.00	40.00")>0) {  if ($k1002==0) { $line='1002	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	40.00	40.00")>0) {  if ($k1003==0) { $line='1003	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	40.00	40.00")>0) {  if ($k1004==0) { $line='1004	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	40.00	40.00")>0) {  if ($k1005==0) { $line='1005	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	40.00")>0) {  if ($k1006==0) { $line='1006	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	40.00	40.00")>0) {  if ($k1007==0) { $line='1007	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	40.00")>0) {  if ($k1008==0) { $line='1008	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	40.00	40.00")>0) {  if ($k1009==0) { $line='1009	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	40.00	40.00")>0) {  if ($k1010==0) { $line='1010	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	40.00	40.00")>0) {  if ($k1011==0) { $line='1011	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	40.00	40.00")>0) {  if ($k1012==0) { $line='1012	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	40.00	40.00")>0) {  if ($k1013==0) { $line='1013	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	40.00	40.00")>0) {  if ($k1014==0) { $line='1014	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	40.00	40.00")>0) {  if ($k1015==0) { $line='1015	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	40.00	40.00")>0) {  if ($k1016==0) { $line='1016	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	40.00	40.00")>0) {  if ($k1017==0) { $line='1017	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	40.00	40.00")>0) {  if ($k1018==0) { $line='1018	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	40.00	40.00")>0) {  if ($k1019==0) { $line='1019	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	40.00	40.00")>0) {  if ($k1020==0) { $line='1020	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	70.00	40.00")>0) {  if ($k1021==0) { $line='1021	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	70.00	40.00")>0) {  if ($k1022==0) { $line='1022	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	70.00	40.00")>0) {  if ($k1023==0) { $line='1023	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	70.00	40.00")>0) {  if ($k1024==0) { $line='1024	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	70.00	40.00")>0) {  if ($k1025==0) { $line='1025	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	70.00	40.00")>0) {  if ($k1026==0) { $line='1026	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	70.00	40.00")>0) {  if ($k1027==0) { $line='1027	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	70.00	40.00")>0) {  if ($k1028==0) { $line='1028	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	70.00	40.00")>0) {  if ($k1029==0) { $line='1029	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	70.00	40.00")>0) {  if ($k1030==0) { $line='1030	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	70.00	40.00")>0) {  if ($k1031==0) { $line='1031	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	70.00	40.00")>0) {  if ($k1032==0) { $line='1032	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	70.00	40.00")>0) {  if ($k1033==0) { $line='1033	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	70.00	40.00")>0) {  if ($k1034==0) { $line='1034	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	70.00	40.00")>0) {  if ($k1035==0) { $line='1035	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	70.00	40.00")>0) {  if ($k1036==0) { $line='1036	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	70.00	40.00")>0) {  if ($k1037==0) { $line='1037	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	70.00	40.00")>0) {  if ($k1038==0) { $line='1038	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	70.00	40.00")>0) {  if ($k1039==0) { $line='1039	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	70.00	40.00")>0) {  if ($k1040==0) { $line='1040	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	70.00	40.00")>0) {  if ($k1041==0) { $line='1041	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	70.00	40.00")>0) {  if ($k1042==0) { $line='1042	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	70.00	40.00")>0) {  if ($k1043==0) { $line='1043	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	70.00	40.00")>0) {  if ($k1044==0) { $line='1044	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	70.00	40.00")>0) {  if ($k1045==0) { $line='1045	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	40.00")>0) {  if ($k1046==0) { $line='1046	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	100.00	40.00")>0) {  if ($k1047==0) { $line='1047	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	100.00	40.00")>0) {  if ($k1048==0) { $line='1048	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	100.00	40.00")>0) {  if ($k1049==0) { $line='1049	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	40.00")>0) {  if ($k1050==0) { $line='1050	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	100.00	40.00")>0) {  if ($k1051==0) { $line='1051	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	100.00	40.00")>0) {  if ($k1052==0) { $line='1052	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	100.00	40.00")>0) {  if ($k1053==0) { $line='1053	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	100.00	40.00")>0) {  if ($k1054==0) { $line='1054	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	100.00	40.00")>0) {  if ($k1055==0) { $line='1055	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	100.00	40.00")>0) {  if ($k1056==0) { $line='1056	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	100.00	40.00")>0) {  if ($k1057==0) { $line='1057	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	100.00	40.00")>0) {  if ($k1058==0) { $line='1058	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	100.00	40.00")>0) {  if ($k1059==0) { $line='1059	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	100.00	40.00")>0) {  if ($k1060==0) { $line='1060	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	100.00	40.00")>0) {  if ($k1061==0) { $line='1061	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	100.00	40.00")>0) {  if ($k1062==0) { $line='1062	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	100.00	40.00")>0) {  if ($k1063==0) { $line='1063	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	100.00	40.00")>0) {  if ($k1064==0) { $line='1064	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	100.00	40.00")>0) {  if ($k1065==0) { $line='1065	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	40.00")>0) {  if ($k1066==0) { $line='1066	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	100.00	40.00")>0) {  if ($k1067==0) { $line='1067	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	100.00	40.00")>0) {  if ($k1068==0) { $line='1068	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	100.00	40.00")>0) {  if ($k1069==0) { $line='1069	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	100.00	40.00")>0) {  if ($k1070==0) { $line='1070	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	60.00")>0) {  if ($k1071==0) { $line='1071	'.$contents[$i];fwrite($fh, $line);$k1071=1;} elseif ($k1071==1) { $line='1355	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	20.00	0.00	60.00")>0) {  if ($k1072==0) { $line='1072	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	0.00	60.00")>0) {  if ($k1073==0) { $line='1073	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	0.00	60.00")>0) {  if ($k1074==0) { $line='1074	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	0.00	60.00")>0) {  if ($k1075==0) { $line='1075	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	0.00	60.00")>0) {  if ($k1076==0) { $line='1076	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	0.00	60.00")>0) {  if ($k1077==0) { $line='1077	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	0.00	60.00")>0) {  if ($k1078==0) { $line='1078	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	0.00	60.00")>0) {  if ($k1079==0) { $line='1079	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	0.00	60.00")>0) {  if ($k1080==0) { $line='1080	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	0.00	60.00")>0) {  if ($k1081==0) { $line='1081	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	0.00	60.00")>0) {  if ($k1082==0) { $line='1082	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	60.00")>0) {  if ($k1083==0) { $line='1083	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	0.00	60.00")>0) {  if ($k1084==0) { $line='1084	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	0.00	60.00")>0) {  if ($k1085==0) { $line='1085	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	0.00	60.00")>0) {  if ($k1086==0) { $line='1086	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	0.00	60.00")>0) {  if ($k1087==0) { $line='1087	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	0.00	60.00")>0) {  if ($k1088==0) { $line='1088	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	0.00	60.00")>0) {  if ($k1089==0) { $line='1089	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	0.00	60.00")>0) {  if ($k1090==0) { $line='1090	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	0.00	60.00")>0) {  if ($k1091==0) { $line='1091	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	0.00	60.00")>0) {  if ($k1092==0) { $line='1092	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	0.00	60.00")>0) {  if ($k1093==0) { $line='1093	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	0.00	60.00")>0) {  if ($k1094==0) { $line='1094	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	0.00	60.00")>0) {  if ($k1095==0) { $line='1095	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	20.00	60.00")>0) {  if ($k1096==0) { $line='1096	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	20.00	60.00")>0) {  if ($k1097==0) { $line='1097	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	20.00	60.00")>0) {  if ($k1098==0) { $line='1098	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	20.00	60.00")>0) {  if ($k1099==0) { $line='1099	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	20.00	60.00")>0) {  if ($k1100==0) { $line='1100	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	20.00	60.00")>0) {  if ($k1101==0) { $line='1101	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	20.00	60.00")>0) {  if ($k1102==0) { $line='1102	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	20.00	60.00")>0) {  if ($k1103==0) { $line='1103	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	20.00	60.00")>0) {  if ($k1104==0) { $line='1104	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	20.00	60.00")>0) {  if ($k1105==0) { $line='1105	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	20.00	60.00")>0) {  if ($k1106==0) { $line='1106	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	20.00	60.00")>0) {  if ($k1107==0) { $line='1107	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	20.00	60.00")>0) {  if ($k1108==0) { $line='1108	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	20.00	60.00")>0) {  if ($k1109==0) { $line='1109	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	20.00	60.00")>0) {  if ($k1110==0) { $line='1110	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	20.00	60.00")>0) {  if ($k1111==0) { $line='1111	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	20.00	60.00")>0) {  if ($k1112==0) { $line='1112	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	20.00	60.00")>0) {  if ($k1113==0) { $line='1113	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	20.00	60.00")>0) {  if ($k1114==0) { $line='1114	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	20.00	60.00")>0) {  if ($k1115==0) { $line='1115	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	20.00	60.00")>0) {  if ($k1116==0) { $line='1116	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	20.00	60.00")>0) {  if ($k1117==0) { $line='1117	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	20.00	60.00")>0) {  if ($k1118==0) { $line='1118	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	20.00	60.00")>0) {  if ($k1119==0) { $line='1119	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	20.00	60.00")>0) {  if ($k1120==0) { $line='1120	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	60.00")>0) {  if ($k1121==0) { $line='1121	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	40.00	60.00")>0) {  if ($k1122==0) { $line='1122	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	60.00")>0) {  if ($k1123==0) { $line='1123	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	40.00	60.00")>0) {  if ($k1124==0) { $line='1124	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	40.00	60.00")>0) {  if ($k1125==0) { $line='1125	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	40.00	60.00")>0) {  if ($k1126==0) { $line='1126	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	40.00	60.00")>0) {  if ($k1127==0) { $line='1127	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	40.00	60.00")>0) {  if ($k1128==0) { $line='1128	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	40.00	60.00")>0) {  if ($k1129==0) { $line='1129	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	40.00	60.00")>0) {  if ($k1130==0) { $line='1130	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	60.00")>0) {  if ($k1131==0) { $line='1131	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	40.00	60.00")>0) {  if ($k1132==0) { $line='1132	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	60.00")>0) {  if ($k1133==0) { $line='1133	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	40.00	60.00")>0) {  if ($k1134==0) { $line='1134	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	40.00	60.00")>0) {  if ($k1135==0) { $line='1135	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	40.00	60.00")>0) {  if ($k1136==0) { $line='1136	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	40.00	60.00")>0) {  if ($k1137==0) { $line='1137	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	40.00	60.00")>0) {  if ($k1138==0) { $line='1138	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	40.00	60.00")>0) {  if ($k1139==0) { $line='1139	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	40.00	60.00")>0) {  if ($k1140==0) { $line='1140	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	40.00	60.00")>0) {  if ($k1141==0) { $line='1141	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	40.00	60.00")>0) {  if ($k1142==0) { $line='1142	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	40.00	60.00")>0) {  if ($k1143==0) { $line='1143	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	40.00	60.00")>0) {  if ($k1144==0) { $line='1144	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	40.00	60.00")>0) {  if ($k1145==0) { $line='1145	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	70.00	60.00")>0) {  if ($k1146==0) { $line='1146	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	70.00	60.00")>0) {  if ($k1147==0) { $line='1147	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	70.00	60.00")>0) {  if ($k1148==0) { $line='1148	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	70.00	60.00")>0) {  if ($k1149==0) { $line='1149	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	70.00	60.00")>0) {  if ($k1150==0) { $line='1150	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	70.00	60.00")>0) {  if ($k1151==0) { $line='1151	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	70.00	60.00")>0) {  if ($k1152==0) { $line='1152	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	70.00	60.00")>0) {  if ($k1153==0) { $line='1153	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	70.00	60.00")>0) {  if ($k1154==0) { $line='1154	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	70.00	60.00")>0) {  if ($k1155==0) { $line='1155	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	70.00	60.00")>0) {  if ($k1156==0) { $line='1156	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	70.00	60.00")>0) {  if ($k1157==0) { $line='1157	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	70.00	60.00")>0) {  if ($k1158==0) { $line='1158	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	70.00	60.00")>0) {  if ($k1159==0) { $line='1159	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	70.00	60.00")>0) {  if ($k1160==0) { $line='1160	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	70.00	60.00")>0) {  if ($k1161==0) { $line='1161	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	70.00	60.00")>0) {  if ($k1162==0) { $line='1162	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	70.00	60.00")>0) {  if ($k1163==0) { $line='1163	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	70.00	60.00")>0) {  if ($k1164==0) { $line='1164	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	70.00	60.00")>0) {  if ($k1165==0) { $line='1165	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	70.00	60.00")>0) {  if ($k1166==0) { $line='1166	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	70.00	60.00")>0) {  if ($k1167==0) { $line='1167	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	70.00	60.00")>0) {  if ($k1168==0) { $line='1168	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	70.00	60.00")>0) {  if ($k1169==0) { $line='1169	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	70.00	60.00")>0) {  if ($k1170==0) { $line='1170	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	60.00")>0) {  if ($k1171==0) { $line='1171	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	100.00	60.00")>0) {  if ($k1172==0) { $line='1172	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	100.00	60.00")>0) {  if ($k1173==0) { $line='1173	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	100.00	60.00")>0) {  if ($k1174==0) { $line='1174	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	60.00")>0) {  if ($k1175==0) { $line='1175	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	100.00	60.00")>0) {  if ($k1176==0) { $line='1176	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	100.00	60.00")>0) {  if ($k1177==0) { $line='1177	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	100.00	60.00")>0) {  if ($k1178==0) { $line='1178	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	100.00	60.00")>0) {  if ($k1179==0) { $line='1179	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	100.00	100.00	60.00")>0) {  if ($k1180==0) { $line='1180	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	100.00	60.00")>0) {  if ($k1181==0) { $line='1181	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	100.00	60.00")>0) {  if ($k1182==0) { $line='1182	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	100.00	60.00")>0) {  if ($k1183==0) { $line='1183	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	100.00	60.00")>0) {  if ($k1184==0) { $line='1184	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	100.00	60.00")>0) {  if ($k1185==0) { $line='1185	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	100.00	60.00")>0) {  if ($k1186==0) { $line='1186	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	100.00	60.00")>0) {  if ($k1187==0) { $line='1187	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	100.00	60.00")>0) {  if ($k1188==0) { $line='1188	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	100.00	60.00")>0) {  if ($k1189==0) { $line='1189	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	100.00	60.00")>0) {  if ($k1190==0) { $line='1190	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	60.00")>0) {  if ($k1191==0) { $line='1191	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	20.00	100.00	60.00")>0) {  if ($k1192==0) { $line='1192	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	100.00	60.00")>0) {  if ($k1193==0) { $line='1193	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	100.00	60.00")>0) {  if ($k1194==0) { $line='1194	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	100.00	60.00")>0) {  if ($k1195==0) { $line='1195	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	80.00")>0) {  if ($k1196==0) { $line='1196	'.$contents[$i];fwrite($fh, $line);$k1196=1;} elseif ($k1196==1) { $line='1352	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	40.00	0.00	80.00")>0) {  if ($k1197==0) { $line='1197	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	0.00	80.00")>0) {  if ($k1198==0) { $line='1198	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	0.00	80.00")>0) {  if ($k1199==0) { $line='1199	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	0.00	80.00")>0) {  if ($k1200==0) { $line='1200	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	80.00")>0) {  if ($k1201==0) { $line='1201	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	0.00	80.00")>0) {  if ($k1202==0) { $line='1202	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	0.00	80.00")>0) {  if ($k1203==0) { $line='1203	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	0.00	80.00")>0) {  if ($k1204==0) { $line='1204	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	0.00	80.00")>0) {  if ($k1205==0) { $line='1205	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	0.00	80.00")>0) {  if ($k1206==0) { $line='1206	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	0.00	80.00")>0) {  if ($k1207==0) { $line='1207	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	0.00	80.00")>0) {  if ($k1208==0) { $line='1208	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	0.00	80.00")>0) {  if ($k1209==0) { $line='1209	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	0.00	80.00")>0) {  if ($k1210==0) { $line='1210	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	0.00	80.00")>0) {  if ($k1211==0) { $line='1211	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	80.00")>0) {  if ($k1212==0) { $line='1212	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	80.00")>0) {  if ($k1213==0) { $line='1213	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	40.00	80.00")>0) {  if ($k1214==0) { $line='1214	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	40.00	80.00")>0) {  if ($k1215==0) { $line='1215	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	80.00")>0) {  if ($k1216==0) { $line='1216	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	80.00")>0) {  if ($k1217==0) { $line='1217	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	40.00	80.00")>0) {  if ($k1218==0) { $line='1218	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	40.00	80.00")>0) {  if ($k1219==0) { $line='1219	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	40.00	80.00")>0) {  if ($k1220==0) { $line='1220	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	40.00	80.00")>0) {  if ($k1221==0) { $line='1221	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	40.00	80.00")>0) {  if ($k1222==0) { $line='1222	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	40.00	80.00")>0) {  if ($k1223==0) { $line='1223	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	40.00	80.00")>0) {  if ($k1224==0) { $line='1224	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	40.00	80.00")>0) {  if ($k1225==0) { $line='1225	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	40.00	80.00")>0) {  if ($k1226==0) { $line='1226	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	40.00	80.00")>0) {  if ($k1227==0) { $line='1227	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	70.00	80.00")>0) {  if ($k1228==0) { $line='1228	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	70.00	80.00")>0) {  if ($k1229==0) { $line='1229	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	70.00	80.00")>0) {  if ($k1230==0) { $line='1230	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	70.00	80.00")>0) {  if ($k1231==0) { $line='1231	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	70.00	80.00")>0) {  if ($k1232==0) { $line='1232	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	70.00	80.00")>0) {  if ($k1233==0) { $line='1233	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	70.00	80.00")>0) {  if ($k1234==0) { $line='1234	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	70.00	80.00")>0) {  if ($k1235==0) { $line='1235	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	70.00	80.00")>0) {  if ($k1236==0) { $line='1236	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	70.00	80.00")>0) {  if ($k1237==0) { $line='1237	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	70.00	80.00")>0) {  if ($k1238==0) { $line='1238	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	70.00	80.00")>0) {  if ($k1239==0) { $line='1239	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	70.00	80.00")>0) {  if ($k1240==0) { $line='1240	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	70.00	80.00")>0) {  if ($k1241==0) { $line='1241	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	70.00	80.00")>0) {  if ($k1242==0) { $line='1242	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	70.00	80.00")>0) {  if ($k1243==0) { $line='1243	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	80.00")>0) {  if ($k1244==0) { $line='1244	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	100.00	80.00")>0) {  if ($k1245==0) { $line='1245	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	100.00	80.00")>0) {  if ($k1246==0) { $line='1246	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	80.00")>0) {  if ($k1247==0) { $line='1247	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	100.00	80.00")>0) {  if ($k1248==0) { $line='1248	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	100.00	80.00")>0) {  if ($k1249==0) { $line='1249	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	100.00	80.00")>0) {  if ($k1250==0) { $line='1250	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	100.00	80.00")>0) {  if ($k1251==0) { $line='1251	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	100.00	80.00")>0) {  if ($k1252==0) { $line='1252	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	100.00	80.00")>0) {  if ($k1253==0) { $line='1253	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	100.00	80.00")>0) {  if ($k1254==0) { $line='1254	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	100.00	100.00	80.00")>0) {  if ($k1255==0) { $line='1255	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	80.00")>0) {  if ($k1256==0) { $line='1256	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	100.00	80.00")>0) {  if ($k1257==0) { $line='1257	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	70.00	100.00	80.00")>0) {  if ($k1258==0) { $line='1258	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	100.00	80.00")>0) {  if ($k1259==0) { $line='1259	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	100.00")>0) {  if ($k1260==0) { $line='1260	'.$contents[$i];fwrite($fh, $line);$k1260=1;} elseif ($k1260==1) { $line='1347	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	40.00	0.00	100.00")>0) {  if ($k1261==0) { $line='1261	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	0.00	100.00")>0) {  if ($k1262==0) { $line='1262	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	0.00	100.00")>0) {  if ($k1263==0) { $line='1263	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	100.00")>0) {  if ($k1264==0) { $line='1264	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	0.00	100.00")>0) {  if ($k1265==0) { $line='1265	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	0.00	100.00")>0) {  if ($k1266==0) { $line='1266	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	0.00	100.00")>0) {  if ($k1267==0) { $line='1267	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	0.00	100.00")>0) {  if ($k1268==0) { $line='1268	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	100.00")>0) {  if ($k1269==0) { $line='1269	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	100.00")>0) {  if ($k1270==0) { $line='1270	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	40.00	100.00")>0) {  if ($k1271==0) { $line='1271	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	100.00")>0) {  if ($k1272==0) { $line='1272	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	100.00")>0) {  if ($k1273==0) { $line='1273	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	40.00	100.00")>0) {  if ($k1274==0) { $line='1274	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	40.00	100.00")>0) {  if ($k1275==0) { $line='1275	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	40.00	100.00")>0) {  if ($k1276==0) { $line='1276	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	40.00	100.00")>0) {  if ($k1277==0) { $line='1277	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	100.00")>0) {  if ($k1278==0) { $line='1278	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	100.00	100.00")>0) {  if ($k1279==0) { $line='1279	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	100.00")>0) {  if ($k1280==0) { $line='1280	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	100.00	100.00")>0) {  if ($k1281==0) { $line='1281	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	100.00	100.00")>0) {  if ($k1282==0) { $line='1282	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	100.00	100.00	100.00")>0) {  if ($k1283==0) { $line='1283	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	100.00")>0) {  if ($k1284==0) { $line='1284	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	40.00	100.00	100.00")>0) {  if ($k1285==0) { $line='1285	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	100.00	100.00")>0) {  if ($k1286==0) { $line='1286	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	100.00	0.00	0.00	0.00")>0) {  if ($k1287==0) { $line='1287	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	98.00	0.00	0.00	0.00")>0) {  if ($k1288==0) { $line='1288	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	95.00	0.00	0.00	0.00")>0) {  if ($k1289==0) { $line='1289	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	90.00	0.00	0.00	0.00")>0) {  if ($k1290==0) { $line='1290	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	85.00	0.00	0.00	0.00")>0) {  if ($k1291==0) { $line='1291	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	80.00	0.00	0.00	0.00")>0) {  if ($k1292==0) { $line='1292	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	75.00	0.00	0.00	0.00")>0) {  if ($k1293==0) { $line='1293	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	70.00	0.00	0.00	0.00")>0) {  if ($k1294==0) { $line='1294	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	60.00	0.00	0.00	0.00")>0) {  if ($k1295==0) { $line='1295	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	50.00	0.00	0.00	0.00")>0) {  if ($k1296==0) { $line='1296	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	40.00	0.00	0.00	0.00")>0) {  if ($k1297==0) { $line='1297	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	30.00	0.00	0.00	0.00")>0) {  if ($k1298==0) { $line='1298	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	25.00	0.00	0.00	0.00")>0) {  if ($k1299==0) { $line='1299	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	20.00	0.00	0.00	0.00")>0) {  if ($k1300==0) { $line='1300	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	15.00	0.00	0.00	0.00")>0) {  if ($k1301==0) { $line='1301	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	10.00	0.00	0.00	0.00")>0) {  if ($k1302==0) { $line='1302	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	0.00	0.00	0.00")>0) {  if ($k1303==0) { $line='1303	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	5.00	0.00	0.00	0.00")>0) {  if ($k1304==0) { $line='1304	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	0.00	0.00")>0) {  if ($k1305==0) { $line='1305	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	2.00	0.00	0.00	0.00")>0) {  if ($k1306==0) { $line='1306	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	100.00	0.00	0.00")>0) {  if ($k1307==0) { $line='1307	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	98.00	0.00	0.00")>0) {  if ($k1308==0) { $line='1308	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	95.00	0.00	0.00")>0) {  if ($k1309==0) { $line='1309	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	90.00	0.00	0.00")>0) {  if ($k1310==0) { $line='1310	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	85.00	0.00	0.00")>0) {  if ($k1311==0) { $line='1311	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	80.00	0.00	0.00")>0) {  if ($k1312==0) { $line='1312	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	75.00	0.00	0.00")>0) {  if ($k1313==0) { $line='1313	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	70.00	0.00	0.00")>0) {  if ($k1314==0) { $line='1314	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	60.00	0.00	0.00")>0) {  if ($k1315==0) { $line='1315	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	50.00	0.00	0.00")>0) {  if ($k1316==0) { $line='1316	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	40.00	0.00	0.00")>0) {  if ($k1317==0) { $line='1317	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	30.00	0.00	0.00")>0) {  if ($k1318==0) { $line='1318	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	25.00	0.00	0.00")>0) {  if ($k1319==0) { $line='1319	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	20.00	0.00	0.00")>0) {  if ($k1320==0) { $line='1320	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	15.00	0.00	0.00")>0) {  if ($k1321==0) { $line='1321	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	10.00	0.00	0.00")>0) {  if ($k1322==0) { $line='1322	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	7.00	0.00	0.00")>0) {  if ($k1323==0) { $line='1323	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	5.00	0.00	0.00")>0) {  if ($k1324==0) { $line='1324	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	0.00	0.00")>0) {  if ($k1325==0) { $line='1325	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	2.00	0.00	0.00")>0) {  if ($k1326==0) { $line='1326	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	100.00	0.00")>0) {  if ($k1327==0) { $line='1327	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	98.00	0.00")>0) {  if ($k1328==0) { $line='1328	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	95.00	0.00")>0) {  if ($k1329==0) { $line='1329	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	90.00	0.00")>0) {  if ($k1330==0) { $line='1330	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	85.00	0.00")>0) {  if ($k1331==0) { $line='1331	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	80.00	0.00")>0) {  if ($k1332==0) { $line='1332	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	75.00	0.00")>0) {  if ($k1333==0) { $line='1333	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	70.00	0.00")>0) {  if ($k1334==0) { $line='1334	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	60.00	0.00")>0) {  if ($k1335==0) { $line='1335	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	50.00	0.00")>0) {  if ($k1336==0) { $line='1336	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	40.00	0.00")>0) {  if ($k1337==0) { $line='1337	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	30.00	0.00")>0) {  if ($k1338==0) { $line='1338	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	25.00	0.00")>0) {  if ($k1339==0) { $line='1339	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	20.00	0.00")>0) {  if ($k1340==0) { $line='1340	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	15.00	0.00")>0) {  if ($k1341==0) { $line='1341	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	10.00	0.00")>0) {  if ($k1342==0) { $line='1342	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	7.00	0.00")>0) {  if ($k1343==0) { $line='1343	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	5.00	0.00")>0) {  if ($k1344==0) { $line='1344	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	3.00	0.00")>0) {  if ($k1345==0) { $line='1345	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	2.00	0.00")>0) {  if ($k1346==0) { $line='1346	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	0.00	100.00")>0) {  if ($k1347==0) { $line='1347	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	98.00")>0) {  if ($k1348==0) { $line='1348	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	95.00")>0) {  if ($k1349==0) { $line='1349	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	90.00")>0) {  if ($k1350==0) { $line='1350	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	85.00")>0) {  if ($k1351==0) { $line='1351	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	0.00	80.00")>0) {  if ($k1352==0) { $line='1352	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	75.00")>0) {  if ($k1353==0) { $line='1353	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	70.00")>0) {  if ($k1354==0) { $line='1354	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	0.00	60.00")>0) {  if ($k1355==0) { $line='1355	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	50.00")>0) {  if ($k1356==0) { $line='1356	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	0.00	40.00")>0) {  if ($k1357==0) { $line='1357	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	30.00")>0) {  if ($k1358==0) { $line='1358	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	25.00")>0) {  if ($k1359==0) { $line='1359	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	0.00	20.00")>0) {  if ($k1360==0) { $line='1360	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	15.00")>0) {  if ($k1361==0) { $line='1361	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	10.00")>0) {  if ($k1362==0) { $line='1362	'.$contents[$i];fwrite($fh, $line);$k1362=1;} elseif ($k1362==1) { $line='1486	'.$contents[$i]; fwrite($fh, $line); } }
if (strpos($px, "	0.00	0.00	0.00	7.00")>0) {  if ($k1363==0) { $line='1363	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	5.00")>0) {  if ($k1364==0) { $line='1364	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	3.00")>0) {  if ($k1365==0) { $line='1365	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	0.00	2.00")>0) {  if ($k1366==0) { $line='1366	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	0.00	0.00")>0) {  if ($k1367==0) { $line='1367	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	100.00	85.00	85.00	0.00")>0) {  if ($k1368==0) { $line='1368	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	80.00	65.00	65.00	0.00")>0) {  if ($k1369==0) { $line='1369	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	60.00	45.00	45.00	0.00")>0) {  if ($k1370==0) { $line='1370	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	27.00	27.00	0.00")>0) {  if ($k1371==0) { $line='1371	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	12.00	12.00	0.00")>0) {  if ($k1372==0) { $line='1372	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	6.00	6.00	0.00")>0) {  if ($k1373==0) { $line='1373	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	5.00	3.00	3.00	0.00")>0) {  if ($k1374==0) { $line='1374	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	27.00	27.00	10.00")>0) {  if ($k1375==0) { $line='1375	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	12.00	12.00	10.00")>0) {  if ($k1376==0) { $line='1376	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	6.00	6.00	10.00")>0) {  if ($k1377==0) { $line='1377	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	60.00	45.00	45.00	20.00")>0) {  if ($k1378==0) { $line='1378	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	27.00	27.00	20.00")>0) {  if ($k1379==0) { $line='1379	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	12.00	12.00	20.00")>0) {  if ($k1380==0) { $line='1380	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	6.00	6.00	20.00")>0) {  if ($k1381==0) { $line='1381	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	80.00	65.00	65.00	40.00")>0) {  if ($k1382==0) { $line='1382	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	60.00	45.00	45.00	40.00")>0) {  if ($k1383==0) { $line='1383	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	27.00	27.00	40.00")>0) {  if ($k1384==0) { $line='1384	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	12.00	12.00	40.00")>0) {  if ($k1385==0) { $line='1385	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	6.00	6.00	40.00")>0) {  if ($k1386==0) { $line='1386	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	85.00	60.00")>0) {  if ($k1387==0) { $line='1387	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	80.00	65.00	65.00	60.00")>0) {  if ($k1388==0) { $line='1388	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	60.00	45.00	45.00	60.00")>0) {  if ($k1389==0) { $line='1389	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	27.00	27.00	60.00")>0) {  if ($k1390==0) { $line='1390	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	12.00	12.00	60.00")>0) {  if ($k1391==0) { $line='1391	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	6.00	6.00	60.00")>0) {  if ($k1392==0) { $line='1392	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	85.00	80.00")>0) {  if ($k1393==0) { $line='1393	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	80.00	65.00	65.00	80.00")>0) {  if ($k1394==0) { $line='1394	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	60.00	45.00	45.00	80.00")>0) {  if ($k1395==0) { $line='1395	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	27.00	27.00	80.00")>0) {  if ($k1396==0) { $line='1396	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	12.00	12.00	80.00")>0) {  if ($k1397==0) { $line='1397	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	6.00	6.00	80.00")>0) {  if ($k1398==0) { $line='1398	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	85.00	85.00	100.00")>0) {  if ($k1399==0) { $line='1399	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	80.00	65.00	65.00	100.00")>0) {  if ($k1400==0) { $line='1400	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	60.00	45.00	45.00	100.00")>0) {  if ($k1401==0) { $line='1401	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	27.00	27.00	100.00")>0) {  if ($k1402==0) { $line='1402	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	12.00	12.00	100.00")>0) {  if ($k1403==0) { $line='1403	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	6.00	6.00	100.00")>0) {  if ($k1404==0) { $line='1404	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	0.00	70.00")>0) {  if ($k1405==0) { $line='1405	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	0.00	70.00")>0) {  if ($k1406==0) { $line='1406	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	70.00")>0) {  if ($k1407==0) { $line='1407	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	0.00	70.00")>0) {  if ($k1408==0) { $line='1408	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	70.00")>0) {  if ($k1409==0) { $line='1409	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	70.00")>0) {  if ($k1410==0) { $line='1410	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	70.00")>0) {  if ($k1411==0) { $line='1411	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	70.00")>0) {  if ($k1412==0) { $line='1412	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	70.00")>0) {  if ($k1413==0) { $line='1413	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	0.00	0.00")>0) {  if ($k1414==0) { $line='1414	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	3.00	0.00")>0) {  if ($k1415==0) { $line='1415	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	3.00	0.00")>0) {  if ($k1416==0) { $line='1416	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	3.00	0.00")>0) {  if ($k1417==0) { $line='1417	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	0.00	3.00")>0) {  if ($k1418==0) { $line='1418	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	0.00	3.00")>0) {  if ($k1419==0) { $line='1419	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	0.00	3.00")>0) {  if ($k1420==0) { $line='1420	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	3.00	3.00")>0) {  if ($k1421==0) { $line='1421	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	3.00	3.00")>0) {  if ($k1422==0) { $line='1422	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	3.00	3.00")>0) {  if ($k1423==0) { $line='1423	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	3.00	3.00")>0) {  if ($k1424==0) { $line='1424	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	7.00	0.00	0.00")>0) {  if ($k1425==0) { $line='1425	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	0.00	7.00	0.00")>0) {  if ($k1426==0) { $line='1426	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	7.00	7.00	0.00")>0) {  if ($k1427==0) { $line='1427	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	7.00	7.00	0.00")>0) {  if ($k1428==0) { $line='1428	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	0.00	0.00	7.00")>0) {  if ($k1429==0) { $line='1429	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	7.00	0.00	7.00")>0) {  if ($k1430==0) { $line='1430	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	7.00	0.00	7.00")>0) {  if ($k1431==0) { $line='1431	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	7.00	7.00")>0) {  if ($k1432==0) { $line='1432	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	0.00	7.00	7.00")>0) {  if ($k1433==0) { $line='1433	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	7.00	7.00	7.00")>0) {  if ($k1434==0) { $line='1434	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	7.00	7.00	7.00	7.00")>0) {  if ($k1435==0) { $line='1435	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	0.00	0.00")>0) {  if ($k1436==0) { $line='1436	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	0.00	0.00")>0) {  if ($k1437==0) { $line='1437	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	3.00	0.00")>0) {  if ($k1438==0) { $line='1438	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	3.00	0.00")>0) {  if ($k1439==0) { $line='1439	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	3.00	0.00")>0) {  if ($k1440==0) { $line='1440	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	3.00	0.00")>0) {  if ($k1441==0) { $line='1441	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	3.00	0.00")>0) {  if ($k1442==0) { $line='1442	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	40.00	0.00")>0) {  if ($k1443==0) { $line='1443	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	40.00	0.00")>0) {  if ($k1444==0) { $line='1444	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	40.00	0.00")>0) {  if ($k1445==0) { $line='1445	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	40.00	0.00")>0) {  if ($k1446==0) { $line='1446	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	40.00	0.00")>0) {  if ($k1447==0) { $line='1447	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	0.00	3.00")>0) {  if ($k1448==0) { $line='1448	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	0.00	3.00")>0) {  if ($k1449==0) { $line='1449	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	0.00	3.00")>0) {  if ($k1450==0) { $line='1450	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	0.00	3.00")>0) {  if ($k1451==0) { $line='1451	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	3.00")>0) {  if ($k1452==0) { $line='1452	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	3.00	3.00")>0) {  if ($k1453==0) { $line='1453	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	3.00	3.00")>0) {  if ($k1454==0) { $line='1454	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	3.00	3.00")>0) {  if ($k1455==0) { $line='1455	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	3.00	3.00")>0) {  if ($k1456==0) { $line='1456	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	3.00	3.00")>0) {  if ($k1457==0) { $line='1457	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	3.00")>0) {  if ($k1458==0) { $line='1458	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	40.00	3.00")>0) {  if ($k1459==0) { $line='1459	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	3.00")>0) {  if ($k1460==0) { $line='1460	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	40.00	3.00")>0) {  if ($k1461==0) { $line='1461	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	40.00	3.00")>0) {  if ($k1462==0) { $line='1462	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	40.00	3.00")>0) {  if ($k1463==0) { $line='1463	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	3.00")>0) {  if ($k1464==0) { $line='1464	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	40.00	3.00")>0) {  if ($k1465==0) { $line='1465	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	3.00")>0) {  if ($k1466==0) { $line='1466	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	0.00	40.00")>0) {  if ($k1467==0) { $line='1467	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	0.00	40.00")>0) {  if ($k1468==0) { $line='1468	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	0.00	40.00")>0) {  if ($k1469==0) { $line='1469	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	0.00	40.00")>0) {  if ($k1470==0) { $line='1470	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	0.00	40.00")>0) {  if ($k1471==0) { $line='1471	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	3.00	40.00")>0) {  if ($k1472==0) { $line='1472	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	3.00	40.00")>0) {  if ($k1473==0) { $line='1473	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	3.00	40.00")>0) {  if ($k1474==0) { $line='1474	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	3.00	40.00")>0) {  if ($k1475==0) { $line='1475	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	3.00	40.00")>0) {  if ($k1476==0) { $line='1476	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	3.00	40.00")>0) {  if ($k1477==0) { $line='1477	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	3.00	40.00")>0) {  if ($k1478==0) { $line='1478	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	3.00	40.00")>0) {  if ($k1479==0) { $line='1479	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	3.00	40.00")>0) {  if ($k1480==0) { $line='1480	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	0.00	40.00	40.00")>0) {  if ($k1481==0) { $line='1481	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	3.00	40.00	40.00")>0) {  if ($k1482==0) { $line='1482	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	3.00	40.00	40.00")>0) {  if ($k1483==0) { $line='1483	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	3.00	40.00	40.00")>0) {  if ($k1484==0) { $line='1484	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	3.00	40.00	40.00	40.00")>0) {  if ($k1485==0) { $line='1485	'.$contents[$i];fwrite($fh, $line);}}
//if (strpos($px, "	0.00	0.00	0.00	10.00")>0) { echo "find1486: ".($i-20)."<br>"; if ($k1486==0) { $line='1486	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	10.00	10.00")>0) {  if ($k1487==0) { $line='1487	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	20.00	10.00")>0) {  if ($k1488==0) { $line='1488	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	40.00	10.00")>0) {  if ($k1489==0) { $line='1489	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	70.00	10.00")>0) {  if ($k1490==0) { $line='1490	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	0.00	10.00")>0) {  if ($k1491==0) { $line='1491	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	10.00	10.00")>0) {  if ($k1492==0) { $line='1492	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	20.00	10.00")>0) {  if ($k1493==0) { $line='1493	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	40.00	10.00")>0) {  if ($k1494==0) { $line='1494	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	10.00	70.00	10.00")>0) {  if ($k1495==0) { $line='1495	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	0.00	10.00")>0) {  if ($k1496==0) { $line='1496	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	10.00	10.00")>0) {  if ($k1497==0) { $line='1497	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	20.00	10.00")>0) {  if ($k1498==0) { $line='1498	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	40.00	10.00")>0) {  if ($k1499==0) { $line='1499	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	20.00	70.00	10.00")>0) {  if ($k1500==0) { $line='1500	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	0.00	10.00")>0) {  if ($k1501==0) { $line='1501	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	10.00	10.00")>0) {  if ($k1502==0) { $line='1502	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	20.00	10.00")>0) {  if ($k1503==0) { $line='1503	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	40.00	10.00")>0) {  if ($k1504==0) { $line='1504	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	40.00	70.00	10.00")>0) {  if ($k1505==0) { $line='1505	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	0.00	10.00")>0) {  if ($k1506==0) { $line='1506	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	10.00	10.00")>0) {  if ($k1507==0) { $line='1507	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	20.00	10.00")>0) {  if ($k1508==0) { $line='1508	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	40.00	10.00")>0) {  if ($k1509==0) { $line='1509	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	70.00	70.00	10.00")>0) {  if ($k1510==0) { $line='1510	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	0.00	10.00")>0) {  if ($k1511==0) { $line='1511	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	10.00	10.00")>0) {  if ($k1512==0) { $line='1512	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	20.00	10.00")>0) {  if ($k1513==0) { $line='1513	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	40.00	10.00")>0) {  if ($k1514==0) { $line='1514	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	0.00	70.00	10.00")>0) {  if ($k1515==0) { $line='1515	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	0.00	10.00")>0) {  if ($k1516==0) { $line='1516	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	10.00	10.00")>0) {  if ($k1517==0) { $line='1517	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	20.00	10.00")>0) {  if ($k1518==0) { $line='1518	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	40.00	10.00")>0) {  if ($k1519==0) { $line='1519	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	10.00	70.00	10.00")>0) {  if ($k1520==0) { $line='1520	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	0.00	10.00")>0) {  if ($k1521==0) { $line='1521	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	10.00	10.00")>0) {  if ($k1522==0) { $line='1522	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	20.00	10.00")>0) {  if ($k1523==0) { $line='1523	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	40.00	10.00")>0) {  if ($k1524==0) { $line='1524	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	20.00	70.00	10.00")>0) {  if ($k1525==0) { $line='1525	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	0.00	10.00")>0) {  if ($k1526==0) { $line='1526	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	10.00	10.00")>0) {  if ($k1527==0) { $line='1527	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	20.00	10.00")>0) {  if ($k1528==0) { $line='1528	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	40.00	10.00")>0) {  if ($k1529==0) { $line='1529	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	40.00	70.00	10.00")>0) {  if ($k1530==0) { $line='1530	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	0.00	10.00")>0) {  if ($k1531==0) { $line='1531	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	10.00	10.00")>0) {  if ($k1532==0) { $line='1532	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	20.00	10.00")>0) {  if ($k1533==0) { $line='1533	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	40.00	10.00")>0) {  if ($k1534==0) { $line='1534	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	10.00	70.00	70.00	10.00")>0) {  if ($k1535==0) { $line='1535	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	0.00	10.00")>0) {  if ($k1536==0) { $line='1536	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	10.00	10.00")>0) {  if ($k1537==0) { $line='1537	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	20.00	10.00")>0) {  if ($k1538==0) { $line='1538	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	40.00	10.00")>0) {  if ($k1539==0) { $line='1539	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	0.00	70.00	10.00")>0) {  if ($k1540==0) { $line='1540	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	0.00	10.00")>0) {  if ($k1541==0) { $line='1541	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	10.00	10.00")>0) {  if ($k1542==0) { $line='1542	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	20.00	10.00")>0) {  if ($k1543==0) { $line='1543	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	40.00	10.00")>0) {  if ($k1544==0) { $line='1544	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	10.00	70.00	10.00")>0) {  if ($k1545==0) { $line='1545	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	0.00	10.00")>0) {  if ($k1546==0) { $line='1546	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	10.00	10.00")>0) {  if ($k1547==0) { $line='1547	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	20.00	10.00")>0) {  if ($k1548==0) { $line='1548	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	40.00	10.00")>0) {  if ($k1549==0) { $line='1549	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	20.00	70.00	10.00")>0) {  if ($k1550==0) { $line='1550	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	0.00	10.00")>0) {  if ($k1551==0) { $line='1551	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	10.00	10.00")>0) {  if ($k1552==0) { $line='1552	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	20.00	10.00")>0) {  if ($k1553==0) { $line='1553	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	40.00	10.00")>0) {  if ($k1554==0) { $line='1554	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	40.00	70.00	10.00")>0) {  if ($k1555==0) { $line='1555	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	0.00	10.00")>0) {  if ($k1556==0) { $line='1556	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	10.00	10.00")>0) {  if ($k1557==0) { $line='1557	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	20.00	10.00")>0) {  if ($k1558==0) { $line='1558	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	40.00	10.00")>0) {  if ($k1559==0) { $line='1559	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	20.00	70.00	70.00	10.00")>0) {  if ($k1560==0) { $line='1560	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	0.00	10.00")>0) {  if ($k1561==0) { $line='1561	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	10.00	10.00")>0) {  if ($k1562==0) { $line='1562	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	20.00	10.00")>0) {  if ($k1563==0) { $line='1563	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	40.00	10.00")>0) {  if ($k1564==0) { $line='1564	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	0.00	70.00	10.00")>0) {  if ($k1565==0) { $line='1565	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	0.00	10.00")>0) {  if ($k1566==0) { $line='1566	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	10.00	10.00")>0) {  if ($k1567==0) { $line='1567	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	20.00	10.00")>0) {  if ($k1568==0) { $line='1568	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	40.00	10.00")>0) {  if ($k1569==0) { $line='1569	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	10.00	70.00	10.00")>0) {  if ($k1570==0) { $line='1570	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	0.00	10.00")>0) {  if ($k1571==0) { $line='1571	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	10.00	10.00")>0) {  if ($k1572==0) { $line='1572	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	20.00	10.00")>0) {  if ($k1573==0) { $line='1573	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	40.00	10.00")>0) {  if ($k1574==0) { $line='1574	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	20.00	70.00	10.00")>0) {  if ($k1575==0) { $line='1575	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	0.00	10.00")>0) {  if ($k1576==0) { $line='1576	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	10.00	10.00")>0) {  if ($k1577==0) { $line='1577	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	20.00	10.00")>0) {  if ($k1578==0) { $line='1578	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	40.00	10.00")>0) {  if ($k1579==0) { $line='1579	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	40.00	70.00	10.00")>0) {  if ($k1580==0) { $line='1580	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	0.00	10.00")>0) {  if ($k1581==0) { $line='1581	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	10.00	10.00")>0) {  if ($k1582==0) { $line='1582	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	20.00	10.00")>0) {  if ($k1583==0) { $line='1583	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	40.00	10.00")>0) {  if ($k1584==0) { $line='1584	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	40.00	70.00	70.00	10.00")>0) {  if ($k1585==0) { $line='1585	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	0.00	10.00")>0) {  if ($k1586==0) { $line='1586	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	10.00	10.00")>0) {  if ($k1587==0) { $line='1587	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	20.00	10.00")>0) {  if ($k1588==0) { $line='1588	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	40.00	10.00")>0) {  if ($k1589==0) { $line='1589	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	0.00	70.00	10.00")>0) {  if ($k1590==0) { $line='1590	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	0.00	10.00")>0) {  if ($k1591==0) { $line='1591	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	10.00	10.00")>0) {  if ($k1592==0) { $line='1592	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	20.00	10.00")>0) {  if ($k1593==0) { $line='1593	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	40.00	10.00")>0) {  if ($k1594==0) { $line='1594	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	10.00	70.00	10.00")>0) {  if ($k1595==0) { $line='1595	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	0.00	10.00")>0) {  if ($k1596==0) { $line='1596	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	10.00	10.00")>0) {  if ($k1597==0) { $line='1597	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	20.00	10.00")>0) {  if ($k1598==0) { $line='1598	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	40.00	10.00")>0) {  if ($k1599==0) { $line='1599	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	20.00	70.00	10.00")>0) {  if ($k1600==0) { $line='1600	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	0.00	10.00")>0) {  if ($k1601==0) { $line='1601	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	10.00	10.00")>0) {  if ($k1602==0) { $line='1602	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	20.00	10.00")>0) {  if ($k1603==0) { $line='1603	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	40.00	10.00")>0) {  if ($k1604==0) { $line='1604	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	40.00	70.00	10.00")>0) {  if ($k1605==0) { $line='1605	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	0.00	10.00")>0) {  if ($k1606==0) { $line='1606	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	10.00	10.00")>0) {  if ($k1607==0) { $line='1607	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	20.00	10.00")>0) {  if ($k1608==0) { $line='1608	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	40.00	10.00")>0) {  if ($k1609==0) { $line='1609	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	70.00	70.00	70.00	10.00")>0) {  if ($k1610==0) { $line='1610	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	50.00	40.00	40.00	0.00")>0) {  if ($k1611==0) { $line='1611	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	0.00	10.00")>0) {  if ($k1612==0) { $line='1612	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	0.00	10.00")>0) {  if ($k1613==0) { $line='1613	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	0.00	100.00	10.00")>0) {  if ($k1614==0) { $line='1614	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	0.00	100.00	100.00	10.00")>0) {  if ($k1615==0) { $line='1615	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	0.00	100.00	10.00")>0) {  if ($k1616==0) { $line='1616	'.$contents[$i];fwrite($fh, $line);}}
if (strpos($px, "	100.00	100.00	0.00	10.00")>0) {  if ($k1617==0) { $line='1617	'.$contents[$i];fwrite($fh, $line);}}

}

fclose($fh);



	  $contentstm = file("tempSet.txt");
	   $stringC = implode($contentstm);	
	   //echo $string."<br>";
	 //$cols=get_betweenC($stringC,"NUMBER_OF_FIELDS",'BEGIN_DATA_FORMAT');
	 $cols=46;
	 // $cols=40;
echo "cols:".$cols."_zz<br>";
	  



natsort($contentstm);
//print_r(array_values($contentstm));



		
 $string = implode($contentstm);	
//echo $string;
 
$p = ereg_replace("\r\n?", "\n", $string);
$p = str_replace("\n", ',', $p);
$p = ereg_replace("\r\n?", "\n", $p);
$p = str_replace(",", '	', $p);
//echo $p;



//$datastring=get_between($p,"BEGIN_DATA","END_DATA");

$dot = explode("\t", $p);
//print_r(array_values($dot));

$Pdot=0;
$PL=$dot[7+$cols*$Pdot];
$Pa=$dot[7+$cols*$Pdot+1];
$Pb=$dot[7+$cols*$Pdot+2];


$Pdot=8;
$mml=$dot[7+$cols*$Pdot+$Pdot];
$mma=$dot[7+$cols*$Pdot+1+$Pdot];
$mmb=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1306;
$mml2=$dot[7+$cols*$Pdot+$Pdot];
$mma2=$dot[7+$cols*$Pdot+1+$Pdot];
$mmb2=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=72;
$mcl=$dot[7+$cols*$Pdot+$Pdot];
$mca=$dot[7+$cols*$Pdot+1+$Pdot];
$mcb=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1286;
$mcl2=$dot[7+$cols*$Pdot+$Pdot];
$mca2=$dot[7+$cols*$Pdot+1+$Pdot];
$mcb2=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=648;
$myl=$dot[7+$cols*$Pdot+$Pdot];
$mya=$dot[7+$cols*$Pdot+1+$Pdot];
$myb=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1326;
$myl2=$dot[7+$cols*$Pdot+$Pdot];
$mya2=$dot[7+$cols*$Pdot+1+$Pdot];
$myb2=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1259;
$mkl=$dot[7+$cols*$Pdot+$Pdot];
$mka=$dot[7+$cols*$Pdot+1+$Pdot];
$mkb=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1346;
$mkl2=$dot[7+$cols*$Pdot+$Pdot];
$mka2=$dot[7+$cols*$Pdot+1+$Pdot];
$mkb2=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1295;
$mc50l=$dot[7+$cols*$Pdot+$Pdot];
$mc50a=$dot[7+$cols*$Pdot+1+$Pdot];
$mc50b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1315;
$mm50l=$dot[7+$cols*$Pdot+$Pdot];
$mm50a=$dot[7+$cols*$Pdot+1+$Pdot];
$mm50b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1335;
$my50l=$dot[7+$cols*$Pdot+$Pdot];
$my50a=$dot[7+$cols*$Pdot+1+$Pdot];
$my50b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1355;
$mk50l=$dot[7+$cols*$Pdot+$Pdot];
$mk50a=$dot[7+$cols*$Pdot+1+$Pdot];
$mk50b=$dot[7+$cols*$Pdot+2+$Pdot];


$Pdot=1610;
$mcmyl=$dot[7+$cols*$Pdot+$Pdot];
$mcmya=$dot[7+$cols*$Pdot+1+$Pdot];
$mcmyb=$dot[7+$cols*$Pdot+2+$Pdot];


$Pdot=0;
$p1l=$dot[7+$cols*$Pdot+$Pdot];
$p1a=$dot[7+$cols*$Pdot+1+$Pdot];
$p1b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1366;
$pp1l=$dot[7+$cols*$Pdot+$Pdot];
$pp1a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp1b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=81;
$p2l=$dot[7+$cols*$Pdot+$Pdot];
$p2a=$dot[7+$cols*$Pdot+1+$Pdot];
$p2b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1341;
$pp2l=$dot[7+$cols*$Pdot+$Pdot];
$pp2a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp2b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=162;
$p3l=$dot[7+$cols*$Pdot+$Pdot];
$p3a=$dot[7+$cols*$Pdot+1+$Pdot];
$p3b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1339;
$pp3l=$dot[7+$cols*$Pdot+$Pdot];
$pp3a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp3b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=243;
$p4l=$dot[7+$cols*$Pdot+$Pdot];
$p4a=$dot[7+$cols*$Pdot+1+$Pdot];
$p4b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1337;
$pp4l=$dot[7+$cols*$Pdot+$Pdot];
$pp4a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp4b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=324;
$p5l=$dot[7+$cols*$Pdot+$Pdot];
$p5a=$dot[7+$cols*$Pdot+1+$Pdot];
$p5b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1336;
$pp5l=$dot[7+$cols*$Pdot+$Pdot];
$pp5a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp5b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=486;
$p6l=$dot[7+$cols*$Pdot+$Pdot];
$p6a=$dot[7+$cols*$Pdot+1+$Pdot];
$p6b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1333;
$pp6l=$dot[7+$cols*$Pdot+$Pdot];
$pp6a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp6b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=567;
$p7l=$dot[7+$cols*$Pdot+$Pdot];
$p7a=$dot[7+$cols*$Pdot+1+$Pdot];
$p7b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1330;
$pp7l=$dot[7+$cols*$Pdot+$Pdot];
$pp7a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp7b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=648;
$p8l=$dot[7+$cols*$Pdot+$Pdot];
$p8a=$dot[7+$cols*$Pdot+1+$Pdot];
$p8b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1326;
$pp8l=$dot[7+$cols*$Pdot+$Pdot];
$pp8a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp8b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1;
$p9l=$dot[7+$cols*$Pdot+$Pdot];
$p9a=$dot[7+$cols*$Pdot+1+$Pdot];
$p9b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1321;
$pp9l=$dot[7+$cols*$Pdot+$Pdot];
$pp9a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp9b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=2;
$p10l=$dot[7+$cols*$Pdot+$Pdot];
$p10a=$dot[7+$cols*$Pdot+1+$Pdot];
$p10b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1319;
$pp10l=$dot[7+$cols*$Pdot+$Pdot];
$pp10a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp10b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=3;
$p11l=$dot[7+$cols*$Pdot+$Pdot];
$p11a=$dot[7+$cols*$Pdot+1+$Pdot];
$p11b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1317;
$pp11l=$dot[7+$cols*$Pdot+$Pdot];
$pp11a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp11b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=4;
$p12l=$dot[7+$cols*$Pdot+$Pdot];
$p12a=$dot[7+$cols*$Pdot+1+$Pdot];
$p12b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1316;
$pp12l=$dot[7+$cols*$Pdot+$Pdot];
$pp12a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp12b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=6;
$p13l=$dot[7+$cols*$Pdot+$Pdot];
$p13a=$dot[7+$cols*$Pdot+1+$Pdot];
$p13b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1313;
$pp13l=$dot[7+$cols*$Pdot+$Pdot];
$pp13a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp13b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=7;
$p14l=$dot[7+$cols*$Pdot+$Pdot];
$p14a=$dot[7+$cols*$Pdot+1+$Pdot];
$p14b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1310;
$pp14l=$dot[7+$cols*$Pdot+$Pdot];
$pp14a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp14b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=8;
$p15l=$dot[7+$cols*$Pdot+$Pdot];
$p15a=$dot[7+$cols*$Pdot+1+$Pdot];
$p15b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1306;
$pp15l=$dot[7+$cols*$Pdot+$Pdot];
$pp15a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp15b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=9;
$p16l=$dot[7+$cols*$Pdot+$Pdot];
$p16a=$dot[7+$cols*$Pdot+1+$Pdot];
$p16b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1301;
$pp16l=$dot[7+$cols*$Pdot+$Pdot];
$pp16a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp16b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=18;
$p17l=$dot[7+$cols*$Pdot+$Pdot];
$p17a=$dot[7+$cols*$Pdot+1+$Pdot];
$p17b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1299;
$pp17l=$dot[7+$cols*$Pdot+$Pdot];
$pp17a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp17b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=27;
$p18l=$dot[7+$cols*$Pdot+$Pdot];
$p18a=$dot[7+$cols*$Pdot+1+$Pdot];
$p18b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1297;
$pp18l=$dot[7+$cols*$Pdot+$Pdot];
$pp18a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp18b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=36;
$p19l=$dot[7+$cols*$Pdot+$Pdot];
$p19a=$dot[7+$cols*$Pdot+1+$Pdot];
$p19b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1296;
$pp19l=$dot[7+$cols*$Pdot+$Pdot];
$pp19a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp19b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=54;
$p20l=$dot[7+$cols*$Pdot+$Pdot];
$p20a=$dot[7+$cols*$Pdot+1+$Pdot];
$p20b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1293;
$pp20l=$dot[7+$cols*$Pdot+$Pdot];
$pp20a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp20b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=63;
$p21l=$dot[7+$cols*$Pdot+$Pdot];
$p21a=$dot[7+$cols*$Pdot+1+$Pdot];
$p21b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1290;
$pp21l=$dot[7+$cols*$Pdot+$Pdot];
$pp21a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp21b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=72;
$p22l=$dot[7+$cols*$Pdot+$Pdot];
$p22a=$dot[7+$cols*$Pdot+1+$Pdot];
$p22b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1286;
$pp22l=$dot[7+$cols*$Pdot+$Pdot];
$pp22a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp22b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=646;
$p23l=$dot[7+$cols*$Pdot+$Pdot];
$p23a=$dot[7+$cols*$Pdot+1+$Pdot];
$p23b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1367;
$pp23l=$dot[7+$cols*$Pdot+$Pdot];
$pp23a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp23b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1361;
$p24l=$dot[7+$cols*$Pdot+$Pdot];
$p24a=$dot[7+$cols*$Pdot+1+$Pdot];
$p24b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1485;
$pp24l=$dot[7+$cols*$Pdot+$Pdot];
$pp24a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp24b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=729;
$p25l=$dot[7+$cols*$Pdot+$Pdot];
$p25a=$dot[7+$cols*$Pdot+1+$Pdot];
$p25b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1359;
$pp25l=$dot[7+$cols*$Pdot+$Pdot];
$pp25a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp25b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=945;
$p26l=$dot[7+$cols*$Pdot+$Pdot];
$p26a=$dot[7+$cols*$Pdot+1+$Pdot];
$p26b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1356;
$pp26l=$dot[7+$cols*$Pdot+$Pdot];
$pp26a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp26b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1070;
$p27l=$dot[7+$cols*$Pdot+$Pdot];
$p27a=$dot[7+$cols*$Pdot+1+$Pdot];
$p27b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1354;
$pp27l=$dot[7+$cols*$Pdot+$Pdot];
$pp27a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp27b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1195;
$p28l=$dot[7+$cols*$Pdot+$Pdot];
$p28a=$dot[7+$cols*$Pdot+1+$Pdot];
$p28b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1351;
$pp28l=$dot[7+$cols*$Pdot+$Pdot];
$pp28a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp28b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1259;
$p29l=$dot[7+$cols*$Pdot+$Pdot];
$p29a=$dot[7+$cols*$Pdot+1+$Pdot];
$p29b=$dot[7+$cols*$Pdot+2+$Pdot];

$Pdot=1346;
$pp29l=$dot[7+$cols*$Pdot+$Pdot];
$pp29a=$dot[7+$cols*$Pdot+1+$Pdot];
$pp29b=$dot[7+$cols*$Pdot+2+$Pdot];

echo "CRPC6 paper: L:95,  a:1,  b:-4<br />";
echo "paper measured: L:".$PL.",  a:".$Pa.",  b:".$Pb.  "<br />";


include 'lab2xyz.php';

include 'SCCA06.php';

include 'xyz2lab.php';


$RPCCl=56;$RPCCa=-37;$RPCCb=-50;
$RPCMl=48;$RPCMa=75;$RPCMb=-4;
$RPCYl=89;$RPCYa=-4;$RPCYb=93;
$RPCKl=16;$RPCKa=0.01;$RPCKb=0.01;

$RPCC50l=75.14;$RPCC50a=-16.63;$RPCC50b=-27.88;
$RPCM50l=70.07;$RPCM50a=35.98;$RPCM50b=-7.49;
$RPCY50l=91.49;$RPCY50a=-2.75;$RPCY50b=41.34;
$RPCK50l=60.4;$RPCK50a=0.46;$RPCK50b=-2.59;

$RPCcmyl=57.46;$RPCcmya=0.38;$RPCcmyb=-2.03;


$Xp=lab2xyz("x",$PL,$Pa,$Pb);
$Yp=lab2xyz("y",$PL,$Pa,$Pb);
$Zp=lab2xyz("z",$PL,$Pa,$Pb);
//////////////////////////////////////////////////////////////
$RPCcmyX=lab2xyz("x",$RPCcmyl,$RPCcmya,$RPCcmyb);
$RPCcmyY=lab2xyz("y",$RPCcmyl,$RPCcmya,$RPCcmyb);
$RPCcmyZ=lab2xyz("z",$RPCcmyl,$RPCcmya,$RPCcmyb);

$sccmyX=SCCA06("x",$RPCcmyX,$Xp);
$sccmyY=SCCA06("y",$RPCcmyY,$Yp);
$sccmyZ=SCCA06("z",$RPCcmyZ,$Zp);

$sccmyL=xyz2lab("l",$sccmyX,$sccmyY,$sccmyZ);
$sccmya=xyz2lab("a",$sccmyX,$sccmyY,$sccmyZ);
$sccmyb=xyz2lab("b",$sccmyX,$sccmyY,$sccmyZ);


//////////////////////////////////////////////////////////////
$RPCCX=lab2xyz("x",$RPCCl,$RPCCa,$RPCCb);
$RPCCY=lab2xyz("y",$RPCCl,$RPCCa,$RPCCb);
$RPCCZ=lab2xyz("z",$RPCCl,$RPCCa,$RPCCb);

$RPCC50X=lab2xyz("x",$RPCC50l,$RPCC50a,$RPCC50b);
$RPCC50Y=lab2xyz("y",$RPCC50l,$RPCC50a,$RPCC50b);
$RPCC50Z=lab2xyz("z",$RPCC50l,$RPCC50a,$RPCC50b);


$scCX=SCCA06("x",$RPCCX,$Xp);
$scCY=SCCA06("y",$RPCCY,$Yp);
$scCZ=SCCA06("z",$RPCCZ,$Zp);

$scC50X=SCCA06("x",$RPCC50X,$Xp);
$scC50Y=SCCA06("y",$RPCC50Y,$Yp);
$scC50Z=SCCA06("z",$RPCC50Z,$Zp);

$scCL=xyz2lab("l",$scCX,$scCY,$scCZ);
$scCa=xyz2lab("a",$scCX,$scCY,$scCZ);
$scCb=xyz2lab("b",$scCX,$scCY,$scCZ);

$scC50L=xyz2lab("l",$scC50X,$scC50Y,$scC50Z);
$scC50a=xyz2lab("a",$scC50X,$scC50Y,$scC50Z);
$scC50b=xyz2lab("b",$scC50X,$scC50Y,$scC50Z);
/////////////////////////////////////////////////////////////
$RPCMX=lab2xyz("x",$RPCMl,$RPCMa,$RPCMb);
$RPCMY=lab2xyz("y",$RPCMl,$RPCMa,$RPCMb);
$RPCMZ=lab2xyz("z",$RPCMl,$RPCMa,$RPCMb);

$RPCM50X=lab2xyz("x",$RPCM50l,$RPCM50a,$RPCM50b);
$RPCM50Y=lab2xyz("y",$RPCM50l,$RPCM50a,$RPCM50b);
$RPCM50Z=lab2xyz("z",$RPCM50l,$RPCM50a,$RPCM50b);

$scMX=SCCA06("x",$RPCMX,$Xp);
$scMY=SCCA06("y",$RPCMY,$Yp);
$scMZ=SCCA06("z",$RPCMZ,$Zp);

$scM50X=SCCA06("x",$RPCM50X,$Xp);
$scM50Y=SCCA06("y",$RPCM50Y,$Yp);
$scM50Z=SCCA06("z",$RPCM50Z,$Zp);

$scML=xyz2lab("l",$scMX,$scMY,$scMZ);
$scMa=xyz2lab("a",$scMX,$scMY,$scMZ);
$scMb=xyz2lab("b",$scMX,$scMY,$scMZ);

$scM50L=xyz2lab("l",$scM50X,$scM50Y,$scM50Z);
$scM50a=xyz2lab("a",$scM50X,$scM50Y,$scM50Z);
$scM50b=xyz2lab("b",$scM50X,$scM50Y,$scM50Z);
////////////////////////////////////////////////////////////////
$RPCYX=lab2xyz("x",$RPCYl,$RPCYa,$RPCYb);
$RPCYY=lab2xyz("y",$RPCYl,$RPCYa,$RPCYb);
$RPCYZ=lab2xyz("z",$RPCYl,$RPCYa,$RPCYb);

$RPCY50X=lab2xyz("x",$RPCY50l,$RPCY50a,$RPCY50b);
$RPCY50Y=lab2xyz("y",$RPCY50l,$RPCY50a,$RPCY50b);
$RPCY50Z=lab2xyz("z",$RPCY50l,$RPCY50a,$RPCY50b);

$scYX=SCCA06("x",$RPCYX,$Xp);
$scYY=SCCA06("y",$RPCYY,$Yp);
$scYZ=SCCA06("z",$RPCYZ,$Zp);

$scY50X=SCCA06("x",$RPCY50X,$Xp);
$scY50Y=SCCA06("y",$RPCY50Y,$Yp);
$scY50Z=SCCA06("z",$RPCY50Z,$Zp);

$scYL=xyz2lab("l",$scYX,$scYY,$scYZ);
$scYa=xyz2lab("a",$scYX,$scYY,$scYZ);
$scYb=xyz2lab("b",$scYX,$scYY,$scYZ);

$scY50L=xyz2lab("l",$scY50X,$scY50Y,$scY50Z);
$scY50a=xyz2lab("a",$scY50X,$scY50Y,$scY50Z);
$scY50b=xyz2lab("b",$scY50X,$scY50Y,$scY50Z);
////////////////////////////////////////////////////////////////////
$RPCKX=lab2xyz("x",$RPCKl,$RPCKa,$RPCKb);
$RPCKY=lab2xyz("y",$RPCKl,$RPCKa,$RPCKb);
$RPCKZ=lab2xyz("z",$RPCKl,$RPCKa,$RPCKb);

$RPCK50X=lab2xyz("x",$RPCK50l,$RPCK50a,$RPCK50b);
$RPCK50Y=lab2xyz("y",$RPCK50l,$RPCK50a,$RPCK50b);
$RPCK50Z=lab2xyz("z",$RPCK50l,$RPCK50a,$RPCK50b);

$scKX=SCCA06("x",$RPCKX,$Xp);
$scKY=SCCA06("y",$RPCKY,$Yp);
$scKZ=SCCA06("z",$RPCKZ,$Zp);

$scK50X=SCCA06("x",$RPCK50X,$Xp);
$scK50Y=SCCA06("y",$RPCK50Y,$Yp);
$scK50Z=SCCA06("z",$RPCK50Z,$Zp);

$scKL=xyz2lab("l",$scKX,$scKY,$scKZ);
$scKa=xyz2lab("a",$scKX,$scKY,$scKZ);
$scKb=xyz2lab("b",$scKX,$scKY,$scKZ);

$scK50L=xyz2lab("l",$scK50X,$scK50Y,$scK50Z);
$scK50a=xyz2lab("a",$scK50X,$scK50Y,$scK50Z);
$scK50b=xyz2lab("b",$scK50X,$scK50Y,$scK50Z);
///////////////////////////////////////////////////the whole SCCA
$contents6 = file("CRPC6.txt");
		$string6= implode($contents6);
		//echo $contents[20]; 
		//echo $string; 
$p6 = ereg_replace("\r\n?", "\n", $string6);
$p6 = str_replace("\n", '	', $p6);
//echo $p;


$datastring6=get_between($p6,"BEGIN_DATA","END_DATA");
//echo $datastring;
$dot6 = explode("	", $datastring6);

for ( $i = 0; $i <= 1615; $i+= 1) {

$line=$i+2 ."	";
//fwrite($fh, $line);
  // echo $dot[0]."x_";
	  $DataC =  $dot6[$line*8+1]."	";
	  $DataM =  $dot6[$line*8+2]."	";
	  $DataY =  $dot6[$line*8+3]."	";
	  $DataK =  $dot6[$line*8+4]."	";
	  $DataL =  $dot6[$line*8+5]."	";
	  $Dataa =  $dot6[$line*8+6]."	";
	  $Datab =  $dot6[$line*8+7]."	";
	  
	  $X=lab2xyz("x",$DataL,$Dataa,$Datab);
	  $Y=lab2xyz("y",$DataL,$Dataa,$Datab);
	  $Z=lab2xyz("z",$DataL,$Dataa,$Datab);
	  
	  $scX=SCCA06("x",$X,$Xp);
	  $scY=SCCA06("y",$Y,$Yp);
	  $scZ=SCCA06("z",$Z,$Zp);

	  $scL=round(xyz2lab("l",$scX,$scY,$scZ),2)."	";
	  $sca=round(xyz2lab("a",$scX,$scY,$scZ),2)."	";
	  $scb=round(xyz2lab("b",$scX,$scY,$scZ),2);
	  ${'sc'.($i+2).'l'}=$scL;
	  ${'sc'.($i+2).'a'}=$sca;
	  ${'sc'.($i+2).'b'}=$scb;
	  }
	  
	for ( $i = 1; $i <= 1617; $i+= 1) {
	${'m'.$i.'l'}=$dot[7+$cols*($i-1)+$i-1];
	${'m'.$i.'a'}=$dot[7+$cols*($i-1)+1+$i-1];
	${'m'.$i.'b'}=$dot[7+$cols*($i-1)+2+$i-1];}
	  
	include 'dE00.php';
	function de76($l1,$a1,$b1,$l2,$a2,$b2) {
  $d76=sqrt(pow(($l1-$l2),2)+ pow(($a1-$a2),2)+pow(($b1-$b2),2));
  return round($d76,2);
}
	
	$desum=0;
		for ( $sm = 2; $sm <= 1617; $sm+= 1) {
	${'sc00'.$sm}=round(de00(${'sc'.$sm.'l'},${'sc'.$sm.'a'},${'sc'.$sm.'b'},${'m'.$sm.'l'},${'m'.$sm.'a'},${'m'.$sm.'b'}),2);
	
	$desum=${'sc00'.$sm}+$desum;
	}
	
	
		$desum76=0;
		for ( $sm = 2; $sm <= 1617; $sm+= 1) {
	${'sc76'.$sm}=round(de76(${'sc'.$sm.'l'},${'sc'.$sm.'a'},${'sc'.$sm.'b'},${'m'.$sm.'l'},${'m'.$sm.'a'},${'m'.$sm.'b'}),2);
	
	$desum76=${'sc76'.$sm}+$desum76;
	}

	//echo "set2=". $sc1617l."x".$sc1617a."x".$sc1617b."xx".$m1617l."x".$m1617a."x".$m1617b."de001617:".$sc761617."<br>";
	
    $avg00=round(($desum/1617),2);
	$avg76=round(($desum76/1617),2);
	
	$range76 = array() ;
	array_push($range76, 0);
 for ($s=2; $s <= 1617; $s += 1) {
$range76[$s] = ${'sc76'.$s};
}
sort($range76);
//echo "s76".$range76[1615];

	$range00 = array() ;
	array_push($range00, 0);
 for ($s=2; $s <= 1617; $s += 1) {
$range00[$s] = ${'sc00'.$s};
}
sort($range00);
//echo "s00".$range00[1615];

$sc7695 = $range76[round((95/100) * count($range76) -0.5)];	
$sc0095 = $range00[round((95/100) * count($range00) -0.5)];		
?>


<p><p>
	
	<table width="200" border="1" align="center">
  <tr>
  	<td bgcolor="#77FFFF"><div align="center">100C</div></td>
    <td><font color="#aaaaaa">L*</td>
    <td><font color="#aaaaaa">a*</td>
    <td><font color="#aaaaaa">b*</td>
	<td>
	 <td bgcolor="#FF77FF"><div align="center">100M</div></td>
    <td><font color="#aaaaaa">L*</td>
    <td><font color="#aaaaaa">a*</td>
    <td><font color="#aaaaaa">b*</td>
    <td>
	<td bgcolor="#FFFF77"><div align="center">100Y</div></td>
	<td><font color="#aaaaaa">L*</font></td>
	<td><font color="#aaaaaa">a*</font></td>
	<td><font color="#aaaaaa">b*</font></td>
	<td>
	<td bgcolor="#aaaaaa"><div align="center">100K</div></td>
	<td><font color="#aaaaaa">L*</font></td>
	<td><font color="#aaaaaa">a*</font></td>
	<td><font color="#aaaaaa">b*</font></td>  
  </tr>
  

  <?php
  //////////////////////////////////////////////////Fogra Media Check
  $psum=20;
 // $pl=95; $pa=-0.01;$pb=-2;
  $cl=$scCL; $ca=$scCa;$cb=$scCb;
  $ml=$scML; $ma=$scMa;$mb=$scMb;
  $yl=$scYL; $ya=$scYa;$yb=$scYb;
  $kl=$scKL; $ka=$scKa;$kb=$scKb;
  

?>


<?php
 
 $pa00=de00(95,1,-4,$PL,$Pa,$Pb);
 
 $mcl=($mcl+$mcl2)/2;$mca=($mca+$mca2)/2;$mcb=($mcb+$mcb2)/2;
  $mml=($mml+$mml2)/2;$mma=($mma+$mma2)/2;$mmb=($mmb+$mmb2)/2;
   $myl=($myl+$myl2)/2;$mya=($mya+$mya2)/2;$myb=($myb+$myb2)/2;
    $mkl=($mkl+$mkl2)/2;$mka=($mka+$mka2)/2;$mkb=($mkb+$mkb2)/2;
 
 $dc00=de00($cl,$ca,$cb,$mcl,$mca,$mcb);
 $dm00=de00($ml,$ma,$mb,$mml,$mma,$mmb);
 $dy00=de00($yl,$ya,$yb,$myl,$mya,$myb);
 $dk00=de00($kl,$ka,$kb,$mkl,$mka,$mkb);
 
 $dc50=de00($scC50L,$scC50a,$scC50b,$mc50l,$mc50a,$mc50b);
 $dm50=de00($scM50L,$scM50a,$scM50b,$mm50l,$mm50a,$mm50b);
 $dy50=de00($scY50L,$scY50a,$scY50b,$my50l,$my50a,$my50b);
 $dk50=de00($scK50L,$scK50a,$scK50b,$mk50l,$mk50a,$mk50b);
 
  $dcmy=de00($sccmyL,$sccmya,$sccmyb,$mcmyl,$mcmya,$mcmyb);
  
  
  //$dp1=de00($p1l,$p1a,$p1b,$pp1l,$pp1a,$pp1b);
  
  for ( $i = 1; $i <= 29; $i += 1) {
  ${'dp'.$i}=round(de00(${'p'.$i.'l'},${'p'.$i.'a'},${'p'.$i.'b'},${'pp'.$i.'l'},${'pp'.$i.'a'},${'pp'.$i.'b'}),2);
 }
 
$CRde = array() ;
 for ($s=1; $s <= 29; $s += 1) {
$CRde[$s] = ${'dp'.$s};
}
 
 //$CRde = array("lemon", "orange", "banana", "apple");
sort($CRde);
//echo "CR".$CRde[26];
 
  $CRF0=0;
 // $CRF1=$CRF0+1/29;
 // $CRF2=$CRF1+1/29;
  for ( $i = 1; $i <= 29; $i += 1) {
  ${'CRF'.$i}=${'CRF'.($i-1)}+(1/29);
  }


  
 ?>

<tr><td><div align="center">SCCA</div></td>
<td><div align="right"><?php echo round($cl,2);?></div></td>
<td><div align="right"><?php echo round($ca,2);?></div></td>
<td><div align="right"><?php echo round($cb,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center">SCCA</div></td>
<td><div align="right"><?php echo round($ml,2);?></div></td>
<td><div align="right"><?php echo round($ma,2);?></div></td>
<td><div align="right"><?php echo round($mb,2);?></div></td>
<td>
 <td><div align="center">SCCA</div></td>
	    <td><div align="right"><?php echo round($yl,2);?></div></td>
	    <td><div align="right"><?php echo round($ya,2);?></div></td>
	    <td><div align="right"><?php echo round($yb,2);?></div></td>
	    <td><div align="center"></div></td>
	    <td><div align="center">SCCA</div></td>
	    <td><div align="right"><?php echo round($kl,2);?></div></td>
	    <td><div align="right"><?php echo round($ka,2);?></div></td>
	    <td><div align="right"><?php echo round($kb,2);?></div></td>
</tr>

<tr><td><div align="center">Meas.</div></td>
<td><div align="right"><?php echo round($mcl,2);?></div></td>
<td><div align="right"><?php echo round($mca,2);?></div></td>
<td><div align="right"><?php echo round($mcb,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center">Meas.</div></td>
<td><div align="right"><?php echo round($mml,2);?></div></td>
<td><div align="right"><?php echo round($mma,2);?></div></td>
<td><div align="right"><?php echo round($mmb,2);?></div></td>
<td>
<td><div align="center">Meas.</div></td>
	    <td><div align="right"><?php echo round($myl,2);?></div></td>
	    <td><div align="right"><?php echo round($mya,2);?></div></td>
	    <td><div align="right"><?php echo round($myb,2);?></div></td>
	    <td><div align="center"></div></td>
	    <td><div align="center">Meas.</div></td>
	    <td><div align="right"><?php echo round($mkl,2);?></div></td>
	    <td><div align="right"><?php echo round($mka,2);?></div></td>
	    <td><div align="right"><?php echo round($mkb,2);?></div></td>
        <td>
</tr>

<tr><td><div align="center">dE00.</div></td>
<td><div align="right"><?php echo round($dc00,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center">dE00.</div></td>
<td><div align="right"><?php echo round($dm00,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td>
    <td><div align="center">dE00.</div></td>
	    <td><div align="right"><?php echo round($dy00,2);?></div></td>
	    <td><div align="center"></div></td>
	    <td><div align="center"></div></td>
	    <td><div align="center"></div></td>
	    <td><div align="center">dE00.</div></td>
	    <td><div align="right"><?php echo round($dk00,2);?></div></td>
	    <td><div align="center"></div></td>
	    <td><div align="center"></div></td>
      </tr>
</table>
<br>


<table width="200" border="1" align="center">
  <tr>
  	<td bgcolor="#DDFFFF"><div align="center">50C</div></td>
    <td><font color="#aaaaaa">L*</td>
    <td><font color="#aaaaaa">a*</td>
    <td><font color="#aaaaaa">b*</td>
	<td>
	<td bgcolor="#FFDDFF"><div align="center">50M</div></td>
    <td><font color="#aaaaaa">L*</td>
    <td><font color="#aaaaaa">a*</td>
    <td><font color="#aaaaaa">b*</td>
    <td>
    <td bgcolor="#FFFFDD"><div align="center">50Y</div></td>
    <td><font color="#aaaaaa">L*</td>
    <td><font color="#aaaaaa">a*</td>
    <td><font color="#aaaaaa">b*</td>
	<td>
<td bgcolor="#DFDFDF"><div align="center">50K</div></td>
    <td><font color="#aaaaaa">L*</td>
    <td><font color="#aaaaaa">a*</td>
    <td><font color="#aaaaaa">b*</td>
  </tr>
<tr><td><div align="center">SCCA</div></td>
<td><div align="right"><?php echo round($scC50L,2);?></div></td>
<td><div align="right"><?php echo round($scC50a,2);?></div></td>
<td><div align="right"><?php echo round($scC50b,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center">SCCA</div></td>
<td><div align="right"><?php echo round($scM50L,2);?></div></td>
<td><div align="right"><?php echo round($scM50a,2);?></div></td>
<td><div align="right"><?php echo round($scM50b,2);?></div></td>
<td>
<td><div align="center">SCCA</div></td>
<td><div align="right"><?php echo round($scY50L,2);?></div></td>
<td><div align="right"><?php echo round($scY50a,2);?></div></td>
<td><div align="right"><?php echo round($scY50b,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center">SCCA</div></td>
<td><div align="right"><?php echo round($scK50L,2);?></div></td>
<td><div align="right"><?php echo round($scK50a,2);?></div></td>
<td><div align="right"><?php echo round($scK50b,2);?></div></td>
<td>

</tr>

<tr><td><div align="center">Meas.</div></td>
<td><div align="right"><?php echo round($mc50l,2);?></div></td>
<td><div align="right"><?php echo round($mc50a,2);?></div></td>
<td><div align="right"><?php echo round($mc50b,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center">Meas.</div></td>
<td><div align="right"><?php echo round($mm50l,2);?></div></td>
<td><div align="right"><?php echo round($mm50a,2);?></div></td>
<td><div align="right"><?php echo round($mm50b,2);?></div></td>
<td>
<td><div align="center">Meas.</div></td>
<td><div align="right"><?php echo round($my50l,2);?></div></td>
<td><div align="right"><?php echo round($my50a,2);?></div></td>
<td><div align="right"><?php echo round($my50b,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center">Meas.</div></td>
<td><div align="right"><?php echo round($mk50l,2);?></div></td>
<td><div align="right"><?php echo round($mk50a,2);?></div></td>
<td><div align="right"><?php echo round($mk50b,2);?></div></td>
</tr>

<tr><td><div align="center">dE00.</div></td>
<td><div align="right"><?php echo round($dc50,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center">dE00.</div></td>
<td><div align="right"><?php echo round($dm50,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td>
<td><div align="center">dE00.</div></td>
<td><div align="right"><?php echo round($dy50,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center">dE00.</div></td>
<td><div align="right"><?php echo round($dk50,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
</tr>
</table>
<br>


<table width="200" border="1" align="center">
  <tr>
<td bgcolor="#bbbbbf"><div align="center">CMY</div></td>
    <td><font color="#aaaaaa">L*</td>
    <td><font color="#aaaaaa">a*</td>
    <td><font color="#aaaaaa">b*</td>
	<td>
    <td><font color="#aaaaaa">IT8.7/4</td>
    <td><font color="#aaaaaa">∆E*ab</td>
    <td><font color="#aaaaaa">∆E00</td>
  </tr>
<tr><td><div align="center">SCCA</div></td>
<td><div align="right"><?php echo round($sccmyL,2);?></div></td>
<td><div align="right"><?php echo round($sccmya,2);?></div></td>
<td><div align="right"><?php echo round($sccmyb,2);?></div></td>
<td>
<td><font color="#aaaaaa"><div align="center"></div>Avg.</td>
    <td><?php echo $avg76;?></td>
    <td><?php echo $avg00;?></td>
</tr>

<tr><td><div align="center">Meas.</div></td>
<td><div align="right"><?php echo round($mcmyl,2);?></div></td>
<td><div align="right"><?php echo round($mcmya,2);?></div></td>
<td><div align="right"><?php echo round($mcmyb,2);?></div></td>
<td><div align="center"></div></td>
    <td><font color="#aaaaaa">Range</td>
        <td><?php echo $range76[1615];?></td>
		<td><?php echo $range00[1615];?></td>

</tr>

<tr><td><div align="center">dE00.</div></td>
<td><div align="right"><?php echo round($dcmy,2);?></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
    <td><font color="#aaaaaa">95%tile</td>
        <td><?php echo $sc7695;?></td>
		<td><?php echo $sc0095;?></td>
</tr>
</table>
<br>
<br>
<hr size="5"> 
<p>Within-sheet aspect<p>
<table width="200" border="1" align="center">
  <tr>
<td bgcolor="#bbbbbf"><div align="center">Patch</div></td>
    <td><font color="#aaaaaa">L*1</td>
    <td><font color="#aaaaaa">a*1</td>
    <td><font color="#aaaaaa">b*1</td>
	<td><font color="#aaaaaa">L*2</td>
    <td><font color="#aaaaaa">a*2</td>
    <td><font color="#aaaaaa">b*2</td>
	<td><font color="#aaaaaa">∆E00 (x)</td>
    <td><font color="#aaaaaa">CRF (y)</td>
    <td><font color="#aaaaaa">∆E00 (sort)</td>
  </tr>
 <?php   for ( $i = 1; $i <= 29; $i += 1) { ?>
<tr>
<td><div align="right"><?php echo $i;?></div></td>
<td><div align="right"><?php echo ${'p'.$i.'l'};?></div></td>
<td><div align="right"><?php echo ${'p'.$i.'a'};?></div></td>
<td><div align="right"><?php echo ${'p'.$i.'b'};?></div></td>
<td><div align="right"><?php echo ${'pp'.$i.'l'};?></div></td>
<td><div align="right"><?php echo ${'pp'.$i.'a'};?></div></td>
<td><div align="right"><?php echo ${'pp'.$i.'b'};?></div></td>
<td><div align="right"><?php echo ${'dp'.$i};?></div></td>
<td><div align="right"><?php echo round(${'CRF'.$i},2);?></div></td>
<td><div align="right"><?php echo $CRde[$i-1];?></div></td>
</tr>
<?php }  //${'CRF'.$i} IF(K33<1,"Level A",IF(K33<1.5,"Level B",IF(K33<3,"Level C","Fail")))
 $avg29=0;
 for ( $i = 1; $i <= 29; $i += 1) {
 $avg29=${'dp'.$i}+$avg29;
}
$avg29=($CRde[26]+$CRde[27])/2;
if ((($CRde[26]+$CRde[27])/2)<3) {$pass="Pass";}
else {$pass="Fail";}

if ($avg29<1) {$level="Level A";}
elseif ($avg29<1.5) {$level="Level B";}
elseif ($avg29<3) {$level="Level C";}
else {$level="Fail";}
?>
<tr>
<td><td><td><td><td><td><td><td>
<td>0.95</td>
<td><?php echo round(($CRde[26]+$CRde[27])/2,2);?></td>
</tr>
<tr>
<td><td><td><td><td><td><td>
<td>Pass/Fail</td>
<td><?php echo $pass;?></td>
<td><?php echo $level;?></td>
</table>
<hr size="5"> 
<p>TR016(2012)<p>

<?php 
  $Tsum=(($sum/260)*60)+(($psum/20)*40);
  $Rsum=round($Tsum,2);
  if (($check==0) && ($sid==0)){
	$passbit=1;}
  
  $connection = mysql_connect("127.0.0.1", "root", "fredsql") or die ("Unable to connect!");
	mysql_query("SET NAMES 'utf8'");
	$db = "tvicheck-st";
		// select database
		mysql_select_db($db) or die ("Unable to select database!");

		// generate and execute query
		$query = "INSERT INTO PSATR16S(company, contact, email, type, filename,fileP, score, passbit, date, device, dsn, printer, paper, ink, rankbit) VALUES('$company', '$contact', '$email', '$type', '$filename','$fileP','$Rsum', '$passbit', NOW(), '$device', '$dsn', '$printer', '$paper', '$ink', '$rankbit')";
		
		//echo $query;
		$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
		
		sleep(1);
		
		$queryID="select id from PSATR16S ORDER BY id DESC limit 0,1";
		$resultID = mysql_query($queryID) or die ("Error in query: $query. " . mysql_error());
		while ($row=mysql_fetch_object($resultID))
		{
		$imgID=$row->id;
		}
		
  
		mysql_close($connection);
}} ?>





<table width="200" border="1" align="center">
<tr>
<td><div align="center">
<?php // content="text/plain; charset=utf-8"
$scatterN="./image/".$imgID."-scatter.png";
//unlink('scatter00.png');
require_once ('../jpgraph/jpgraph.php');
require_once ('../jpgraph/jpgraph_scatter.php');
require_once ('../jpgraph/jpgraph_plotline.php'); 



$datax = $range00;
$datax2 = $range76;
$datax3 = $CRde;

  for ( $i = 1; $i <= 1617; $i += 1) {
  ${'CR00'.$i}=${'CR00'.($i-1)}+(1/1617);
  }
  
  
$CR00 = array() ;
 for ($s=0; $s <= 1616; $s += 1) {
$CR00[$s] = ${'CR00'.$s};
}

$datay = $CR00;

$CRFa = array() ;
 for ($s=0; $s <= 28; $s += 1) {
$CRFa[$s] = ${'CRF'.$s};
}

$datay2 = $CRFa;





$graph = new Graph(600,500);
$graph->SetScale("linlin");

$graph->img->SetMargin(40,40,40,40);		
$graph->SetShadow();

$graph->title->Set("CRF de00 plot");
$graph->title->SetFont(FF_FONT1,FS_BOLD);
//$graph->legend->SetFillColor("white");


$sp1 = new ScatterPlot($datay,$datax);
$sp2 = new ScatterPlot($datay,$datax2);
$sp3 = new ScatterPlot($datay2,$datax3);

$sp1->mark->SetType(MARK_X);


$sp2->mark->SetType(MARK_STAR);
$sp2->mark->SetColor('#999999');

$sp3->mark->SetType(MARK_DIAMOND);
$sp3->mark->SetColor('blue'); 

$sline = new PlotLine(HORIZONTAL,0.95,'red',1.1); 
$sline->SetLineStyle('dashed');

$sline2 = new PlotLine(VERTICAL,$sc0095,'red',1.1); 
$sline2->SetLineStyle('dashed');

$graph->Add($sp1);
$graph->Add($sp2);
$graph->Add($sp3);
$graph->Add($sline);
$graph->Add($sline2);

$sp1->SetLegend("dE00");
$sp2->SetLegend("dE*ab");
$sp3->SetLegend("Within-Sheet aspect");


$graph->Stroke($scatterN);

?>
<img src=<?php echo $scatterN;?>>
</div></td>
</tr>
</table>
<p>&nbsp;</p>
<table border="1" align="center" cellpadding="0" cellspacing="0">
  <col width="88" span="11" />
  <tr>
   <td colspan = "3">System capability CGATS 2012</td>
  
  <td><td><td><td><td><td><td><td><td>
  </tr>
  
  <tr>
    <td width="88">Tol. ∆E00</td>
    <td width="88">95%tile</td>
    <td width="88" bgcolor="#0099FF">100C</td>
    <td width="88" bgcolor="#CC66FF">100M</td>
    <td width="88" bgcolor="#FFFF33">100Y</td>
    <td width="88" bgcolor="#666666">100K</td>
    <td width="88" bgcolor="#00FFFF">50C</td>
    <td width="88" bgcolor="#FFCCFF">50M</td>
    <td width="88" bgcolor="#FFFF99">50Y</td>
    <td width="88" bgcolor="#CCCCCC">50K</td>
    <td width="88" bgcolor="#999999">50C40M40Y</td>
  </tr>
  <tr>
    <td>Level A</td>
    <td bgcolor="#008000">3.0</td>
    <td bgcolor="#008000">1.5</td>
    <td bgcolor="#008000">1.5</td>
    <td bgcolor="#008000">1.5</td>
    <td bgcolor="#008000">2.4</td>
    <td bgcolor="#008000">1.5</td>
    <td bgcolor="#008000">1.5</td>
    <td bgcolor="#008000">1.5</td>
    <td bgcolor="#008000">1.5</td>
    <td bgcolor="#008000">3.0</td>
  </tr>
  <tr>
    <td>Level B</td>
    <td bgcolor="#75923c">4.0</td>
    <td bgcolor="#75923c">2.4</td>
    <td bgcolor="#75923c">2.4</td>
    <td bgcolor="#75923c">2.4</td>
    <td bgcolor="#75923c">3.6</td>
    <td bgcolor="#75923c">2.0</td>
    <td bgcolor="#75923c">2.0</td>
    <td bgcolor="#75923c">2.0</td>
    <td bgcolor="#75923c">2.0</td>
    <td bgcolor="#75923c">3.5</td>
  </tr>
  <tr>
    <td>Level C</td>
    <td bgcolor="#d7e4bc">5.0</td>
    <td bgcolor="#d7e4bc">4.0</td>
    <td bgcolor="#d7e4bc">4.0</td>
    <td bgcolor="#d7e4bc">4.0</td>
    <td bgcolor="#d7e4bc">6.0</td>
    <td bgcolor="#d7e4bc">2.5</td>
    <td bgcolor="#d7e4bc">2.5</td>
    <td bgcolor="#d7e4bc">2.5</td>
    <td bgcolor="#d7e4bc">2.5</td>
    <td bgcolor="#d7e4bc">6.0</td>
  </tr>

  <tr>
    <td>∆E00</td>
    <?php 
	if ($sc0095<3.05) { 
	echo '<td bgcolor="#008000">';}
	elseif ($sc0095<4.05) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($sc0095<5.05) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo $sc0095;?></td>
	
       <?php 
	if ($dc00<1.55) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dc00<2.45) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dc00<4.05) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dc00,2);?></td>
        <?php 
	if ($dm00<1.55) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dm00<2.45) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dm00<4.05) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dm00,2);?></td>
        <?php 
	if ($dy00<1.55) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dy00<2.45) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dy00<4.05) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dy00,2);?></td>
        <?php 
	if ($dk00<2.45) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dk00<3.65) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dk00<6.05) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dk00,2);?></td>
        <?php 
	if ($dc50<1.55) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dc50<2.05) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dc50<2.55) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dc50,2);?></td>
        <?php 
	if ($dm50<1.55) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dm50<2.05) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dm50<2.55) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dm50,2);?></td>
        <?php 
	if ($dy50<1.55) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dy50<2.05) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dy50<2.55) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dy50,2);?></td>
        <?php 
	if ($dk50<1.55) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dk50<2.05) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dk50<2.55) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dk50,2);?></td>
        <?php 
	if ($dcmy<3.05) { 
	echo '<td bgcolor="#008000">';}
	elseif ($dcmy<3.55) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($dcmy<5.05) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($dcmy,2);?></td>
  </tr>
  <tr>
    <td>Level</td>
    <?php 
	if ($sc0095<3.05) { 
	echo '<td>A</td>';}
	elseif ($sc0095<4.05) { 
	echo '<td>B</td>';}
	elseif ($sc0095<5.05) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}

	if ($dc00<1.55) { 
	echo '<td>A</td>';}
	elseif ($dc00<2.45) { 
	echo '<td>B</td>';}
	elseif ($dc00<4.05) { 
	echo '<td>C</td>';}
	else {'<td>F</td>';}

       
	if ($dm00<1.5) { 
	echo '<td>A</td>';}
	elseif ($dm00<2.45) { 
	echo '<td>B</td>';}
	elseif ($dm00<4.05) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	
	if ($dy00<1.55) { 
	echo '<td>A</td>';}
	elseif ($dy00<2.45) { 
	echo '<td>B</td>';}
	elseif ($dy00<4.05) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	
	if ($dk00<2.45) { 
	echo '<td>A</td>';}
	elseif ($dk00<3.65) { 
	echo '<td>B</td>';}
	elseif ($dk00<6.05) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	
	if ($dc50<1.55) { 
	echo '<td>A</td>';}
	elseif ($dc50<2.05) { 
	echo '<td>B</td>';}
	elseif ($dc50<2.55) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	
	if ($dm50<1.55) { 
	echo '<td>A</td>';}
	elseif ($dm50<2.05) { 
	echo '<td>B</td>';}
	elseif ($dm50<2.55) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	
	if ($dy50<1.55) { 
	echo '<td>A</td>';}
	elseif ($dy50<2.05) { 
	echo '<td>B</td>';}
	elseif ($dy50<2.55) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	
	if ($dk50<1.55) { 
	echo '<td>A</td>';}
	elseif ($dk50<2.05) { 
	echo '<td>B</td>';}
	elseif ($dk50<2.55) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	
	if ($dcmy<3.05) { 
	echo '<td>A</td>';}
	elseif ($dcmy<3.55) { 
	echo '<td>B</td>';}
	elseif ($dcmy<5.05) { 
	echo '<td>C</td>';}
	else {echo '<td>F</td>';}
	?>
  </tr>
  <tr>
    <td>Score</td>
   <?php 
	if ($sc0095<3.05) { 
	$sc0095S=3;echo '<td>3</td>';}
	elseif ($sc0095<4.05) { 
	$sc0095S=2;echo '<td>2</td>';}
	elseif ($sc0095<5.05) { 
	$sc0095S=1;echo '<td>1</td>';}
	else {$sc0095S=0;echo '<td>0</td>';}

	if ($dc00<1.55) { 
	$dc00S=3;echo '<td>3</td>';}
	elseif ($dc00<2.45) { 
	$dc00S=2;echo '<td>2</td>';}
	elseif ($dc00<4.05) { 
	$dc00S=1;echo '<td>1</td>';}
	else {$dc00S=0;echo '<td>0</td>';}

       
	if ($dm00<1.55) { 
	$dm00S=3;echo '<td>3</td>';}
	elseif ($dm00<2.45) { 
	$dm00S=2;echo '<td>2</td>';}
	elseif ($dm00<4.05) { 
	$dm00S=1;echo '<td>1</td>';}
	else {$dm00S=0;echo '<td>0</td>';}
	
	if ($dy00<1.55) { 
	$dy00S=3;echo '<td>3</td>';}
	elseif ($dy00<2.45) { 
	$dy00S=2;echo '<td>2</td>';}
	elseif ($dy00<4.05) { 
	$dy00S=1;echo '<td>1</td>';}
	else {$dy00S=0;echo '<td>0</td>';}
	
	if ($dk00<2.45) { 
	$dk00S=3;echo '<td>3</td>';}
	elseif ($dk00<3.65) { 
	$dk00S=2;echo '<td>2</td>';}
	elseif ($dk00<6.05) { 
	$dk00S=1;echo '<td>1</td>';}
	else {$dk00S=0;echo '<td>0</td>';}
	
	if ($dc50<1.55) { 
	$dc50S=3;echo '<td>3</td>';}
	elseif ($dc50<2.05) { 
	$dc50S=2;echo '<td>2</td>';}
	elseif ($dc50<2.55) { 
	$dc50S=1;echo '<td>1</td>';}
	else {$dc50S=0;echo '<td>0</td>';}
	
	if ($dm50<1.55) { 
	$dm50S=3;echo '<td>3</td>';}
	elseif ($dm50<2.05) { 
	$dm50S=2;echo '<td>2</td>';}
	elseif ($dm50<2.55) { 
	$dm50S=1;echo '<td>1</td>';}
	else {$dm50S=0;echo '<td>0</td>';}
	
	if ($dy50<1.55) { 
	$dy50S=3;echo '<td>3</td>';}
	elseif ($dy50<2.05) { 
	$dy50S=2;echo '<td>2</td>';}
	elseif ($dy50<2.55) { 
	$dy50S=1;echo '<td>1</td>';}
	else {$dy50S=0;echo '<td>0</td>';}
	
	if ($dk50<1.55) { 
	$dk50S=3;echo '<td>3</td>';}
	elseif ($dk50<2.05) { 
	$dk50S=2;echo '<td>2</td>';}
	elseif ($dk50<2.55) { 
	$dk50S=1;echo '<td>1</td>';}
	else {$dk50S=0;echo '<td>0</td>';}
	
	if ($dcmy<3.05) { 
	$dcmyS=3;echo '<td>3</td>';}
	elseif ($dcmy<3.55) { 
	$dcmyS=2;echo '<td>2</td>';}
	elseif ($dcmy<5.05) { 
	$dcmyS=1;echo '<td>1</td>';}
	else {$dcmyS=0;echo '<td>0</td>';}
	?>
  </tr>
</table>
<br>

<table border="1" align="center" cellpadding="0" cellspacing="0">
  <col width="88" span="2" />
  <tr>
 <td colspan = "2">Within-sheet aspect</td>
  
  </tr>
  <tr>
    <td width="88">Tol. ∆E00</td>
    <td width="88">95%tile</td>
</tr>
<tr>
	<td>Level A</td>
    <td bgcolor="#008000">1.0</td>
</tr>
 <tr>
    <td>Level B</td>
    <td bgcolor="#75923c">1.5</td>
	</tr>
	 <tr>
    <td>Level C</td>
    <td bgcolor="#d7e4bc">3.0</td>
	</tr>
<tr>
    <td>∆E00</td>
    <?php 
	$WS=($CRde[26]+$CRde[27])/2;
	if ($WS<1.05) { 
	echo '<td bgcolor="#008000">';}
	elseif ($WS<1.55) { 
	echo '<td bgcolor="#75923c">';}
	elseif ($WS<3.05) { 
	echo '<td bgcolor="#d7e4bc">';}
	else {echo '<td bgcolor="#ff003a">';}
	echo round($WS,2);?></td>
</tr>

<tr>
    <td>Level</td>
    <?php 
	$WS=($CRde[26]+$CRde[27])/2;
	if ($WS<1.05) { 
	$WSS=3;echo '<td>A</td>';}
	elseif ($WS<1.55) { 
	$WSS=2;echo'<td>B</td>';}
	elseif ($WS<3.05) { 
	$WSS=1;echo '<td>C</td>';}
	else {$WSS=0;echo'<td>F</td>';}
	?>
</tr>
<tr>
    <td>Score</td>
    <?php 
	$WS=($CRde[26]+$CRde[27])/2;
	if ($WS<1.05) { 
	$WSS=3;echo '<td>3</td>';}
	elseif ($WS<1.55) { 
	$WSS=2;echo'<td>2</td>';}
	elseif ($WS<3.05) { 
	$WSS=1;echo '<td>1</td>';}
	else {$WSS=0;echo'<td>0</td>';}
	?>
</tr>

</table>	

<hr size="5"> 





<br>

<table align="center">
<tr>
  <td align="center"> <a href="TVI-parsing13-Print.php?file=<?php echo $dStr.$_FILES["file"]["name"]."&fileP=".$dStr.$_FILES["fileP"]["name"]."&imgID=".$imgID;?>">Print</a><br></td>

  <td align="center"> <a href="rank.php">Report</a><br></td>
  <td align="center"> <a href="index.htm">MainPage</a><br></td>
</tr>

<tr>
<td align="center"><font size="-2"> &copy; <a href="mailto:[email protected]">Fred Kuo</a>, 2014. All rights reserved.<br><a href="http://www.fredkuo.idv.tw/wordpress/?p=1025">Read more.</a><br>
</td>
</tr>
</table>
</body>


</html>