<!--

/* *************************************************************
* set some global variables that will be checked later         *
***************************************************************/
	var emailAddress = /^.{1,}@{1}\S{1,}\.\w+/;
	/*var emailAddress = /^.{1,}@\w{1,}\.\w+/;
	/*var emailAddress = /^\w{1,}@\w{1,}\.\w+/;   // regular expression for email validation*/
	/* var emailAddress = /^\w{1,}@\w{1,}\.\w{2,3}$/;   // regular expression for email validation*/
	
/* *************************************************************
* Functions for validation and cookie stuff    *
***************************************************************/

function validate(frm)
	{
	results = isItBlank(frm);
	if (!results) return false;
			if (!emailAddress.test(document.QuickQuiz.fromemail.value))
			{
				alert("Please enter a valid email address");
				document.QuickQuiz.fromemail.focus();
				document.QuickQuiz.fromemail.select();
				return false;
			}				
	return true;
	}

function isItBlank(frm)
	{
	for(i=0; i<frm.elements.length; i++)// loop through form elements
		{
			if (frm.elements[i].value == '' || frm.elements[i].value == null || frm.elements[i].value == undefined)
			{
				if (frm.elements[i].name == 'fromemail')
				{				
					alert ('Please enter a value for the email field.');
					frm.elements[i].focus();
					return false;
				}
				else if (frm.elements[i].name == 'ph_areacode'||frm.elements[i].name == 'ph_prefix'||frm.elements[i].name == 'phone')
				{
					alert ('Please enter a phone number including area code.');
					frm.elements[i].focus();
					return false;
				}
				else
				{
					alert ('Please enter a value for the '
						+ frm.elements[i].name
						+ ' field.');
					frm.elements[i].focus();
					return false;
				}
			}
		}
	return true;
	}

function validEval(frm)
	{
	results = isItBlankEval(frm);
	if (!results) return false;
			if (!emailAddress.test(document.evaluation.fromemail.value))
			{
				alert("Please enter a valid email address");
				document.evaluation.fromemail.focus();
				document.evaluation.fromemail.select();
				return false;
			}				
	return true;
	}

function isItBlankEval(frm)
{
	results = isItBlankEvalRadio(frm);
	if (!results)return false;
	{
		for(i=0; i<frm.elements.length; i++)// loop through form elements
		{
			if (frm.elements[i].name == 'inspAddress'||frm.elements[i].name == 'name'||frm.elements[i].name == 'fromemail'||frm.elements[i].name == 'ph_areacode'||frm.elements[i].name == 'ph_prefix'||frm.elements[i].name == 'phone')
			{			
				if (frm.elements[i].value == '' || frm.elements[i].value == null || frm.elements[i].value == undefined)
				{
					if (frm.elements[i].name == 'fromemail')
					{				
						alert ('Please enter a value for the email field.');
						frm.elements[i].focus();
						return false;
					}
					else if (frm.elements[i].name == 'ph_areacode'||frm.elements[i].name == 'ph_prefix'||frm.elements[i].name == 'phone')
					{
						alert ('Please enter a phone number including area code.');
						frm.elements[i].focus();
						return false;
					}
					else if (frm.elements[i].name == 'inspAddress')
					{
						alert ('Please enter an Inspection Address.');
						frm.elements[i].focus();
						return false;
					}
					else
					{
						alert ('Please enter a value for the '
							+ frm.elements[i].name
							+ ' field.');
						frm.elements[i].focus();
						return false;
					}
				}
			}
		}
	}
return true;
}

function isItBlankEvalRadio(frm)
{
	propTypeChecked = false;
	agentChecked = false;

	for(i=0; i<frm.propType.length; i++)// loop through propType radio elements
	{
		if (frm.propType[i].checked == true)
		{
			propTypeChecked = true;				
		}
	}
	if (!propTypeChecked)
	{
		alert ('Please select a property type.');
		return false;
	}

	for(i=0; i<frm.agent.length; i++)// loop through agent radio elements
	{
		if (frm.agent[i].checked == true)
		{
			agentChecked = true;			
		}	
	}
	if (!agentChecked)
	{
		alert ('Please select whether you were the agent, seller or buyer in this transaction.');
		return false;
	}
	return true;
}


