// Written on spec for potential use by OfficeFinder 11/26/2000
// Modified to requirements dated 12/14/2000
// Copyright 2000, John Nye, All Rights Reserved
// The following may be set for use:
// The Hyperlink and the Image for the bottom of the popup window
// if missing the required graphic will be painted with a link to the 
// OfficeFinder home page

var optLink = ''; //  fill with a URL like 'http://www.domain.com/page.html'
var optGraph = ''; // fill in with just text or a full graphic tag like '<img src=URL border=0>'

// the dimensions of the popup window in pixels where
// popW is width and popH is height

var popW = 600;
var popH = 400;

// end of configuration variables

var noEmp = 0;
var ROTst = 0;
var exOrd = 0;
var noPrz = 0;
var noVPs = 0;
var noExs = 0;
var noPop = 0;
var noOpn = 0;
var noCf0 = 0;
var noCf1 = 0;
var noCf2 = 0;
var noCf3 = 0;
var noCf4 = 0;
var noCf5 = 0;
var noCf6 = 0;
var noCf7 = 0;
var noCf8 = 0;
var noCf9 = 0;
var noMal = 0;
var noRec = 0;
var noFil = 0;
var noLib = 0;
var noLr1 = 0;
var noLr2 = 0;
var noLr3 = 0;
var noLr4 = 0;
var noLr5 = 0;
var noCof = 0;
var layoutType = '';


if ((document.domain == null) || (document.domain == '')) {
	var pagedomain = 'desktop.test';
}
else {
	var pagedomain = document.domain;
}

function checkThis(numb) {
	var retval = 0;
	for (var ix = 0; ix < numb.length; ix++) {
		var achar = numb.substr(ix, 1);
		if ((achar < '0') || (achar > '9')) retval += 1;
	}
	return retval;
}

