
var i,j,k,kz,url,src_fle;
var sepa,sepa_eng_end,sepa_jap_end,st,en,byte,seq;
var size_end, tech_end, tech_start, siz, tech, imgno_max, lineno_max, und_dp;
var year, price, edition, year_end, price_end, edition_end;
var photo_tbl = new Array();
var tech_j_end, tech_e_end;

/*--------------------------------------------------------------------------- */
function slide_cell_set(src_fle)
{       

/* 	url = "URL:"+location.href; */
/* alert(url); */
 	src_fle = src_fle + ".htm"; /** revised 0911/5 **/
/* alert("in: "+ src_fle); */
	ignore_cnt = 0;
	/* Hyo set */
	if ((src_fle == "yoa.htm")||(src_fle == "yob.htm")||(src_fle == "yoc.htm")||(src_fle == "yod.htm")||(src_fle == "yoe.htm"))	     
	  {
	    if (src_fle == "yoa.htm")
	     {
		for(i = 1; t10[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = t10[i];
	 		}			
	     }
	    else if (src_fle == "yob.htm")
	     {
		for(i = 1; t11[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = t11[i];
	 		}			
	     }
	    else if (src_fle == "yoc.htm")
	     {
		for(i = 1; t12[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = t12[i];
	 		}			
	     }
	    else if (src_fle == "yod.htm")
	     {
		for(i = 1; t13[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = t13[i];
	 		}			
	     }
	    else if (src_fle == "yoe.htm")
	     {
		for(i = 1; t14[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = t14[i];
	 		}			
	     }
	imgno_max = i - 1;	/* max photo cnt */
	und_dp = imgno_max / 5;
	lineno_max = und_dp;
	if ((" " + und_dp).indexOf(".") > -1)
	   {			 
	     und_dp = Number("0." + (String(und_dp).split("."))[1]);
	   }		
	else 
	   {und_dp = 0;}

	if (und_dp != 0) 
  	   { 
	    lineno_max = Math.floor(lineno_max);
    	    lineno_max = lineno_max +1;
  	   }
	k = 0;
	for (i=1; i<lineno_max*2 ; i=i+2)
 	   {
	    for (j=0; j<5; j++)
 	     {
	      k++;

	      sepa_eng_end = photo_tbl[k].search("~");
	      sepa_jap_end = photo_tbl[k].search("@");
	      size_end = photo_tbl[k].search("`");
	      tech_end = photo_tbl[k].search("{");
	      year_end = photo_tbl[k].search("}");
	      sepa = photo_tbl[k].search("@");
	      seq_up = photo_tbl[k].substr(0,3); 
	      seq_dn = photo_tbl[k].substr(3,3); 
	      seq = seq_up + seq_dn;  
	      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
/*	      tech = photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2)); */
	      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
	      price_end = photo_tbl[k].search("_");
	      tech = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));

	      if (seq != "999999")
		{	
	         if (seq != "000000")
		   {
	      	    memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
	            memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
	            memo = photo_tbl[k].substr(0,sepa);
	    	    if (src_fle == "yoa.htm")
   	            	{ft10.rows[i].cells[j].innerText = seq + ";  " + memo_eng + "\n"+ siz + "\n" + year + "\n" + tech + "\n";}
	    	    else if (src_fle == "yob.htm")
   	            	{ft11.rows[i].cells[j].innerText = seq + ";  " + memo_eng + "\n"+ siz + "\n" + year + "\n" + tech + "\n";}
	    	    else if (src_fle == "yoc.htm")
   	            	{ft12.rows[i].cells[j].innerText = seq + ";  " + memo_eng + "\n" + siz + "\n" + year + "\n" + tech + "\n";}
	    	    else if (src_fle == "yod.htm")
   	            	{ft13.rows[i].cells[j].innerText = seq + ";  " + memo_eng + "\n" + siz + "\n" + year + "\n" + tech + "\n";}
	    	    else if (src_fle == "yoe.htm")
   	            	{ft14.rows[i].cells[j].innerText = seq + ";  " + memo_eng + "\n" + siz + "\n" + year + "\n" + tech + "\n";}
		   } 
		}
	      else
	       {break;}		
 	     }
 	   }
	}


	else if (src_fle == "tET.htm")
	   {
		for(i = 1; tET[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = tET[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 4;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<4; j++)
	 	    {
		      k++;

		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year_end = photo_tbl[k].search("}");
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           ftET.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + "\n";
			  } 
			}
	 	    }
	 	}
	   }



	else if (src_fle == "tLI.htm")
	   {
		for(i = 1; tLI[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = tLI[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 4;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<4; j++)
	 	    {
		      k++;
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year_end = photo_tbl[k].search("}");
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           ftLI.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + "\n";
			  } 
			}
	 	    }
	 	}
	   }

	else if (src_fle == "WOa.htm")
	   {
		for(i = 1; tWO[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = tWO[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 4;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<4; j++)
	 	    {
		      k++;



		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           ftWO.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition + "\n" + price + "\n"+ "\n";

			  } 
			}
	 	    }
	 	}
	   }



	else if (src_fle == "THa.htm")
	   {
		for(i = 1; tTH[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = tTH[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 4;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<4; j++)
	 	    {
		      k++;
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year_end = photo_tbl[k].search("}");
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           ftTH.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + "\n";

			  } 
			}
	 	    }
	 	}
	   }



		else if (src_fle == "BOa.htm")
	   {
		for(i = 1; tBO[i].substr(0,6) != "999999"; i++)
	   		{
		   	  photo_tbl[i] = tBO[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 4;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<4; j++)
	 	    {
		      k++;
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year_end = photo_tbl[k].search("}");
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           ftBO.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + year + "\n" + memo_jap + "\n" + siz + "\n" + "\n";
			  } 
			}
	 	    }
	 	}
	   }



	else if (src_fle == "MEa.htm")
	   {
		for(i = 1; MEa[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] = MEa[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEa.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition + "\n" + price + "\n"+ "\n";

			  } 
			}
	 	    }
	 	}
