
<!--


// ------------------------------------------------ //
function nicePrint(numElem) {
  var printWin = window.open("","myPrintWin");

  var headElem = document.getElementsByTagName("head");
  var printElem1 = document.getElementById("printElem1");

  if (numElem > 1) { 
  var printElem2 = document.getElementById("printElem2"); }

  if (numElem > 2) { 
  var printElem3 = document.getElementById("printElem3"); }

  if (document.getElementById != null) {

    printWin.document.open();
    printWin.document.write('<html>\n\n<head>\n');
    printWin.document.write(headElem[0].innerHTML);
    printWin.document.write('\n</head>\n\n<body>\n\n');
    printWin.document.write(printElem1.innerHTML);

    if (numElem > 1) { 
    printWin.document.write(printElem2.innerHTML); }

    if (numElem > 2) { 
    printWin.document.write(printElem3.innerHTML); }

    printWin.document.write('\n\n</body>\n</html>');
    printWin.document.close();

    printWin.print();
    printWin.close();
  }
  
  else { alert("This feature is not available with your browser."); }
}

// ------------------------------------------------ //
function NewWindow(mypage,myname,w,h,scroll){
  var win = null;
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no';
  win = window.open(mypage,myname,settings);
}


// ------------------------------------------------ //
function setPage(PageId) {
	var el = document.getElementById(PageId);
	el.style.backgroundColor = "#EBD7AB";
	// winter el.style.backgroundColor = "#CBD8EC";
	// sprint el.style.backgroundColor = "#E2F3B8";
}

//-->


// ------------------------------------------------ //
function writeEmailLink( prefixCode, domainCode, optionalSubject )
{
	if ( prefixCode == "rhumc" )
		prefix = "RoundHillUMC";
	else if ( prefixCode == "pw" )
		prefix = "PastorWitt";
	else if ( prefixCode == "kb" )	<!-- Kathi Bird -->
		prefix = "dlbird03";
	else if ( prefixCode == "sb" )	<!-- Shane Blackwell -->
		prefix = "LES_INC";
	else if ( prefixCode == "jb" )	<!-- Jeff Browning -->
		prefix = "jeff";
	else if ( prefixCode == "bml" )	<!-- Bruce Lawton -->
		prefix = "bruce";
	else if ( prefixCode == "hbd" )	<!-- Heather and Bill Domanski -->
		prefix = "domanski4";
	else if ( prefixCode == "ksh" )	<!-- Karen and Stewart Helble -->
		prefix = "kspewter";
	else if ( prefixCode == "jl" )	<!-- Jeff Lutman -->
		prefix = "jeff";
	else if ( prefixCode == "bot" )	<!-- Bet OToole -->
		prefix = "Bev";
	else if ( prefixCode == "ms" )	<!-- Michelle Simons -->
		prefix = "Michelle";
	else if ( prefixCode == "ss" )	<!-- Steve Simons -->
		prefix = "Steve.Simons";
	else if ( prefixCode == "ct" )	<!-- Carol Turnman -->
		prefix = "carolturnmanva";
	else 
		prefix = "missing";

	if ( domainCode == "ccn" )
		domain = "comcast.net";
	else if ( domainCode == "aol" )
		domain = "aol.com";
	else if ( domainCode == "hmc" )
		domain = "hotmail.com";
	else if ( domainCode == "bec" )
		domain = "browningequipment.com";
	else if ( domainCode == "atc" )
		domain = "alwaysthinking.com";
	else if ( domainCode == "sgwc" )
		domain = "stonegateweb.com";
	else if ( domainCode == "bbc" )
		domain = "buzzbuzz.com";
	else if ( domainCode == "tygc" )
		domain = "theyahnergroup.com";
	else if ( domainCode == "hmmc" )
		domain = "handymanmatters.com";
	else
		domain = "nowhere.edu";

	emailAddress = prefix + "@" + domain;
	
	document.write( '<a href = "mailto:' + emailAddress );

	if ( optionalSubject != "" )
		document.write( '?subject=' + optionalSubject );

	document.write( '">' + emailAddress + '</a>' );

} // writeEmailLink

//-->
