/* ********************************************************************************* 
   COPYRIGHT('(C) CMS MANUFACTURING SYSTEMS INC. - 1993, 1997')
   File Name:  EZ001-Main.js                                                    
   Description:  This script will display the Main Signon Screen.
  _________________________________________________________________________________ 
   Modification History:                                                             
   2001-05-03  Michael Victor    Created script    
   2001-08-20  Michael Victor    The Navigation, PageContents and Footer divisions,
                                 are now written using document.writeln, instead of
                                 using the .innerHTML methods.  (this should resolve
                                 the header section expanding and contracting when
                                 rendering the page)
   2002-05-28  Michael Victor    Version 2.0 Mods
   *********************************************************************************  */
var pageContentsHtml = ""

function popPageContents()
{
	pageContentsHtml = 
			  '<div name="pageContents" class="PageContents">' + newline
			+ '<b>Please Sign On</b>'
			+ '<div class="dftwidth databackground">' + newline
			+ '<br/>' + newline
			+ '<form action="/net/EZ001" method="post" onsubmit="return Validate(this);">'
			+ ' <table>'
			+ '  <tr>'
			+ '   <td class="criteriaLabel">User Id:</td>'
			+ '   <td><input type = "text" name="XXUSER" size="10"></input></td>'
			+ '  </tr>'
			+ '  <tr>'
			+ '   <td class="criteriaLabel">Password:</td>'
			+ '   <td><input type="password" name="XXPSWD" size="10"></input></td>'
			+ '  </tr>'
			+ ' </table>'
			+ ' <input type="hidden" name="XXRCSV" value="Y"></input>'
			+ ' <input type ="SUBMIT"' + buttonClasses("input_button", "input_button_over")
			+ '  value="Sign On"></input>'
			+ '</form>' + newline
			+ '</div>' + newline
			+ '</div>' + newline
	document.writeln(pageContentsHtml)
}



function Validate(form) 
{
	if (form.XXUSER.value == "") 
	{
   		alert("Enter a user id");
   		return false;
	} 
	else 
	{
   		return true;
	}
}

function buildPage()
{
	popHeader()
	popPageContents()
	popfooter() 
}
