﻿// JavaScript Document

function writeReport(){
var htm = '';
var i = 0;
var certs = new Array(
	"DZE-14E 2011||report/DZE-14E_2011.pdf",
	"ER1 2011||report/ER1_2011.pdf",
	"ER3(ER2) 2011||report/ER3(ER2)_2011.pdf",
	"ER6D 2010||report/ER6D_2010.pdf",
	"FT160 2011||report/FT160_2011.pdf",
	"FJ125 2010||report/FJ125_2010.pdf",
	"FJ160(中置) 2010||report/FJ160_2010.pdf",
	"FYJ180 2010||report/FYJ180_2010.pdf",
	"FYJ200 2010||report/FYJ200_2010.pdf",
	"FYJ245 2010||report/FYJ245_2010.pdf",
	"FZD10 2011||report/FZD10_2011.pdf",
	"FZD12 2011||report/FZD12_2011.pdf",
	"GTN1 2011||report/GTN1_2011.pdf",
	"GTN2 2011||report/GTN2_2011.pdf",
	"GTN3 2010||report/gtn3_2010.pdf",
	"GTS 2010||report/gts_2010.pdf",
	"GTW2 2011||report/GTW2_2011.pdf",
	"GTW3 2011||report/GTW3_2011.pdf",
	"GTW5 2011||report/GTW5_2011.pdf",
	"GTW6 2011||report/GTW6_2011.pdf",
	"GTW7 2010||report/gtw7_2010.pdf",
	"GTW8 2011||report/GTW8_2011.pdf",
	"PMG140 2011||report/PMG140_2011.pdf",
	"PMG160(带永磁同步电机) 2011||report/PMG160_2011.pdf",
	"PMG160(带异步电机) 2011||report/PMG160_B_2011.pdf",
	"PMG200 2011||report/PMG200_2011.pdf",
	"PMG240 2011||report/pmg240_2011.pdf",
	"PZ300B CE 2010||report/PZ300B_CE_2010.pdf",
	"PZD140 2011||report/PZD140_2011.pdf",
	"PZD180 2011||report/PZD180_2011.pdf",
	"PZD220 2010||report/PZD220_2010.pdf",
	"PZD360 CE 2010||report/PZD360_CE_2010",
	"PZD360 2010||report/PZD360_2010.pdf",
	"SF110 2010||report/SF110_2010.pdf",
	"SFJ135 2010||report/sfj135_2010.pdf",
	"SPZ1600 2010||report/SPZ1600_2010.pdf",
	"SPZ300 2011||report/SPZ300_2011.pdf",
	"SPZ800 2011||report/SPZ800_2011.pdf",
	"VM 2010||report/VM_2010.pdf",
	"YJ110 2011||report/YJ110_2011.pdf",
	"YJ140 2010||report/YJ140_2010.pdf",
	"YJ180 2010||report/YJ180_2010.pdf",
	"YJ200 2011||report/yj200_2011.pdf",
	"YJ240B 2010||report/YJ240B_2010.pdf",
	"YJ245D 2010||report/YJ245D_2010.pdf",
	"YJ320 2010||report/YJ320_2010.pdf"
);

var db = new Array();
		
	if(certs.length > 0){
		for(i = 0; i < certs.length; i++){
			db = certs[i].split("|");
			htm += '<table border="0" cellspacing="0" cellpadding="0" style="margin-top: 6px; margin-botton: 8px;"><tr>';
			htm += '<td width="250" style="border: solid 1px #999999; text-align: center; font-size: 12px; line-height: 100%;">';
			if(db[1].length > 0){
					htm += "<a href=\"";
					htm += db[1];
					htm += "\">";
					htm += db[0];
					htm += "</a>";
				}else{
					htm += db[0];
				}
			htm += '</td><td width="100"><a href="javascript:getPDF(\'';
			htm += db[2];
			htm += '\');"><img src="../images/pdf_down_file.gif" alt="Download"  border="0" /></a></td>';
			htm += '</tr></table>';
			}			
		}
	document.write(htm);
}
