// JavaScript Document

function renderHeader()
{
	document.write('<div id="frame">  <div id="globalheader">   <h1><a href="home.html"><img src="images/subTwoLogo_' + _pagename + '.jpg" alt="SubTwo Consulting Inc. Logo" /></a></h1>	<div align="justify">         <ul id="minitabs">          <li id="contactus"><a href="contact.html">Contact</a></li>          <li id="company"><a href="company.html">Company</a></li>          <li id="services"><a href="services.html">Services</a></li>        </ul>      </div>  </div>');
}

function renderFooter()
{
	document.write('<div id="copyright">Copyright &copy;2006 SubTwo Consulting, Inc. | All rights reserved. | <a href="legal_terms.html">Terms</a> | <a href="legal_privacy.html">Privacy</a></div>');
}

function validateForm()
{
	if( document.mailerForm.first.value.length==0 || 
	   document.mailerForm.last.value.length==0 ||
	   document.mailerForm.company.value.length==0 ||
	   document.mailerForm.phone.value.length==0 ||
	   document.mailerForm.email.value.length==0)
	{
		document.mailerForm.first.focus();
		alert("Error, please fill in all required fields!");
		return false;
	}
	else		   
		return true;
}