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>Vice President - General Manager<br><a href='mailto:jhoefner@tekspf.com?subject=Internet Contact'>jhoefner@tekspf.com</a></td>";
    value += "		<td width='190' valign='top'>Scott Ripatrazone<br>Inside Sales Manager<br><a href='mailto:sripatrazone@tekspf.com?subject=Internet Contact'>sripatrazone@tekspf.com</a></td>";
    value += "		<td width='210' valign='top'>Greta Feiring<br>Inventory Control<br><a href='mailto:gfeiring@tekspf.com?subject=Internet Contact'>gfeiring@tekspf.com</a></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></td>";
    value += "	</tr>";
    value += "	<tr>";
    value += "		<td valign='top'>John Fay<br>Vice President - Industrial Sales<br><a href='mailto:jimn@tekspf.com?subject=Internet Contact'>jfay@tekspf.com</a></td>";
    value += "		<td valign='top'>Mike Allard<br>Director Of Sales<br><a href='mailto:mallard@tekspf.com?subject=Internet Contact'>mallard@tekspf.com</a></td>";
    value += "		<td valign='top'>Travis Manchuso<br>TEK X Press<br><a href='mailto:tmanchuso@tekspf.com?subject=Internet Contact'>tmanchuso@tekspf.com</a></td>";
    value += "		<td valign='top'>Bill Seaver<br>Biopharm Products Manager<br><a href='mailto:bseaver@tekspf.co?subject=Internet Contact'>bseaver@tekspf.com</a></td>";  
    value += "	</tr>";
    value += "	<tr>";
    value += "		<td valign='top'>Peter Connery<br>Regional Sales Manager<br><a href='mailto:pconnery@tekspf.com?subject=Internet Contact'>pconnery@tekspf.com</a></td>";
    value += "		<td valign='top'>Jim Nagle<br>Operations Manager<br><a href='mailto:jimn@tekspf.com?subject=Internet Contact'>jimn@tekspf.com</a></td>";
    value += "		<td valign='top'>Ted Meyer<br>Inside Sales<br><a href='mailto:tmeyer@tekspf.com?subject=Internet Contact'>tmeyer@tekspf.com</a></td>";
    value += "		<td valign='top'>Steve Lukasiewicz<br>Inside Sales<br><a href='mailto:slukasiewicz@TekSpf.com?subject=Internet Contact'>slukasiewicz@TekSpf.com</a></td>";
    value += "	</tr>";   
    value += "</table><br>";
    document.getElementById("pageContent").innerHTML = value;
}