/* *************************************************************
* open forwardSite form  *
***************************************************************/
function openForwardSite()
{
	forwardSiteUrl = "http://www.beachtobayou.com/forwardSite.htm";
	
	if (document.location.href.indexOf("eforms2.pl") != -1)
	{
		forwardSiteUrl = "../forwardSite.htm";
	}


	window.open(forwardSiteUrl,'mywin',
      'height=390,width=465,toolbar=no') 
}


/* *************************************************************
* open archive details window  *
***************************************************************/
function openArchiveDetails(detailsURL)
{
	window.open(detailsURL,'mywin',
      'height=390,width=465,toolbar=yes') 
}

/* *************************************************************
* validate forwardSite form  *
***************************************************************/
function validateForward(frm)
{
	results = isItBlankForward(frm);
	if (!results) return false;
			if (!emailAddress.test(document.forwardSite.toemail.value))
			{
				alert("Please enter a valid email address for your friend.");
				document.forwardSite.toemail.focus();
				document.forwardSite.toemail.select();
				return false;
			}	
			if (!emailAddress.test(document.forwardSite.fromemail.value))
			{
				alert("Please enter a valid email address for you.");
				document.forwardSite.fromemail.focus();
				document.forwardSite.fromemail.select();
				return false;
			}
	return true;
}

/* *************************************************************
* Check if fields are blank for forwardSite form  *
***************************************************************/
function isItBlankForward(frm)
	{
	for(i=0; i<frm.elements.length; i++)// loop through form elements
		{
			if (frm.elements[i].value == '' || frm.elements[i].value == null || frm.elements[i].value == undefined)
			{
				if (frm.elements[i].name == 'toemail')
				{				
					alert ('Please enter a value for your friend\'s email.');
					frm.elements[i].focus();
					return false;
				}				
				else if (frm.elements[i].name == 'fromemail')
				{
					alert ('Please enter a value for your email.');
					frm.elements[i].focus();
					return false;
				}
			}
		}
	return true;
	}

/* *************************************************************
* Download Icon and Question icon  *
***************************************************************/

function sideBarIcons()
{	
	scriptPath = "http://www.beachtobayou.com/";
	
	if (document.location.href.indexOf("eforms2.pl") != -1)
	{
		scriptPath = "../";
	}
	
	var downloadImg = new Image();
	var questionImg = new Image();
	var orderImg = new Image();
	
	downloadImg.src = 'Images/downloadIcon.gif';
	questionImg.src = 'Images/questionIcon2.gif';	
	orderImg.src = 'Images/orderIcon.gif';

	document.write('<table border=\'0\' cellspacing=\'4\' cellpadding=\'0\'>',
						'<tr>',
							'<td align="center" valign="top" >',
								'<div class="bodyStyle2">',
								'<a href="');
						document.write(scriptPath); 
						document.write('orderInspection.html" class="plain" onMouseOver="orderImg.src = \'');
						document.write('Images/orderIconSelected.gif\'" onMouseOut="orderImg.src = \'');
						document.write('Images/orderIcon.gif\'">',
									'<img src="'); 
						document.write('Images/orderIcon.gif" border="0" align="left" name="orderImg" />',
									'</a></div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td align="center" valign="top" >',
								'<div class="bodyStyle2">',
								'<a href="');
						document.write(scriptPath); 
						document.write('reportLogin.htm" class="plain" onMouseOver="downloadImg.src = \'');
						document.write('Images/downloadIconSelected.gif\'" onMouseOut="downloadImg.src = \'');
						document.write('Images/downloadIcon.gif\'">',
									'<img src="');
						document.write('Images/downloadIcon.gif" border="0" align="left" name="downloadImg" />',
									'</a></div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td align="center" valign="top" >',
								'<div class="bodyStyle2">',
								'<a href="');
						document.write(scriptPath); 
						document.write('questionoftheweek.php" class="plain" onMouseOver="questionImg.src = \'');
						document.write('Images/questionIconSelected.gif\'" onMouseOut="questionImg.src = \'');
						document.write('Images/questionIcon2.gif\'">',
									'<img src="');
						document.write('Images/questionIcon2.gif" border="0" align="left" name="questionImg" />',
									'</a></div>',
							'</td>',
						'</tr>',
						'</table>'
	);
}


