function sendComments() {
    if (document.commentsForm.commentsTextArea.value.length == 0) {
        alert('Please fill in the comments.');
        return;
    }
		  
	document.commentsForm.submit();
}

function commentsClicked() {
    document.getElementById('commentsTab').style.background='white';
    document.getElementById('companyContactsTab').style.background='#b0b0b0';
	var value = "";
	value += "<form name='commentsForm' action='sendComments.jsp'>";
	value += "<table width='400' border='0' cellpadding='1' cellspacing='0' bgcolor='#FFFFFF'>";
	value += "    <tr height='35'><td align='right'>Send To&nbsp;</td><td><select name='sendToSelect'/><option>Sales</option><option>General Manager</option><option>Web Administrator</option></select>&nbsp;</td><td></td><td>*&nbsp;Comments&nbsp;/&nbsp;Request</td></tr>";
	value += "    <tr><td align='right'>Company/Contact&nbsp;</td><td><input name='companyInput' type='text' maxLength=45/>&nbsp;<input name='contactInput' type='text' size='15' maxLength=45/></td><td>&nbsp;</td><td rowspan='6' valign='top'><textarea rows='11' name='commentsTextArea' cols='65'></textarea></td></tr>";
	value += "    <tr><td align='right'>Address&nbsp;1&nbsp;</td><td><input name='address1Input' type='text' size='40' maxLength='100'/></td></tr>";
	value += "    <tr><td align='right'>Address&nbsp;2&nbsp;</td><td><input name='address2Input' type='text' size='40' maxLength='100'/></td></tr>";
	value += "    <tr><td align='right'>City/State/Zip&nbsp;</td><td><input name='cityInput' type='text' size=13' maxLength='45'/>&nbsp;<input name='stateInput' type='text' maxLength='45' size='6'/>&nbsp;<input name='zipCodeInput' type='text' maxLength='30' size='11'/></td></tr>";
	value += "    <tr><td align='right'>Country/Email&nbsp;</td><td><input name='countryInput' type='text' maxLength='45' size='21'/>&nbsp;<input name='emailInput' type='text' size='14' maxLength='60'/></td></tr>";
	value += "    <tr><td align='right'>Phone/Fax&nbsp;</td><td><input name='phoneInput' type='text' size='17' maxLength='30'/>&nbsp;<input name='faxInput' type='text' size='18' maxLength='30'/></td></tr>";
	value += "    <tr><td align='right'></td><td>* = required field&nbsp;</td><td></td><td align='right' valign='bottom'><input type='button' value='Send' onclick='sendComments()'/></td></tr>";
	value += "</table>";
	value += "</form>";
    document.getElementById("pageContent").innerHTML = value;
}

function companyContactsClicked() {
    document.getElementById('companyContactsTab').style.background='white';
    document.getElementById('commentsTab').style.background='#b0b0b0';

    var value = '';
    value += "<table width='740' border='0' cellpadding='2' cellspacing='2' bgcolor='#FFFFFF'>";
    value += "	<tr>";
    value += "		<td width='210' valign='top'>Jim Hoefner<br>President<br><a href='mailto:jhoefner@tekspf.com?subject=Internet Contact'>jhoefner@tekspf.com</a><br/>781-437-1509</td>";
    value += "		<td width='190' valign='top'>Jim Nagle<br>Operations Manager<br><a href='mailto:jimn@tekspf.com?subject=Internet Contact'>jimn@tekspf.com</a><br/>781-437-1520</td>";
    value += "		<td width='210' valign='top'>John Conlon<br>Instrumentation Division-Sales Engineer<br/>(Covering Northern MA and VT)<br><a href='mailto:jconlon@tekspf.com?subject=Internet Contact'>jconlon@tekspf.com</a><br/>781-883-7239</td>";
    value += "		<td width='130' valign='top'>Lisa Graca<br>Inside Sales<br><a href='mailto:lgraca@tekspf.com?subject=Internet Contact'>lgraca@tekspf.com</a><br/>781-437-1522</td>";
    value += "	</tr>";
    value += "	<tr>";
    value += "		<td valign='top'>John Fay<br>Instrumentation Business Unit Manager<br><a href='mailto:jfay@tekspf.com?subject=Internet Contact'>jfay@tekspf.com</a><br/>781-883-7241</td>";
    value += "		<td valign='top'>Bob Yale<br>Regional Sales Manager<br/>(Covering ME and NH)<br><a href='mailto:byale@tekspf.com?subject=Internet Contact'>byale@tekspf.com</a><br/>207-408-0272</td>";
    value += "		<td valign='top'>Steve Lukasiewicz<br>Inside Sales<br><a href='mailto:slukasiewicz@TekSpf.com?subject=Internet Contact'>slukasiewicz@TekSpf.com</a><br/>781-437-1524</td>";
    value += "		<td valign='top'>Ted Meyer<br>Inside Sales<br><a href='mailto:tmeyer@tekspf.com?subject=Internet Contact'>tmeyer@tekspf.com</a><br/>781-437-1523</td>";
    value += "	</tr>";
    value += "	<tr>";
    value += "		<td valign='top'>Travis Manchuso<br>TEK X Press<br><a href='mailto:tmanchuso@tekspf.com?subject=Internet Contact'>tmanchuso@tekspf.com</a><br/>781-883-7203</td>";
    value += "		<td valign='top'>Peter Connery<br>Process Division-Regional Sales Representative<br><a href='mailto:pconnery@tekspf.com?subject=Internet Contact'>pconnery@tekspf.com</a><br/>203-586-9386</td>";
    value += "		<td valign='top'>John Mulry<br>Inside Sales Manager<br><a href='mailto:jmulry@tekspf.com?subject=Internet Contact'>jmulry@tekspf.com</a><br/>781-437-1519</td>";
    value += "		<td valign='top'>Bill Seaver<br>Process Business Unit Manager<br><a href='mailto:bseaver@tekspf.com?subject=Internet Contact'>bseaver@tekspf.com</a><br/>781-883-7237</td>";
    value += "	</tr>";   
    value += "	<tr>";
    value += "		<td valign='top'>Kaleigh Knudsen<br>Business Development<br><a href='mailto:kknudsen@tekspf.com?subject=Internet Contact'>kknudsen@tekspf.com</a><br/>781-437-1503</td>";
    value += "		<td valign='top'>Scott Swanson<br>Regional Sales Representative<br><a href='mailto:sswanson@tekspf.com?subject=Internet Contact'>sswanson@tekspf.com</a><br/>203-692-5128</td>";
    value += "		<td valign='top'></td>";
    value += "		<td valign='top'></td>";
    value += "	</tr>";   
    value += "</table><br>";
    document.getElementById("pageContent").innerHTML = value;
}

