var EmailList  = new Array();
var EmailListLength = 18;
var OutString = " ";
var newsNames 	= new Array(
		

		
new Array("jean-louis.bal@ademe.fr","France39226.html ","Mr Jean-louis Bal - Agence de L&#39;environnement et de la Maitrise de L&#39;energie - France")
,
new Array("","Malta7613.html "," George Cassar - Water Services Corporation - Malta")
,
new Array("","Cyprus7611.html ","Mr Andreas Christodoulides - MINISTRY OF AGRICULTURAL AND NATURAL RESOURCES - Cyprus")
,
new Array("ndercas1@auadec.aua.gr","Greece39224.html ","Dr Nicholas Dercas - Agricultural University of Athens - Greece")
,
new Array("eric.fletcher@sunderland.ac.uk","UK7743.html ","Dr. Eric Fletcher - University of Sunderland - UK")
,
new Array("eta.fi@etaflorence.it","Italy39225.html ","Mrs Angela Grassi - eta - Energia, Trasporti, Agricoltura - Italy")
,
new Array("wip@wip-munich.de ","Germany39093.html ","Dr Peter Helm - Wirtschaft Und Infrastruktur Gmbh Und Co Planungs Kg</b> -  Germany")
,
new Array("elpida@ucy.ac.cy","Cyprus7610.html ","Mrs Elpida Karavnou - University of Cyprus - Cyprus")
,
new Array("axm@cs.um.edu.mt","Malta7612.html ","Mr Alex Mifsud - University of Malta - Malta")
,
new Array("","Jordan39228.html ","Mr Khaled Murad - Consolidated Consultants - Engineering and Environment - Jordan")
,
new Array("rejeb.nejib@iresa.agrinet.tn","Tunisia39159.html ","Dr Mohamed Nejib Rejeb - Institut National de Recherches En Genie Rural, Eaux et forets - Tunisia")
,
new Array("emanuela.rossi@jrc.it","Italy39227.html ","Dr Emanuela Rossi - Commission of The European Communities - Italy")
,
new Array("","Jordan39231.html ","Dr Mohammed Saidam - The Royal Scientific Society - Jordan")
,
new Array("phg@netvision.net.il","Palestine39230.html ","Dr Abdelrahman Tamimi - Palestinian Hydrology Group for Water and Environmental Resources development - Palestine")
,
new Array("etanberk@seyas.com.fr","Turkey39229.html ","Professor Ergin Tanberk - Seyas Sey Architects, Engineering, Consultants, Inc. - Turkey")


);


function genBoxes(name) {
	var boxStr = '';
	var arrObj = eval(name);
	for (var i = 0; i < arrObj.length; i++) {
	   if (arrObj[i][0] == '') {
		boxStr += '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + 
			 '<a target="main" href=" ' +arrObj[i][1] + '" class="nounderline">' +   arrObj[i][2] + '</a>' + '<BR>'
		}
	   else {
		boxStr += '<INPUT TYPE=CHECKBOX NAME="' + name + i + '" VALUE="' + arrObj[i][0] + '"> ' +
			 '<a target="main" href=" ' +arrObj[i][1] + '" class="nounderline">' +   arrObj[i][2] + '</a>' + '<BR>'
	   }
	}
	return boxStr;
	}


function resetImage() { 
	EmailList = 'mailto: '
	}

function setMails(formObj) {
	var cnt = 0;
	var SubjectLine = " ";
	SubjectLine = formObj[formObj.elements.length-5].value;
	var EmailIDX = 0;
	EmailList[EmailIDX] = 'mailto: ';
	for (var i = 0; i < formObj.length; i++) {
	if (formObj[i].type == "checkbox" && formObj[i].checked) {
		if (cnt >= EmailListLength ) {
			cnt = 0;
			EmailIDX = EmailIDX + 1;
			EmailList[EmailIDX]= 'mailto: ';
			}
		EmailList[EmailIDX] += formObj[i].value + ', ';
		cnt = cnt + 1;
		}
	}
	if (EmailList.length == 1) {
		self.location.href = EmailList[0];
	}
	if (EmailList.length > 1) {
		OutString += '<p><font face="Arial" size="2">' +
		 	'The Send List for an email has been limited to ' + EmailListLength +
			' and your mail split up into batches. <br> Copy the body ' + 
			'of your first mail and paste it to the listed batches.</font></p>';
		for (var i = 0; i < EmailList.length; i++) {
			OutString += '<p><a href="' + EmailList[i] + '?Subject=' + SubjectLine + '">Send mail to Batch' +
					  i + '</a></p>';
		}
		document.writeln(OutString);
	}
}

function setAllMails(formObj) {
	var cnt = 0;
	var SubjectLine = " ";
	SubjectLine = formObj[formObj.elements.length-5].value;
	var EmailIDX = 0;
	EmailList[EmailIDX] = 'mailto: ';
	for (var i = 0; i < formObj.length; i++) {
	if (formObj[i].type == "checkbox" ) {
		if (cnt > EmailListLength ) {
			cnt = 0;
			EmailIDX = EmailIDX + 1;
			EmailList[EmailIDX]= 'mailto: ';
			}
		EmailList[EmailIDX] += formObj[i].value + ', ';
		cnt = cnt + 1;
		}
	}
	if (EmailList.length == 1) {
		self.location.href = EmailList[0];
	}
	if (EmailList.length > 1) {
		OutString += '<p><font face="Arial" size="2">' +
		 	'The Send List for an email has been limited to ' + EmailListLength +
			' and your mail split up into batches. <br> Copy the body ' + 
			'of your first mail and paste it to the listed batches.</font></p>';
		for (var i = 0; i < EmailList.length; i++) {
			OutString += '<p><a href="' + EmailList[i] + '?Subject=' + SubjectLine + '">Send mail to Batch' +
					  i + '</a></p>';
		}
		document.writeln(OutString);
	}
}