/* *************************************************************
* Contact Box   *
***************************************************************/

function contactBox()
{	
	scriptPath = "";
	
	if (document.location.href.indexOf("eforms2.pl") != -1)
	{
		scriptPath = "../";
	}
	
	document.write('<table border="0" cellpadding="0" bgcolor="#FFFFE6" cellspacing="0">',
		'<tr>',
			'<td colspan="3"><img src="');
			document.write(scriptPath); 
			document.write('Images/ContactBoxTop.gif" /></td>',
		'</tr>',
		'<tr>',
			'<td><img src="');
			document.write(scriptPath); 
			document.write('Images/ContactBoxLeft.gif" /></td>',
			'<td align="center" width="196" valign="top">',	
				'<span class="headings">',
					'<a href="mailto:info@beachtobayou.com" class="plain">Contact Us</a>',
				'</span>',									
					'<table border="0">',	
						'<tr>',
							'<td><div class="bodyStyle">Owner:</div>',
							'</td>',
							'<td><div class="bodyStyle">J.D. Johnson</div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td><div class="bodyStyle">Office:</div>',
							'</td>',
							'<td><div class="bodyStyle">(850)&nbsp;231-3313</div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td><div class="bodyStyle">',
								'Fax:</div>',
							'</td>',
							'<td><div class="bodyStyle">(866)&nbsp;830-8787</div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td><div class="bodyStyle">',
								'Toll&nbsp;Free:</div>',
							'</td>',
							'<td><div class="bodyStyle">(866)&nbsp;830-8686</div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td><div class="bodyStyle">',
								'Email:</div></td>',
							'<td><div class="smallLinks">',
								'<a href="mailto:info@beachtobayou.com">info@BeachToBayou.com</a><br /></div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td colspan="2"><div class="bodyStyle">',
								'<br />ASHI Member # 210908<br /><br />',
									'FABI Registered Professional <br />',
									' Inspector #RPI-0485',
								'<br /></div>',
							'</td>',
						'</tr>',
						'<tr>',
							'<td colspan="2"><div class="bodyStyleCenter">',
								'<hr />',
									'<a href="javascript:openForwardSite()">Forward This Site to a Friend</a>',
								'<br /></div>',
							'</td>',
						'</tr>',			
					'</table>',
			'</td>',
			'<td><img src="');
			document.write(scriptPath); 
			document.write('Images/ContactBoxRight.gif" /></td>',
		'</tr>',
		'<tr><td colspan="3"><img src="');
		document.write(scriptPath); 
		document.write('Images/ContactBoxBottom.gif" /></td>',					
		'</tr>',
	'</table>'	
	);
}