/* alert(seq); */
	   }



/*-----------------*/

	else if (src_fle == "MEb.htm")
	   {
		for(i = 1; MEb[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] =  MEb[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEb.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition + "\n" + price + "\n"+ "\n";

			  } 
			}
	 	    }
	 	}
	   }


	else if (src_fle == "MEc.htm")
	   {
		for(i = 1; MEc[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] =  MEc[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEc.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition + "\n" + price + "\n"+ "\n";
			  } 
			}
	 	    }
	 	}
	   }


	else if (src_fle == "MEd.htm")
	   {
		for(i = 1; MEd[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] =  MEd[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_start = photo_tbl[k].search(";");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      tech =photo_tbl[k].substr(tech_start + 1, tech_end  - tech_start - 1);
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEd.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition + "\n" + price + tech+"\n";
			  } 
			}
	 	    }
	 	}
	   }



	else if (src_fle == "MEe.htm")
	   {
		for(i = 1; MEe[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] =  MEe[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_end = photo_tbl[k].search("{");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      year = photo_tbl[k].substr(tech_end+1,(year_end +1 - tech_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      tech =photo_tbl[k].substr(size_end+1,(tech_end +1 - size_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEe.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition + "\n" + price + "\n"+ "\n";
			  } 
			}
	 	    }
	 	}

 	   }


	else if (src_fle == "MEf.htm")
	   {
		for(i = 1; MEf[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] =  MEf[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_e_end = photo_tbl[k].search("{");
		      tech_j_end = photo_tbl[k].search(";");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(tech_j_end+1,(tech_e_end +1 - tech_j_end - 2));
/* alert(tech); */
		      year = photo_tbl[k].substr(tech_e_end+1,(year_end +1 - tech_e_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEf.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition  + "\n"  + tech + "\n" + price + "\n"+ "\n";
			  } 
			}
	 	    }
	 	}
 	   }


	else if (src_fle == "MEg.htm")
	   {
		for(i = 1; MEgg[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] =  MEgg[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_e_end = photo_tbl[k].search("{");
		      tech_j_end = photo_tbl[k].search(";");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(tech_j_end+1,(tech_e_end +1 - tech_j_end - 2));
/* alert(tech); */
		      year = photo_tbl[k].substr(tech_e_end+1,(year_end +1 - tech_e_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEgg.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition  + "\n"  + tech + "\n" + price + "\n"+ "\n";
			  } 
			}
	 	    }
	 	}
 	   }

	else if (src_fle == "MEh.htm")
	   {
		for(i = 1; MEh[i].substr(0,6) != "999999"; i++)
	   		{
 		   	  photo_tbl[i] =  MEh[i];
	 		}			
  		imgno_max = i - 1;	/* max photo cnt */
		und_dp = imgno_max / 5;
		lineno_max = und_dp;
		if ((" " + und_dp).indexOf(".") > -1)
		   {			 
		     und_dp = Number("0." + (String(und_dp).split("."))[1]);
		   }		
		else 
		   {und_dp = 0;}

		if (und_dp != 0) 
	  	  { 
		    lineno_max = Math.floor(lineno_max);
	    	    lineno_max = lineno_max +1;
	  	  }
		k = 0;
		for (i=1; i<lineno_max*2 ; i=i+2)
	 	{
		  for (j=0; j<5; j++)
	 	    {
		      k++;
		      edition_end = photo_tbl[k].search("%");
		      year_end = photo_tbl[k].search("}");
		      price_end = photo_tbl[k].search("_");
		      sepa_eng_end = photo_tbl[k].search("~");
		      sepa_jap_end = photo_tbl[k].search("@");
		      size_end = photo_tbl[k].search("`");
		      tech_e_end = photo_tbl[k].search("{");
		      tech_j_end = photo_tbl[k].search(";");
		      sepa = photo_tbl[k].search("@");
   		      seq_up = photo_tbl[k].substr(0,3); 
   		      seq_dn = photo_tbl[k].substr(3,3); 
 		      seq = seq_up + seq_dn;  
		      memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		      siz = photo_tbl[k].substr(sepa_jap_end+1,(size_end +1 - sepa_jap_end - 2));
		      tech = photo_tbl[k].substr(tech_j_end+1,(tech_e_end +1 - tech_j_end - 2));
/* alert(tech); */
		      year = photo_tbl[k].substr(tech_e_end+1,(year_end +1 - tech_e_end - 2));
		      price = photo_tbl[k].substr(year_end+1,(price_end +1 - year_end - 2));
		      edition = photo_tbl[k].substr(price_end+1,(photo_tbl[k].length + 1 - price_end - 2));
		      if (seq != "999999")
			{	
		        if (seq != "000000")
			  {
		      	   memo_eng = photo_tbl[k].substr(6,sepa_eng_end - 6);
		           memo_jap = photo_tbl[k].substr(sepa_eng_end+1,(sepa_jap_end+1 - sepa_eng_end - 2));
		           memo = photo_tbl[k].substr(0,sepa);
	   	           fMEh.rows[i].cells[j].innerText = seq + ";" + "\n" + memo_eng + "\n" + siz + ",  " + year + "\n" + edition  + "\n"  + tech + "\n" + price + "\n"+ "\n";
/* alert(fMEh.rows[i].cells[j].innerText); */
			  } 
			}
	 	    }
	 	}
 	   }


/* alert("ou: "+ src_fle); */
}
