//
// Filename = "scripts1.js"
// All Scripts here are copyright 1999,2000
// Wells Computer Systems Corporation, Levittown, Pa, USA
// JavaScript code used for pages and sub-pages for "www.wells.com"
//

function fullscreen( ) {
	top.moveTo(0,0);
	top.outerWidth  = screen.availWidth;
	top.outerHeight = screen.availHeight;
}

function mailweb(n,name,location,email,web) {
	var i;
	document.write("<TR><TD>")
	for (i=0 ; i<n ; i++ )
		document.write("&nbsp;");
	if ( email.length )
		document.write("<A HREF=\"mailto:" + email + "\">(Email) </A>")
	else
		document.write("<A HREF=\"unknown.html\">(?????) </A>")

	if ( web.length )
		document.write("<A HREF=\"" + web + "\">(Web Page) </A>")
	else
		document.write("<A HREF=\"unknown.html\">(????????) </A>")

	document.write("<B>" + name + "</B>, " + location)
	document.write("</TD></TR>")
}

function h(num,str) {
		document.write("<H"+num+"><CENTER>"+str+"</CENTER></H"+num+">");
}

function header(tag,str) {
	document.write("<A NAME="+tag+">");
	h(2,str);
}

// 'sp(x)' adds spaces, where 'x' is the number of spaces times 6
// Example: sp(4) indents 24 spaces.
function sp(num) {					// Indent 'num' spaces
	var i;
	for (i=0 ; i<(indent*6) ; i++)
		document.write("&nbsp;");
}

function br() {
	document.write("<BR>");
}

function hr() {
	document.write("<HR>");
}

function center_on() {
	document.write("<CENTER>");
}

function center_off() {
	document.write("</CENTER>");
}

function u(indent,topic,link) {				// Indent, Topic, Link and <BR>
	var i;
        for (i=0 ; i<(indent*6) ; i++)
		document.write("&nbsp;");
        document.write("<A HREF=sub/" + link + ">");
        document.write(topic + "</A><BR>");
}

function uf(topic,link) {				// Link, floating
        document.write("&nbsp;<A HREF=sub/" + link + ">");
        document.write(topic + "</A>&nbsp;");
}

function un(indent,topic,link) {			// Indent, Topic and Link
	var i;
        for (i=0 ; i<(indent*6) ; i++)
		document.write("&nbsp;");
        document.write("<A HREF=sub/" + link + ">");
        document.write(topic + "</A><BR>");
}

function unl(indent,topic) {				// Indent and Topic only (no link)
        var i;
        for (i=0 ; i<(indent*6) ; i++)
		document.write("&nbsp;");
        document.write(topic + "<BR>");
}

function lnk(indent,topic,link) {			// Indent, Topic, Link
	var i;
        for (i=0 ; i<(indent*6) ; i++)
		document.write("&nbsp;");
        document.write("<A HREF=http://" + link + ">");
        document.write(topic + "</A>");
}

function lnkbr(indent,topic,link) {			// Indent, Topic, Link and <BR>
	var i;
        for (i=0 ; i<(indent*6) ; i++)
		document.write("&nbsp;");
        document.write("<A HREF=http://" + link + ">");
        document.write(topic + "</A><BR>");
}

function nolnk(indent,topic,link) {			// Indent, Topic and Link
	var i;
        for (i=0 ; i<(indent*6) ; i++)
		document.write("&nbsp;");
        document.write("<A HREF=http://" + link + ">");
        document.write(topic + "</A><BR>");
}

function sp(num) {
	for (i=0 ; i<num ; i++)
		document.write("&nbsp;")
}

function lilnk(desc,site) {
	document.write("<LI><A HREF=http://" + site + ">" + desc +
		" <I>(HTTP)</I> </A>&nbsp;");
}

function liftp(desc,site) {
	document.write("<LI><A HREF=ftp://" + site + ">" + desc +
		" <I>(FTP)</I> </A>&nbsp;");
}

function wr1(name) {
	document.write("<CENTER><H1>" + name + "</H1></CENTER>");
}

function wr2(name) {
	document.write("<BOLD><H2>" + name + "</H2></BOLD>");
}

function wr3(name) {
	document.write("<BOLD><H3>" + name + "</H3></BOLD>");
}

function wr4(name) {
	document.write("<BOLD><H4>" + name + "</H4></BOLD>");
}

function wr5(name) {
	document.write("<BOLD><H5>" + name + "</H5></BOLD>");
}

function wr6(name) {
	document.write("<BOLD><H6>" + name + "</H6></BOLD>");
}