function validateForm() {
	var aval = checkThis(document.SPACEform.employees.value);
	aval = aval + checkThis(document.SPACEform.extra.value);
	aval = aval + checkThis(document.SPACEform.Pres.value);
	aval = aval + checkThis(document.SPACEform.VP.value);
	aval = aval + checkThis(document.SPACEform.exec.value);
	aval = aval + checkThis(document.SPACEform.popen.value);
	aval = aval + checkThis(document.SPACEform.open.value);
	aval = aval + checkThis(document.SPACEform.conf0.value);
	aval = aval + checkThis(document.SPACEform.conf1.value);
	aval = aval + checkThis(document.SPACEform.conf2.value);
	aval = aval + checkThis(document.SPACEform.conf3.value);
	aval = aval + checkThis(document.SPACEform.conf4.value);
	aval = aval + checkThis(document.SPACEform.conf5.value);
	aval = aval + checkThis(document.SPACEform.conf6.value);
	aval = aval + checkThis(document.SPACEform.conf7.value);
	aval = aval + checkThis(document.SPACEform.conf8.value);
	aval = aval + checkThis(document.SPACEform.conf9.value);
	aval = aval + checkThis(document.SPACEform.mail.value);
	aval = aval + checkThis(document.SPACEform.reception.value);
	aval = aval + checkThis(document.SPACEform.file.value);
	aval = aval + checkThis(document.SPACEform.library.value);
	aval = aval + checkThis(document.SPACEform.lr1.value);
	aval = aval + checkThis(document.SPACEform.lr2.value);
	aval = aval + checkThis(document.SPACEform.lr3.value);
	aval = aval + checkThis(document.SPACEform.lr4.value);
	aval = aval + checkThis(document.SPACEform.lr5.value);
	aval = aval + checkThis(document.SPACEform.coffee.value);
	if (aval !=0) {
		alert('Invalid entries in the form');
		return false;
	}
	else {
		if (document.SPACEform.layout[0].checked == true) {
			ROTst = document.SPACEform.layout[0].value;
			layoutType = 'Efficient';
		}
		if (document.SPACEform.layout[1].checked == true) {
			ROTst = document.SPACEform.layout[1].value;
			layoutType = 'Typical';
		}
		if (document.SPACEform.layout[2].checked == true) {
			ROTst = document.SPACEform.layout[2].value;
			layoutType = 'Spacious';
		}
		if ((document.SPACEform.employees.value != null) && (document.SPACEform.employees.value != '')) {
			noEmps = parseInt(document.SPACEform.employees.value);
		}
		else {
			noEmps = '';
		}
		if ((document.SPACEform.extra.value != null) && (document.SPACEform.extra.value != '')) {
			exOrd = parseInt(document.SPACEform.extra.value);
		}
		else {
			exOrd = '';
		}
		if ((document.SPACEform.Pres.value != null) && (document.SPACEform.Pres.value != '')) {
			noPrz = parseInt(document.SPACEform.Pres.value);
		}
		else {
			noPrz = '';
		}
		if ((document.SPACEform.VP.value != null) && (document.SPACEform.VP.value != '')) {
			noVPs = parseInt(document.SPACEform.VP.value);
		}
		else {
			noVPs = '';
		}
		if ((document.SPACEform.exec.value != null) && (document.SPACEform.exec.value != '')) {
			noExs = parseInt(document.SPACEform.exec.value);
		}
		else {
			noExs = '';
		}
		if ((document.SPACEform.popen.value != null) && (document.SPACEform.popen.value != '')) {
			noPop = parseInt(document.SPACEform.popen.value);
		}
		else {
			noPop = '';
		}
		if ((document.SPACEform.open.value != null) && (document.SPACEform.open.value != '')) {
			noOpn = parseInt(document.SPACEform.open.value);
		}
		else {
			noOpn = '';
		}
		if ((document.SPACEform.conf0.value != null) && (document.SPACEform.conf0.value != '')) {
			noCf0 = parseInt(document.SPACEform.conf0.value);
		}
		else {
			noCf0 = '';
		}
		if ((document.SPACEform.conf1.value != null) && (document.SPACEform.conf1.value != '')) {
			noCf1 = parseInt(document.SPACEform.conf1.value);
		}
		else {
			noCf1 = '';
		}
		if ((document.SPACEform.conf2.value != null) && (document.SPACEform.conf2.value != '')) {
			noCf2 = parseInt(document.SPACEform.conf2.value);
		}
		else {
			noCf2 = '';
		}
		if ((document.SPACEform.conf3.value != null) && (document.SPACEform.conf3.value != '')) {
			noCf3 = parseInt(document.SPACEform.conf3.value);
		}
		else {
			noCf3 = '';
		}
		if ((document.SPACEform.conf4.value != null) && (document.SPACEform.conf4.value != '')) {
			noCf4 = parseInt(document.SPACEform.conf4.value);
		}
		else {
			noCf4 = '';
		}
		if ((document.SPACEform.conf5.value != null) && (document.SPACEform.conf5.value != '')) {
			noCf5 = parseInt(document.SPACEform.conf5.value);
		}
		else {
			noCf5 = '';
		}
		if ((document.SPACEform.conf6.value != null) && (document.SPACEform.conf6.value != '')) {
			noCf6 = parseInt(document.SPACEform.conf6.value);
		}
		else {
			noCf6 = '';
		}
		if ((document.SPACEform.conf7.value != null) && (document.SPACEform.conf7.value != '')) {
			noCf7 = parseInt(document.SPACEform.conf7.value);
		}
		else {
			noCf7 = '';
		}
		if ((document.SPACEform.conf8.value != null) && (document.SPACEform.conf8.value != '')) {
			noCf8 = parseInt(document.SPACEform.conf8.value);
		}
		else {
			noCf8 = '';
		}
		if ((document.SPACEform.conf9.value != null) && (document.SPACEform.conf9.value != '')) {
			noCf9 = parseInt(document.SPACEform.conf9.value);
		}
		else {
			noCf9 = '';
		}
		if ((document.SPACEform.mail.value != null) && (document.SPACEform.mail.value != '')) {
			noMal = parseInt(document.SPACEform.mail.value);
		}
		else {
			noMal = '';
		}
		if ((document.SPACEform.reception.value != null) && (document.SPACEform.reception.value != '')) {

			noRec = parseInt(document.SPACEform.reception.value);
		}
		else {
			noRec = '';
		}
		if ((document.SPACEform.file.value != null) && (document.SPACEform.file.value != '')) {
			noFil = parseInt(document.SPACEform.file.value);
		}
		else {
			noFil = '';
		}
		if ((document.SPACEform.library.value != null) && (document.SPACEform.library.value != '')) {
			noLib = parseInt(document.SPACEform.library.value);
		}
		else {
			noLib = '';
		}
		if ((document.SPACEform.lr1.value != null) && (document.SPACEform.lr1.value != '')) {
			noLr1 = parseInt(document.SPACEform.lr1.value);
		}
		else {
			noLr1 = '';
		}
		if ((document.SPACEform.lr2.value != null) && (document.SPACEform.lr2.value != '')) {
			noLr2 = parseInt(document.SPACEform.lr2.value);
		}
		else {
			noLr2 = '';
		}
		if ((document.SPACEform.lr3.value != null) && (document.SPACEform.lr3.value != '')) {
			noLr3 = parseInt(document.SPACEform.lr3.value);
		}
		else {
			noLr3 = '';
		}
		if ((document.SPACEform.lr4.value != null) && (document.SPACEform.lr4.value != '')) {
			noLr4 = parseInt(document.SPACEform.lr4.value);
		}
		else {
			noLr4 = '';
		}
		if ((document.SPACEform.lr5.value != null) && (document.SPACEform.lr5.value != '')) {
			noLr5 = parseInt(document.SPACEform.lr5.value);
		}
		else {
			noLr5 = '';
		}
		if ((document.SPACEform.coffee.value != null) && (document.SPACEform.coffee.value != '')) {
			noCof = parseInt(document.SPACEform.coffee.value);
		}
		else {
			noCof = '';
		}
		return true;
	}
}

