// Javascript for tsunami1.html

//-- CruiseRow ----------------------------------------------------------------

function cruiseRow(aDate,ship,PI,country,place,equipment,status,anchor) {

	returnAnchor = anchor.substring(1,anchor.length);

	more = '';
	if (anchor != '') more ='more';
	returnAnchor = anchor.substring(1,anchor.length);
	document.write('<tr>');
	document.write('<td width="12%" class=\"opportunityTd printDate\">'+ aDate +'</td>');
	document.write('<td class=\"opportunityTd \"><a name=' + returnAnchor + '></a>'+ ship +'</td>');
	document.write('<td class=\"opportunityTd speaker\"><a name=' + returnAnchor + '></a>'+ PI +'</td>');
	document.write('<td class=\"opportunityTd address\">'+ country +'</td>');
	document.write('<td class=\"opportunityTd address\">'+ place +'</td>');
	document.write('<td class=\"opportunityTd \">'+ equipment +'</td>');
	document.write('<td class=\"opportunityTd \">'+ status +'</td>');
	document.write('<td class=\"opportunityTd \"><a href=return2.php' + anchor + '>'+ more +'</a></td>');
	document.write('</tr>');
}


//-- MeetingRow ---------------------------------------------------------------

function meetingRow(aDate,title,place,anchor) {
	more = '';
	if (anchor != '') more ='more';
	returnAnchor = anchor.substring(1,anchor.length);
	document.write('<tr>');
	document.write('<td class=\"opportunityTd printDate\">'+ aDate +'</td>');
	document.write('<td class=\"opportunityTd\"><a name=' + returnAnchor + '></a>'+ title +'</td>');
	document.write('<td class=\"opportunityTd address\">'+ place +'</td>');
	document.write('<td class=\"opportunityTd\"><a href=return2.php' + anchor + '>'+ more +'</a></td>');
	document.write('</tr>');
}


//-- MoreText -----------------------------------------------------------------

// Upon selecting 'more' the table opens out to include extra text
// Whether the extra information appears is determined by the # anchor
// on the Url.

function moreText(anchor,returnAnchor,text)
{
	if (document.URL.search(anchor) != -1)
	{
		document.write('<tr>');
		document.write('<td colspan=\"8\">' + text +'<p class=\"alignRight\"><a href=return2.php' + returnAnchor + '><img src="../images/less.gif"></a></td>');		
		document.write('</tr>');
	}
}