/* *************************************************************
* Header*
***************************************************************/
function header()
{
	scriptPath = "";
	
	if (document.location.href.indexOf("eforms2.pl") != -1)
	{
		scriptPath = "../";
	}
	
/* New header test*/	
	document.write('<table cellpadding="0" cellspacing="0" width="780" border="0" bgcolor="#FFFFE6">',
				'<tr><td background="');
	document.write(scriptPath);
	document.write('Images/grayPixel.gif" colspan="6"><img src="');
	document.write(scriptPath); 
	document.write('Images/grayPixel.gif" /></td></tr>',
				'<tr>',
					'<td align="left" bgcolor="#FFFFE6">',
							'<a href="');
	document.write(scriptPath); 
	document.write(					'http://www.beachtobayou.com/">',
							'<img src="');
	document.write(scriptPath); 
	document.write(			'Images/headerHouse.gif" width="94" height="117" alt="" border="0" />',
							'</a><br />',
					'</td>',
					'<td width = "650" align="left"><img src="');
	document.write(scriptPath);
	document.write('		Images/headerLogoText.gif" /></td>',					
					'<td align="right" valign="center" bgcolor="#FFFFE6">',
							'<a href="http://www.fabi.org" target="_new">',		
							'<img src="');
	document.write(scriptPath); 
	document.write(			'Images/FABIlogo2.gif" width="91" height="60" alt="" border="0" />',
							'</a>',
					'</td>',
					'<td align="right" valign="center">','<a href="http://www.ashi.org" target="_new">',		
							'<img src="');
	document.write(scriptPath); 
	document.write(			'Images/ASHIlogo2.gif" width="80" height="75" alt="" border="0" />',
							'</a>',
					'</td>',					
				'</tr>',
				'<tr><td background="');
	document.write(scriptPath); 
	document.write('Images/grayPixel.gif" colspan="6"><img src="');
	document.write(scriptPath); 
	document.write('Images/grayPixel.gif" /></td></tr>',
			'</table>');
}


/* *************************************************************
* Navigation*
***************************************************************/