function paintReport(which) {
  var repwin = window.open('', 'Report', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=' + popW + ',height=' + popH);
	thewin = repwin;
	repwin.document.open();
	repwin.document.writeln('<' + 'html><' + 'title>Report Window<' + '/title>');
	repwin.document.writeln('<' + 'link rel="stylesheet" type="text/css" href="/style.css" /' + '>');
	repwin.document.writeln('<' + 'script language=javascript>');
	repwin.document.writeln('function doAction(obj) {');
	repwin.document.writeln('	if (obj == 1) {');
	repwin.document.writeln('		window.print();');
	repwin.document.writeln('	}');
	repwin.document.writeln('	else {');
	repwin.document.writeln('		window.close();');
	repwin.document.writeln('	}');
	repwin.document.writeln('}');

	repwin.document.writeln('function cTime() {');
	repwin.document.writeln('	flipValue(document.forms[0].clicker, "to Print", "Click Me");');
	repwin.document.writeln(' flipValue(document.forms[0].closer, "to Close", "Click Me");');
	repwin.document.writeln('}');
	repwin.document.writeln('function wInit() {');
	repwin.document.writeln('	window.focus();');
	repwin.document.writeln('}');
	repwin.document.writeln('<' + '/script>');

	repwin.document.writeln('<' + 'body bgcolor="white" onLoad="wInit();">');
	repwin.document.write('<' + 'center><' + 'b><' + 'font size=+1>Space Estimates<' + '/font><' + '/b><' + 'br>');

	repwin.document.writeln('<' + 'form>');
	repwin.document.writeln('<' + 'input type=button value=Print onClick="doAction(1);"> ');
	repwin.document.writeln('<' + 'input type=button value=Close onClick="doAction(2);">');
	repwin.document.writeln('<' + '/form>');

	repwin.document.write('<' + 'b><' + 'font size=+1>Rule of Thumb Method<' + '/font><' + '/b><' + 'br>');

	rotSpace = 0 + ROTst * noEmps + exOrd;

	repwin.document.writeln('<' + 'center><' + 'table border=0 width="80%"><' + 'tr><' + 'td>');
	repwin.document.writeln('Number of employees:<' + '/td><' + 'td align=right>' + document.SPACEform.employees.value + '<' + '/td><' + '/tr>');
	repwin.document.writeln('<' + 'tr><' + 'td>Layout:<' + '/td><' + 'td align=right>' + layoutType + '<' + '/td><' + '/tr>');
	repwin.document.writeln('<' + 'tr><' + 'td>Extra space required:<' + 'br><' + 'font size=1>square feet<' + '/font><' + '/td><' + 'td valign=top align=right>' + document.SPACEform.extra.value + '<' + '/td><' + '/tr>');
	repwin.document.writeln('<' + 'tr><' + 'td colspan=2>');
	repwin.document.writeln('<' + 'hr>');
	repwin.document.writeln('<' + '/td><' + '/tr>');
	repwin.document.writeln('<' + 'tr><' + 'td>Rule of Thumb Estimate: <' + '/td><' + 'td align=right>' + rotSpace);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td colspan=2><' + 'hr>');
	repwin.document.write('<' + 'b><' + 'font size=+1>Detailed Calculation Method<' + '/font><' + '/b><' + '/td><' + '/tr>');

	var estWork = (noPrz * 375) + (noVPs * 250) + (noExs * 150) + (noPop * 125) + (noOpn * 100);
	var estConf = (noCf0 * 25) + (noCf1 * 25) + (noCf2 * 25) + (noCf3 * 25) + (noCf4 * 25) + (noCf5 * 25) + (noCf6 * 25) + (noCf7 * 25) + (noCf8 * 25) + (noCf9 * 25);
	var estOther = (noMal * 120) + (noRec * 31.25) + (noFil * 120) + (noLib * 200) + (noCof * 12.5);
	if (noRec != 0) { estOther = estOther + 125; }
	var estLunch = (noLr1 * 25) + (noLr2 * 25) + (noLr3 * 25) + (noLr4 * 25) + (noLr5 * 25);
	if (noLr1 != 0) { estLunch = estLunch + 325; }
	if (noLr2 != 0) { estLunch = estLunch + 325; }
	if (noLr3 != 0) { estLunch = estLunch + 325; }
	if (noLr4 != 0) { estLunch = estLunch + 325; }
	if (noLr5 != 0) { estLunch = estLunch + 325; }

	var estSpace = estWork + estConf + estOther + estLunch;
	estSpace = parseInt(estSpace);
		
	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('President or Chairman Office(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.Pres.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Vice President Office(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.VP.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Executive Office(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.exec.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Partitioned Open Space:');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.popen.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Open Area BullPen:');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.open.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td valign=top>');
	repwin.document.writeln('Conference Room(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;');
	if (noCf0 !=0) repwin.document.writeln('' + document.SPACEform.conf0.value);
	if (noCf1 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf1.value);
	if (noCf2 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf2.value);
	if (noCf3 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf3.value);
	if (noCf4 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf4.value);
	if (noCf5 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf5.value);
	if (noCf6 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf6.value);
	if (noCf7 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf7.value);
	if (noCf8 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf8.value);
	if (noCf9 !=0) repwin.document.writeln('<' + 'br>' + document.SPACEform.conf9.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Mail/Work Room(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.mail.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Reception Seating Area:');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.reception.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('File Room(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.file.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Library(ies):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.library.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td valign=top>');
	repwin.document.writeln('LunchRoom(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;');
	if (noLr1 != 0) repwin.document.writeln('' + document.SPACEform.lr1.value);
	if (noLr2 != 0) repwin.document.writeln('<' + 'br>' + document.SPACEform.lr2.value);
	if (noLr3 != 0) repwin.document.writeln('<' + 'br>' + document.SPACEform.lr3.value);
	if (noLr4 != 0) repwin.document.writeln('<' + 'br>' + document.SPACEform.lr4.value);
	if (noLr5 != 0) repwin.document.writeln('<' + 'br>' + document.SPACEform.lr5.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Coffee Bar(s):');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + document.SPACEform.coffee.value);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td colspan=2>');
	repwin.document.writeln('<' + 'hr>');
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td>');
	repwin.document.writeln('Detailed Space Estimate:');
	repwin.document.writeln('<' + '/td><' + 'td align=right>');
	repwin.document.writeln('&nbsp;' + estSpace);
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + 'tr><' + 'td colspan=2>');
	repwin.document.writeln('<' + 'hr>');
	repwin.document.writeln('<' + '/td><' + '/tr>');

	repwin.document.writeln('<' + '/table>');
	
	repwin.document.writeln('<' + 'p>');

	repwin.document.writeln('<' + '/center>');

	repwin.document.close();
	repwin.focus();
}
document.writeln('<' + 'table border="0" width="450">');
document.writeln('<' + 'tr>');
document.writeln('<' + 'td><' + 'font size="2" face="System">The following form');
document.writeln('provides two methods of calculating your office space');
document.writeln('needs. The first is based upon general rules of thumb.');
document.writeln('The second goes into greater detail and is more accurate.');
document.writeln('Using both methods will provide you with a range of your');
document.writeln('probable requirement. Please note, the results will be in');
document.writeln('usable square footage. Any load factors will have to be');
document.writeln('added.<' + '/font><' + 'hr>');
document.writeln('<' + 'FORM name="SPACEform">');
document.writeln('<' + 'p align="center"><' + 'span style="letter-spacing: 1pt"><' + 'font face="System" size="4">&nbsp;Rules of Thumb Method<' + '/font><' + '/span><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System">Number of Employees: <' + 'input');
document.writeln('type="text" size="3" name="employees"><' + 'br>');
document.writeln('<' + 'br>');
document.writeln('<' + 'input type="radio" value="185" name="layout">Efficient');
document.writeln('<' + 'input type="radio" CHECKED value="220" name="layout">Typical');
document.writeln('<' + 'input type="radio" value="250" name="layout">Spacious<' + 'br>');
document.writeln('Extraordinary requirements: <' + 'input type="text"');
document.writeln('size="5" name="extra"> square feet<' + '/font><' + '/p>');
document.writeln('<' + 'hr>');
if (document.layers) {
	document.writeln('<' + 'p align="center"><' + 'font face="System" size="4"><' + 'a name="Detailed">Detailed<' + '/a>');
	document.writeln('Calculation Method<' + '/font><' + '/p>');
}
else {
	document.writeln('<' + 'p align="center"><' + 'span style="letter-spacing: 1pt"><' + 'font face="System" size="4"><' + 'a name="Detailed">Detailed<' + '/a>');
	document.writeln('Calculation Method<' + '/font><' + '/span><' + '/p>');
}
document.writeln('<' + 'p><' + 'i><' + 'font size="2" face="System">number<' + '/font><' + '/i><' + 'font size="2" face="System"><' + 'br>');
document.writeln('<' + 'i>of employees<' + '/i><' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="Pres"> <' + 'b>Typical');
document.writeln('President\'s office or Chairman of the Board<' + '/b> (300');
document.writeln('sf) <' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="VP"> <' + 'b>Typical');
document.writeln('Vice-President\'s Office<' + '/b> (200 sf)<' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="exec"> <' + 'b>Typical');
document.writeln('Executive\'s Office<' + '/b> (120 sf)<' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="4" maxlength="4" name="popen"><' + 'b>  Partitioned');
document.writeln('Open Space<' + '/b><' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="4" maxlength="4" name="open"><' + 'b>  Open Area');
document.writeln('Bullpen<' + '/b><' + '/font><' + '/p>');
document.writeln('<' + 'hr>');
document.writeln('<' + 'p><' + 'i><' + 'font size="2" face="System">Other Areas<' + '/font><' + '/i><' + '/p>');
document.writeln('<' + 'p><' + 'b><' + 'font size="2" face="System">Conference Rooms');
document.writeln('Seating for:<' + '/font> <' + '/b><' + 'font size="2" face="System"><' + 'br><' + 'input type="text" size="3"');
document.writeln('maxlength="3" name="conf0"><' + 'input type="text" size="3"');
document.writeln('maxlength="3" name="conf1"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="conf2"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="conf3"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="conf4"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="conf5"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="conf6"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="conf7"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="conf8"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="conf9"><' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="mail"><' + 'b>  Mail / Work');
document.writeln('Rooms 10 X 12 ft.<' + '/b><' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'b><' + 'font size="2" face="System">Reception Area');
document.writeln('Seating: <' + 'input type="text" size="3" maxlength="3"');
document.writeln('name="reception"><' + '/font><' + '/b><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="file"><' + 'b>  File Rooms 10');
document.writeln('X 12 ft. (up to 11 standard file cabinets)<' + '/b><' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="library"><' + 'b>  Libraries');
document.writeln('10 X 20 ft.<' + '/b><' + '/font><' + '/p>');
document.writeln('<' + 'p> <' + 'b><' + 'font');
document.writeln('size="2" face="System"> Lunch Rooms Seating:<' + '/font><' + '/b><' + 'font');
document.writeln('size="2" face="System"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="lr1"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="lr2"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="lr3"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="lr4"><' + 'input');
document.writeln('type="text" size="3" maxlength="3" name="lr5"><' + 'br>');
document.writeln('(use 1 for kitchen without seating)<' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'font size="2" face="System"><' + 'input type="text"');
document.writeln('size="3" maxlength="3" name="coffee"><' + 'b>  Coffee Bars<' + '/b><' + '/font><' + '/p>');
document.writeln('<' + 'p><' + 'a name="submit"><' + 'font size="2" face="ARIAL"><' + '/font><' + '/a><' + 'font');
document.writeln('size="2" face="ARIAL"> <' + '/font><' + '/p>');
document.writeln('<' + 'p align="center"><' + 'font size="2" face="ARIAL"><' + 'input');
document.writeln('type="button" value="Prepare Estimates" onClick="');
document.writeln('var doReport = validateForm();');
document.writeln('if (doReport) paintReport(2);');
document.writeln('"><' + 'input');
document.writeln('type="reset" value="Clear Entries"><' + '/font><' + '/p>');
document.writeln('<' + '/form>');
document.writeln('<' + '/td>');
document.writeln('<' + '/tr>');
document.writeln('<' + '/table>');


