function assoHairetu(fol_name,assomem,url,urllink,prolink,annual){

	this.fol_name = fol_name
	this.assomem = assomem
	this.url = url
	this.urllink = urllink
	this.prolink = prolink
	this.annual = annual
}
//
function assomemGo(){

	var count=0;
	var co_f=0;

//----- ↓ここにAssociate Membership数を入力します

	var max=24;

//-------------------------------------------

	var i;
	var j;
	var k;
	var ichi1;
	var ichi2;
	var lang;
	var f_nameDB=new Array();
	var f_countDB=new Array();

	for (i=1;i <= max;i++) {
		document.write("<tr>");

// Associate Member処理------------------------
		if (AssomemDB[i].urllink != "#") {
		document.write("<td class='pt11member'>"+AssomemDB[i].assomem+"&nbsp;&nbsp;&nbsp;<span class='pt9member'><a href='"+AssomemDB[i].urllink+"' target='_blank'>"+AssomemDB[i].url+"</a></span></td>");
		} else {
		document.write("<td class='pt11member'>"+AssomemDB[i].assomem+"&nbsp;&nbsp;&nbsp;<span class='pt9member'>"+AssomemDB[i].url+"</span></td>");
		}
		
// Profile Plan処理------------------------

	count=parseFloat(AssomemDB[i].prolink.charAt(0));
	if (20 <= count * 10) {

// 複数ファイルがある場合の処理
		// "/"の位置を求める
		k = i;
		co_f = 0;
		for (j=1;j <= count+1;j++) {
			f_countDB[j] = AssomemDB[k].prolink.indexOf("/",co_f);
			co_f = f_countDB[j] + 1;
		}

		// ファイル名を取り出す
		for (j=1;j <= count;j++) {
			ichi1 = f_countDB[j]+1;
			ichi2 = f_countDB[j+1];
			f_nameDB[j] = AssomemDB[k].prolink.substring(ichi1,ichi2);
		}

		// ブラウザに出力
		document.write("<td align='center' class='pt9member'>")
		for (j=1;j <= count;j++) {
		document.write("<a href='htmls/"+AssomemDB[k].fol_name+"/ProfilePlan/"+f_nameDB[j]+"' target='_self'>&#9633;</a>&nbsp;");
		}
		document.write("</td>");
	} else {
// １ファイルの場合
		if (AssomemDB[i].prolink != "#") {
		document.write("<td align='center' class='pt9member'><a href='htmls/"+AssomemDB[i].fol_name+"/ProfilePlan/"+AssomemDB[i].prolink+"' target='_self'>&#9633;</a></td>");
		} else {
		document.write("<td align='center' class='pt9member'>&#9633;</td>");
		}
	}

// Annual Report処理------------------------

	count=parseFloat(AssomemDB[i].annual.charAt(0));
	if (20 <= count * 10) {

// 複数ファイルがある場合の処理
		// "/"の位置を求める
		k = i;
		co_f = 0;
		for (j=1;j <= count+1;j++) {
			f_countDB[j] = AssomemDB[k].annual.indexOf("/",co_f);
			co_f = f_countDB[j] + 1;
		}

		// ファイル名を取り出す
		for (j=1;j <= count;j++) {
			ichi1 = f_countDB[j]+1;
			ichi2 = f_countDB[j+1];
			f_nameDB[j] = AssomemDB[k].annual.substring(ichi1,ichi2);
		}

		// ブラウザに出力
		document.write("<td align='center' class='pt9member'>")
		for (j=1;j <= count;j++) {
		document.write("<a href='htmls/"+AssomemDB[k].fol_name+"/AnnualReport/"+f_nameDB[j]+"' target='_self'>&#9633;</a>&nbsp;");
		}
		document.write("</td>");
	} else {
// １ファイルの場合
		if (AssomemDB[i].annual != "#") {
		document.write("<td align='center' class='pt9member'><a href='htmls/"+AssomemDB[i].fol_name+"/AnnualReport/"+AssomemDB[i].annual+"' target='_self'>&#9633;</a></td>");
		} else {
		document.write("<td align='center' class='pt9member'>&#9633;</td>");
		}
	}

	}
		document.close();
}



