function wedArray(length)
{
	var i = 0;
	this.length2 = length;
	for (i=0; i<length; i++)
	{
		this[i] = 0;
	}
	return this;
}

function addDate(date1,caller1,email1,caller2,email2,notes)
{
	this.date1 = date1;
	this.caller1 = caller1;
	this.email1 = email1;
	this.caller2 = caller2;
	this.email2 = email2;
	this.notes = notes;
	return this;
}


var totWed = 0;
var wed = wedArray(totWed);

var dr = "Dale Rempert";
var dale = "drempert@ix.netcom.com";
var ma = "Marc Airhart";
var marc = "marcairhart@grandecom.net";
var cr = "Chuck Roth";
var chuck = "croth@austin.rr.com";
var rm = "Rich MacMath";
var kt = "Keith Tuxhorn";
var keith = "dancekt@austin.rr.com";
var as = "Ann Sarmiento";
var ann = "ajsarmiento@gmail.com";
var month_old = "January";
var month1 = "February";
var month2 = "March";
var month3 = "April";

wed[totWed++] = new addDate("Date", "Caller(s)", "email","caller2","email2", "Notes");

wed[totWed++] = new addDate(month_old + " 18",ma,marc,"","","");
wed[totWed++] = new addDate(month_old + " 25",kt,keith,"","","");

wed[totWed++] = new addDate(month1 + " 1",cr,chuck,"","","");
wed[totWed++] = new addDate(month1 + " 8",rm,"","","","");
wed[totWed++] = new addDate(month1 + " 15",dr,dale,"","","");
wed[totWed++] = new addDate(month1 + " 22",as,ann,"","","");
wed[totWed++] = new addDate(month1 + " 29",ma,marc,"","","");

wed[totWed++] = new addDate(month2 + " 7",kt,keith,"","","");
wed[totWed++] = new addDate(month2 + " 14",rm,"","","","");
wed[totWed++] = new addDate(month2 + " 21",dr,dale,"","","");
wed[totWed++] = new addDate(month2 + " 28",as,ann,"","","");

wed[totWed++] = new addDate(month3 + " 4",cr,chuck,"","","");
wed[totWed++] = new addDate(month3 + " 11",ma,marc,"","","");
wed[totWed++] = new addDate(month3 + " 18",kt,keith,"","","");
wed[totWed++] = new addDate(month3 + " 25","Open Mike","","","","Keith or Marc hosts");



function title()
{
	document.writeln('<h1><font size="6">' + month1 + '-' + month3 + '</font></h1>');
}

function wedTable()
{
	document.write('<table border="1" cellpadding="5" align="center" width="100%">');
	for (x=0; x<totWed; x++)
	{
		document.write('<tr>');
		if (wed[x].date1 != 'Date')
		{

			document.write('<td>' + wed[x].date1 + '</td>');
			if (wed[x].email1 != "")
			{				
				document.write('<td><a href=\"mailto:' + wed[x].email1 + '\">' + wed[x].caller1 + '</a>');
			}			
			else
			{					
				document.write('<td>' + wed[x].caller1);
			}
	
			if (wed[x].caller2 != "")
			{								
				if(wed[x].email2 != "")
				{
					document.write(' & <a href=\"mailto:' + wed[x].email2 + '\">' + wed[x].caller2 + '</a>');
				}
				else
				{								
					document.write(' & ' + wed[x].caller2);
				}
			}
			document.write('</td>');
			if(wed[x].notes != "")
			{						
				document.write('<td>' + wed[x].notes);
			}
			else
			{				
				document.write('<td>&nbsp;');
			}
			document.write('</td>');

		}
		else
		{		
			document.write('<th width="20%">' + wed[x].date1 + '</th>');
			document.write('<th width="40%">' + wed[x].caller1 + '</th>');
			document.write('<th width="40%">' + wed[x].notes + '</th>');

		}
		document.write('</tr>');
	}
	document.write('</table>');
}

function address()
{
	document.write('<address><font face="Comic Sans MS" size="-1">Sharon Rempert, ');
	document.write('<a href="mailto:sharonrempert@gmail.com">sharonrempert@gmail.com</a><br />');
	document.write('Last updated ' + document.lastModified + ' <br />\&#169;Sharon Rempert. All rights reserved.</font></address>');

}