function navigation()
{	
	var activeTab	=	0;
	var homeColor	=	1;
	var localColor	=	2;
	var inspColor	=	3;
	var accreditColor	=	4;
	var homeStyle	=	5;
	var localStyle	=	6;
	var inspStyle	=	7;
	var accreditStyle	=	8;
	var bar2Flag	=	9;
	var item1	=	10;
	var item1Width	=	11;
	var item1Href	=	12;
	var item2	=	13;
	var item2Width	=	14;
	var item2Href	=	15;
	var item3	=	16;
	var item3Width	=	17;
	var item3Href	=	18;
	var item4	=	19;
	var item4Width	=	20;
	var item4Href	=	21;
	var item5	=	22;
	var item5Width	=	23;
	var item5Href	=	24;
	var item6	=	25;
	var item6Width	=	26;
	var item6Href	=	27;
	var item7	=	28;
	var item7Width	=	29;
	var item7Href	=	30
	var item8	=	31;
	var item8Width	=	32;
	var item8Href	=	33;
	var activeColor =   34;
	var item1Target	=	35;
	var item2Target	=	36;
	var item3Target	=	37;
	var item4Target	=	38;
	var item5Target	=	39;
	var item6Target	=	40;
	var item7Target	=	41;
	var item8Target	=	42;
	var item1Style	=	43;
	var item2Style	=	44;
	var item3Style	=	45;
	var item4Style	=	46;
	var item5Style	=	47;
	var item6Style	=	48;
	var item7Style	=	49;
	var item8Style	=	50;

	var x = 0;
	var scriptPath = "http://www.beachtobayou.com/";

	var pageInstructions = [
		[	"home",
			"Images/navActive.gif",
			"Images/navInactive.gif",
			"Images/navInactive.gif",
			"Images/navInactive.gif",
			"activeNav",
			"links",
			"links",
			"links",
			"false",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"Images/navActive.gif",
			"", "", "", "", "", "", "", "",
			"navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2"],

		[	"local",
			"Images/navInactive.gif",
			"Images/navActive.gif",
			"Images/navInactive.gif",
			"Images/navInactive.gif",
			"links",
			"activeNav",
			"links",
			"links",
			"false",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"",	"",	"",
			"Images/navActive.gif",
			"", "", "", "", "", "", "", "",
			"navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2"],
		["inspection",
			"Images/navInactive.gif",
			"Images/navInactive.gif",
			"Images/navActive.gif",
			"Images/navInactive.gif",
			"links",
			"links",
			"activeNav",
			"links",
			"true",
			"&nbsp;sample&nbsp;reports&nbsp;&nbsp;", "", "http://www.beachtobayou.com/sampleReport.htm",
			"ashi&nbsp;standards&nbsp;&nbsp;", "", "http://www.beachtobayou.com/Documents/ASHI Standards.pdf",
			"question&nbsp;of&nbsp;the&nbsp;week&nbsp;&nbsp;", "", "http://www.beachtobayou.com/questionoftheweek.php",
			"evaluation&nbsp;&nbsp;", "", "http://www.beachtobayou.com/evaluation.htm",
			"&nbsp;reviews&nbsp;&nbsp;", "", "http://www.beachtobayou.com/pastEvals.htm",
			"download&nbsp;reports&nbsp;&nbsp;", "", "http://www.beachtobayou.com/reportLogin.htm",
			"question&nbsp;archive&nbsp;&nbsp;", "", "http://www.beachtobayou.com/qowArchive.php",
			"order&nbsp;inspection&nbsp;&nbsp;", "", "http://www.beachtobayou.com/orderInspection.html",
			"Images/navActive.gif",
			"", "_new", "", "", "", "", "", "",
			"navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2"],

			["accredit",
			"Images/navInactive.gif",
			"Images/navInactive.gif",
			"Images/navInactive.gif",
			"Images/navActive.gif",
			"links",
			"links",
			"links",
			"activeNav",
			"true",
			"ashi standards", "", "http://www.beachtobayou.com/Documents/ASHI Standards.pdf",			
			"ashi.org", "12%", "http://www.ashi.org",
			"fabi.org", "12%", "http://www.fabi.org",
			"", "12%", "",
			"", "12%", "",
			"", "12%", "",
			"", "12%", "",
			"", "12%", "",
			"Images/navActive.gif",
			"_new", "_new", "_new", "", "", "", "", "",
			"navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2", "navLinks2"]
	]	

if (document.location.href.indexOf("index.htm") != -1)
{
	x=0;
	pageInstructions[x][homeStyle]= "activeNavSelected";
}

if (document.location.href.indexOf("localInfo.htm") != -1)
{
	x=1;
	pageInstructions[x][localStyle]= "activeNavSelected";
}

if (document.location.href.indexOf("eforms2.pl") != -1||
	document.location.href.indexOf("evaluation.htm") != -1||
	document.location.href.indexOf("thankyou.htm") != -1||
	document.location.href.indexOf("inspInfo.htm") != -1||
	document.location.href.indexOf("pastEvals.htm") != -1||
	document.location.href.indexOf("reportLogin.htm") != -1||
	document.location.href.indexOf("reportLogin.php") != -1||
	document.location.href.indexOf("sampleReport.htm") != -1||
	document.location.href.indexOf("qowArchive.php") != -1||
	document.location.href.indexOf("archiveDetails.php") != -1||
	document.location.href.indexOf("orderInspection.html") != -1||
	document.location.href.indexOf("questionoftheweek.php") != -1)
{
	x=2;
	if (document.location.href.indexOf("eforms2.pl") != -1)
	{	
		scriptPath="../";
		for (i=0; i<pageInstructions.length ; i++)
		{
			pageInstructions[i][homeColor] = "../" + pageInstructions[i][homeColor];
			pageInstructions[i][localColor] = "../" + pageInstructions[i][localColor];
			pageInstructions[i][inspColor] = "../" + pageInstructions[i][inspColor];
			pageInstructions[i][accreditColor] = "../" + pageInstructions[i][accreditColor];
			pageInstructions[i][item1Href] = "../" + pageInstructions[i][item1Href];
			pageInstructions[i][item2Href] = "../" + pageInstructions[i][item2Href];
			pageInstructions[i][item3Href] = "../" + pageInstructions[i][item3Href];
			pageInstructions[i][item4Href] = "../" + pageInstructions[i][item4Href];
			pageInstructions[i][item5Href] = "../" + pageInstructions[i][item5Href];
			pageInstructions[i][activeColor] = "../" + pageInstructions[i][activeColor];
		}
	}
	if (document.location.href.indexOf("questionoftheweek.php") != -1)
	{
		pageInstructions[x][item3Style]= "activeNavLinks2";
	}
	if (document.location.href.indexOf("sampleReport.htm") != -1)
	{
		pageInstructions[x][item1Style]= "activeNavLinks2";
	}
	if (document.location.href.indexOf("evaluation.htm") != -1)
	{
		pageInstructions[x][item4Style]= "activeNavLinks2";
	}
	if (document.location.href.indexOf("pastEvals.htm") != -1)
	{
		pageInstructions[x][item5Style]= "activeNavLinks2";
	}
	if (document.location.href.indexOf("reportLogin.htm") != -1||document.location.href.indexOf("reportLogin.php") != -1)
	{
		pageInstructions[x][item6Style]= "activeNavLinks2";
	}
	if (document.location.href.indexOf("inspInfo.htm") != -1)
	{
		pageInstructions[x][inspStyle]= "activeNavSelected";
	}
	if (document.location.href.indexOf("qowArchive.php") != -1)
	{
		pageInstructions[x][item7Style]= "activeNavLinks2";
	}
	if (document.location.href.indexOf("archiveDetails.php") != -1)
	{
		pageInstructions[x][item7Style]= "activeNavLinks2";
	}
	if (document.location.href.indexOf("orderInspection.html") != -1)
	{
		pageInstructions[x][item8Style]= "activeNavLinks2";
	}
}

if (document.location.href.indexOf("accreditations.htm") != -1)
{
	x=3;
	pageInstructions[x][accreditStyle]= "activeNavSelected";
}


	document.write('<table width="780" cellspacing="0" cellpadding="0" border="0">',
					'<td background="');

	document.write(pageInstructions[x][homeColor]);
	document.write('" align="center" width="22%">');
	document.write('<a href="');
	document.write('index.html" class="');
		document.write(pageInstructions[x][homeStyle]);
		document.write('">&nbsp;&nbsp;home&nbsp;&nbsp;</a>&nbsp;&nbsp;&nbsp;',		
						'</td>',
					'<td background="');

	document.write(pageInstructions[x][localColor]);
	document.write('" align="center" width="22%">');
	document.write('<a href="');
	document.write('localInfo.htm" class="');
			document.write(pageInstructions[x][localStyle]);	document.write('">&nbsp;local&nbsp;information&nbsp;</a>&nbsp;&nbsp;&nbsp;',
					'</td>',
					'<td background="');

	document.write(pageInstructions[x][inspColor]);
	document.write('" align="center" width="22%">');
		document.write('<a href="');
		document.write(scriptPath);
		document.write('inspInfo.htm" class="');
		document.write(pageInstructions[x][inspStyle]);
		document.write('">&nbsp;inspection&nbsp;info&nbsp;</a>&nbsp;&nbsp;',
					'</td>',
					'<td align="center" width="34%" background="');

	document.write(pageInstructions[x][accreditColor]);
	document.write('" align="center" width="22%">');
			document.write('<a href="');
			document.write(scriptPath);
			document.write('accreditations.htm" class="');
			document.write(pageInstructions[x][accreditStyle]);	document.write('">&nbsp;affiliations&nbsp;&&nbsp;accreditations&nbsp;</a>&nbsp;&nbsp;',	
				'</tr>');
			

if (pageInstructions[x][bar2Flag]=="true")
	{
		if (document.location.href.indexOf("eforms2.pl") != -1)
		{
			scriptPath = "../";
		}		
					document.write(
					'<tr height="5">',
						'<td width="22%"');
						if (x==0)
						{
							document.write(' background="');
							document.write(scriptPath);
							document.write('Images/navActive.gif" ');
						}					
					document.write('></td>',
						'<td width="22%"');
						if (x==1)
						{
							document.write(' background="');
							document.write(scriptPath);
							document.write('Images/navActive.gif" ');
						}					
					document.write('></td>',
						'<td width="22%"');

						if (x==2)
						{
							document.write(' background="');
							document.write(scriptPath);
							document.write('Images/navActive.gif" ');
						}
					
					document.write('></td>',
						'<td');

						if (x==3)
						{
							document.write(' background="');
							document.write(scriptPath);
							document.write('Images/navActive.gif" ');
						}
					
					document.write('></td>',
					'</tr>',
				'</table>',
				'<table width="780" border="0" cellspacing="0" cellpadding="0">',
				'<tr height="16">',
					'<td width="');
					document.write(pageInstructions[x][item1Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');
					
					document.write('<a href="');
					document.write(pageInstructions[x][item1Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item1Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item1Style]);
					document.write('">');
					document.write(pageInstructions[x][item1]);
					document.write('</a>',
					'</td>',
					'<td width="');

					document.write(pageInstructions[x][item2Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');					
					document.write('<a href="');
					document.write(pageInstructions[x][item2Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item2Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item2Style]);
					document.write('">');
					document.write(pageInstructions[x][item2]);
					document.write('</a>',
					'</td>',

					'<td width="');
					document.write(pageInstructions[x][item3Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');					
					document.write('<a href="');
					document.write(pageInstructions[x][item3Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item3Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item3Style]);
					document.write('">');
					document.write(pageInstructions[x][item3]);
					document.write('</a>',
						'</div>',
					'</td>',

					'<td width="');
					document.write(pageInstructions[x][item4Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');					
					document.write('<a href="');
					document.write(pageInstructions[x][item4Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item4Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item4Style]);
					document.write('">');
					document.write(pageInstructions[x][item4]);
					document.write('</a>',
					'</td>',

					'<td width="');
					document.write(pageInstructions[x][item5Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');					
					document.write('<a href="');
					document.write(pageInstructions[x][item5Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item5Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item5Style]);
					document.write('">');
					document.write(pageInstructions[x][item5]);
					document.write('</a>',
					'</td>',


					'<td width="');
					document.write(pageInstructions[x][item6Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');					
					document.write('<a href="');
					document.write(pageInstructions[x][item6Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item6Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item6Style]);
					document.write('">');
					document.write(pageInstructions[x][item6]);
					document.write('</a>',
					'</td>',


					'<td width="');
					document.write(pageInstructions[x][item7Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');					
					document.write('<a href="');
					document.write(pageInstructions[x][item7Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item7Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item7Style]);
					document.write('">');
					document.write(pageInstructions[x][item7]);
					document.write('</a>',
					'</td>',


					'<td width="');
					document.write(pageInstructions[x][item8Width]);
					document.write('" background="');
					document.write(pageInstructions[x][activeColor]);
					document.write('" >');					
					document.write('<a href="');
					document.write(pageInstructions[x][item8Href]);
					document.write('" target="');
					document.write(pageInstructions[x][item8Target]);
					document.write('" class="');
					document.write(pageInstructions[x][item8Style]);
					document.write('">');
					document.write(pageInstructions[x][item8]);
					document.write('</a>',
					'</td>',

				'</tr>',
				'<tr height="1">',
					'<td colspan="8" width="100%" background="');
				document.write(scriptPath); 
				document.write('Images/grayPixel.gif"><img src="');
				document.write(scriptPath); 
				document.write('Images/grayPixel.gif" />',
					'</td>',
				'</tr>',
				'</table>');
	}
else
	{
	document.write(
			'</table>',
			'<table width="780" border="0" cellspacing="0" cellpadding="0">',
				'<tr height="1">',
					'<td background="');
				document.write(scriptPath); 
				document.write('Images/grayPixel.gif"><img src="');
				document.write(scriptPath); 
				document.write('Images/grayPixel.gif" />',
					'</td>',
				'</tr>',
			'</table>');
	}

}

function footer()
{
	var today=new Date();
	var nyear=today.getYear();
	scriptPath = "http://www.beachtobayou.com/";
	
	if (nyear<=99)
  	nyear= "19"+nyear;
  	
  	if ((nyear>99) && (nyear<2000))
 	nyear+=1900;
	
	
		
		document.write('<p />');
		document.write('copyright &copy; ');
		document.write(nyear);
		document.write(' Beach to Bayou Property Inspections</div><p /><p />');
}


//-->