//----------------------------------------------------------
AssomemDB=new Array();
// 差込済みデータを、以下にペースト
AssomemDB[1]=new assoHairetu ("5103","Healthy Cities Onkaparinga","URL","http://www.softcon.com.au/nhc","ProfilePlan_2002_1.pdf","HCNoarlunga_annualreport2002_2003.pdf")
AssomemDB[2]=new assoHairetu ("5202","Tainan Healthy City Association","URL","http://www.healthycities.ncku.edu.tw/eng/index.htm","ProfilePlan_2005_1.pdf","#")
AssomemDB[3]=new assoHairetu ("5203","Daan Health Promotion Association, Taipei","URL","http://www.daan-healthy-city-org.tw","Daan_CityProfile.pdf","#")
AssomemDB[4]=new assoHairetu ("5204","Wong Tai Sin District Healthy & Safe City Company Ldt., HK SAR","","#","Wong Tai Sin District.pdf","#")
AssomemDB[5]=new assoHairetu ("5205","Shilin Health Promotion Association","URL","http://www.shilin-healthy-city-taipei.org.tw/","Shilin_ProfilePlan.pdf","#")
AssomemDB[6]=new assoHairetu ("5206","Beitou Health Promotion Association","URL","http://www.beitou-healthycity.org.tw/","BeitouProfile.pdf","#")
AssomemDB[7]=new assoHairetu ("5207","Hualien County Health Promotion Association","URL","http://healthycity.tcu.edu.tw/","HualienCityProfile.pdf","#")
AssomemDB[8]=new assoHairetu ("5208","Miaoli Healthy City Association","URL","http://healthycity.miaoli.gov.tw/","#","#")
AssomemDB[9]=new assoHairetu ("5209","Tamsui Healthy City Association","URL","http://www.tamsui.gov.tw/","#","#")
AssomemDB[10]=new assoHairetu ("5101","Department of Public Health, Flinders University","","#","#","#")
AssomemDB[11]=new assoHairetu ("5201","Centre for Health Education and Health Promotion, Chinese University of Hong Kong","URL","http://www.cuhk.edu.hk/med/hep","ProfilePlan_2002_1.pdf","#")
AssomemDB[12]=new assoHairetu ("5301","Health Promotion/International Health, Tokyo Medical and Dental University","","#","ProfilePlan_2003_1.pdf","#")
AssomemDB[13]=new assoHairetu ("5104","Centre for Environment and Population Health, Faculty of Environmental Sciences, Griffith University, Brisbane, Queensland","","#","#","#")
AssomemDB[14]=new assoHairetu ("5105","Deakin University, Faculty of Health, Medicine, Nursing and Behavioural Sciences, Victoria","URL","http://deakin.edu.au/hbs/hs","#","#")
AssomemDB[15]=new assoHairetu ("5502","Healthy Campus Program, Universiti Sains Malaysia, Penang","URL","http://www.usm.my","#","#")
AssomemDB[16]=new assoHairetu ("5401","Healthy City Research Center, Yonsei University","URL","http://healthycity.yonsei.ac.kr","#","#")
AssomemDB[17]=new assoHairetu ("5402","Center for Health Promotion & Development, Seoul National University, School of Public Health","","#","#","#")
AssomemDB[18]=new assoHairetu ("5302","Department of Public Health, Fukuoka University School of Medicine","","#","#","#")
AssomemDB[19]=new assoHairetu ("5501","National Coordinator of Healthy Cities, Malaysia","","#","#","#")
AssomemDB[20]=new assoHairetu ("5701","Center For Health Development for Metro Manila (CHD-MM)","","#","MetroManila_ProfilePlan.pdf","#")
AssomemDB[21]=new assoHairetu ("5503","Health Promotion Board","URL","http://www.hpb.gov.sg","#","HPBCompleteAR05_06.pdf")
AssomemDB[22]=new assoHairetu ("5504","General Electric Company ASEAN Region","URL","http://www.ge.com","GE_Profile.pdf","#")
AssomemDB[23]=new assoHairetu ("5210","Yuen Long District Healthy City Association Limited.","","#","#","#")
AssomemDB[24]=new assoHairetu ("5505","Negeri Sembilan State Health Department","URL","http://jknns.moh.gov.my","#","#")

