function fillHeader()
{
document.write("<td colspan=2 valign=top><img src='img/header.gif'><br></td>")
}


function fillCopyright()
{
dateVar = new Date(); 
document.write("<td id='copyright' align='center' colspan=2 background='img/copyrightbackgrnd3.gif'>")
document.write("&copy; Copyright 2003 - ")
document.write(dateVar.getYear())

document.write(" RINA Systems, Inc.  All Rights Reserved.<br></td>")

}


function fillMenu()
{

document.write("<td background='img/menubackgrnd3.gif' width=140 valign=top align=left>")
document.write("<div class='links'><a href='home.htm' class='big'>Home</a>")
document.write("<a href='aboutus.htm' class='big'>About Us</a>")
document.write("<a href='audittool.htm' class='big'>Audit Tool</a>")
document.write("<a href='description.htm' class='small'>- Description</a>")
document.write("<a href='reports.htm' class='small'>- Reports</a>")
document.write("<a href='pcardmax.htm' class='big'>PCard Max</a>")
document.write("<a href='savetime.htm' class='small'>- Save Time</a>")
document.write("<a href='gaincontrol.htm' class='small'>- Gain Control</a>")
document.write("<a href='maxperform.htm' class='small'>- Maximize<br><span class='bleh'>- </span>Performance</a>")
document.write("<a href='getresults.htm' class='small'>- Get Results</a>")
document.write("<a href='request.asp' class='big'>Request Info</a>")
document.write("<a href='customprojects.aspx' class='big'>Project Requests</a>")
document.write("<a href='contactus.htm' class='big'>Contact Us</a></div>")
document.write("<img src='img/menudivider.gif'>")
document.write("<span class='menutxt'>Join Our Mailing List!&nbsp&nbsp<br><br>e-Mail Address:&nbsp&nbsp<br></span>")
document.write("<center><form action='https://www.pcardmax.com/admin/Subscribe.aspx' method='post' onSubmit='return emailValidate();'>")
document.write("<input type='hidden' name='stype'  value='PCMax'><input type='text' name='sender' size=14 id='text'/>&nbsp&nbsp<br>")
document.write("<input type='submit' value='Submit' id='button'/>&nbsp&nbsp</form></center>")
document.write("<img src='img/menudivider.gif'><br><br>")
document.write("<div class='logo'><a href='http://www.rinasystems.com/'>&nbsp<img src='img/rinalogo.gif'><br></div></td>")


}

function emailValidate ()
{
	var email = document.getElementById("text").value;
	var inValid = "0";
	if (email=="") {
		inValid = "1";
	}
	else if (! /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(email)){
		inValid = "2";

	}
	else {}
	if (inValid == "0") {
		return true;
	}
	else {
		location.href="subscribed.asp?isValid=False&inValid=" + inValid;
		return false;
	}
}