
function writeHeader(topbg,bg,border,fontcolor,top,dates,sp,day,bot) {
	var content = "";
	content = '<div id=\"UpperRightPanel\" class=\"' + bg + '\" style=\"position:absolute; visibility:visible; overflow:hidden; width:180px; height:526px; left:900px; top:140px; z-index:2; \">'
	content += '<img src=\"elements/dbpixel.jpg\" width=\"180\" height=\"1\" alt=\"\">'
	content += '	<div class=\"' + topbg + '\" style=\"padding: ' + top +'px 1ex ' + bot +'px 1ex; text-align:center;\">' 
	content += '	<font class=a14 color=\"#' + fontcolor + '\"><b>' + dates + '</b></font><br>'
	content += '	<img src=\"elements/pixel.gif\" width=\"1\" height=\"1\" vspace=\"' + sp + '\" alt=\"\"><br>'
	content += '	<font class=ab16 color=\"#' + fontcolor + '\"><i>' + day + '</i></font><br>'
	content += '	<img src=\"elements/pixel.gif\" width=\"1\" height=\"1\" vspace=\"3\" alt=\"\"><br></div>'
	content += '	<img src="elements/' + border + '.jpg\" width=\"180\" height=\"1\" alt=\"\">'
	return(content);
	}

function writeVerses( R, VR, VT, VL, Vtop, Vbot ) {
	var content = "";
	content += '	<div style=\"padding: ' + Vtop +'px 1ex ' + Vbot +'px 1ex; text-align:center;\"><font class=\"a11\" color=\"#331111\">'
	if ( R ) content += '<i>&mdash; ' + R + ' &mdash;</i><br>'
	content += '</font><font class=\"a12\" color=\"#331111\"><a href=\"pop/' + VL +'.html" '
	content += ' onMouseOver=\"window.status=\'reference verse\'; return true\" onMouseOut=\"window.status=\' \';return true\" '
	content += '	onClick=\"window.open(\'\',\'popup\',\'height=600,width=500,scrollbars=yes\')\" target=\"popup\">'
	content += '&nbsp;' + VR + '&nbsp;</a><br></font><font class=\"a11\" color=\"#001133\">\'' + VT + '\'</font></div>'
	return(content);
	}

function writeNotice() {
	var content = "";
	content += '	<div style=\"padding: 1px 1ex 1px 1ex; text-align:center;\">'
	content += '<font class=t10 color="#330011">'
	content += '<i>To read the passage <br>in a pop-up window, <br>click on the verse reference</i></font></div>'
	return(content);
	}

function writeServices(top,special,svc1,svc2,svc3,svc4) {
	var content = "";
	content += '	<div style=\"padding: ' + top + 'px 1ex 0em 1ex; text-align:center;\">'
	content += '<font class=ab13 color=\"#002211\">WORSHIP SCHEDULE</font><br>'
	content += '<img alt=\"\" src=\"elements/pixel.gif\" width=\"1\" height=\"1\" vspace=\"2\"><br>'
	content += '	<font class=a11 color=\"#330011\">'
	content += '	<a href=\"6b.services.html\" title=\"View a description of this unique worship service called Gracious Beginnings\">'
	content += '\'Gracious Beginnings\'</a></font><br><font class=a11 color=\"#330011\"><i>Saturday 5:30 pm</i><br>'
	content += '<img alt=\"\" src=\"elements/pixel.gif\" width=\"1\" height=\"1\" vspace=\"1\"><br>'
	content += '	<a href=\"6b.services.html#2\" title=\"View a description of this unique worship service called God is our Foundation\">'
	content += '\'God is our Foundation\'</a></font><br><font class=a11 color=\"#330011\"><i>Sunday 8:00 am</i><br>'
	content += '<img alt=\"\" src=\"elements/pixel.gif\" width=\"1\" height=\"1\" vspace=\"1\"><br>'
	content += '	<a href=\"6b.services.html#3\" title=\"View a description of this unique worship service called God our Hope\">'
	content += '\'God our Hope\'</a></font><br><font class=a11 color=\"#330011\"><i>Sunday 10:30 am</i><br></font>'
	content += '<img alt=\"\" src=\"elements/pixel.gif\" width=\"1\" height=\"1\" vspace=\"1\"><br>'
	if ( special ) {
		content += '<font class=\"a11\" color=\"#330011\">'
		content += '<a href=\"pop/SpecialServices.pdf" onMouseOver="window.status=\'Special Service Schedule\'; return true\" '
		content += 'onMouseOut=\"window.status=\' \';return true\" '
		content += 'onClick=\"window.open(\'\',\'popup\',\'height=600,width=500,scrollbars=yes\')\" target=\"popup\">'
		content += '&#149;&nbsp;Special Services&nbsp;&#149;</a><br></font><font class=\"a11\" color=\"#330011\">'
		if ( svc1 ) content += '<i>' + svc1 + '</a><br>'
		if ( svc2 ) content += '<i>' + svc2 + '</a><br>'
		if ( svc3 ) content += '<i>' + svc3 + '</a><br>'
		if ( svc4 ) content += '<i>' + svc4 + '</a><br>'
		content += '	</font>'
		}
	content += '<img alt=\"\" src=\"elements/pixel.gif\" width=\"1\" height=\"1\" vspace=\"2\"><br><font class=t10 color="#002233">'
	content += '<i>The Nursery is open during all worship services and Sunday School hours. Child supervision is available at the Sunday 10:30 am worship.</i><br>'
	content += '</font></div></div>'
	return(content);
	}


