// P&P Family Gallery
//    Author: Paul and Patricia Fraker
//            O'Fallon, Illinois  USA
//            www.frakers.com
//
//                       (c)1999-2005 Paul & Patricia Fraker
//                               All Rights Reserved
//
// ShowNote.js
//
// This javascript routine is used to display a pop-up note in a small
// window when the <A HREF> link is clicked on.

var windowNote;

function showNote(winWidth,
				  winHeight,
				  winTitle,
				  bodyBGImage,
				  bodyBGColor,
				  titleText,
				  titleTextColor,
				  titleBGColor,
				  titleTypeFont,
				  titleSizeFont, 
				  message, 
				  textColor, 
				  typeFont, 
				  sizeFont,
				  scrollBar,
				  reSize,
				  showLogo) {

	var text;
	
	windowNote = window.open('','Note','toolbar=no'
									+ ',location=no'
									+ ',directories=no'
									+ ',status=no' 
									+ ',scrollbars=' + scrollBar 
									+ ',resizable=' + reSize 
									+ ',copyhistory=no' 
									+ ',width=' + winWidth 
									+ ',height=' + winHeight);

	text = '<HTML><HEAD>';
	text += '<TITLE>' + winTitle + ' - P&amp;P Family Gallery' + '</TITLE>';
	text += '<SCRIPT LANGUAGE="JavaScript" SRC="AltWindow.js"></SCRIPT>';
	text += '<BODY BACKGROUND="' + bodyBGImage + '" BGCOLOR="' + bodyBGColor + '">';

	text += '<CENTER>';
	text += '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>';
	
	if (showLogo == 'yes') {
		text += '<TR><TD ALIGN="center" BGCOLOR="white">';
		text += '<A HREF="" onClick="return alt_window(\'about.html\',\'aboutwin\',\'400\',\'550\',\'no\',\'no\',\'yes\',\'no\',\'no\')">';
		text += '<IMG SRC="images/PPFamilyGallery3.jpg" WIDTH="360" HEIGHT="48" ALIGN="center" VALIGN="top" BORDER=0></A><BR>';
		text += '<IMG SRC="images/spacer.gif" WIDTH="100" HEIGHT="20" BORDER=0>';
		text += '</TD></TR>';
		}

	if (titleText) {
		text += '<TR><TD ALIGN="CENTER" BGCOLOR="' + titleBGColor + '">';
	
		text += '<FONT FACE="' + titleTypeFont + '"';
		text += ' SIZE=' + titleSizeFont;
		text += ' COLOR="' + titleTextColor + '"><B>';
	
		text += titleText + '</B></FONT></TD></TR>';
		}

	text += '<TR><TD ALIGN="LEFT" BGCOLOR="' + bodyBGColor + '">';
		
	text += '<BR>';
	text += '<FONT FACE="' + typeFont +'"';
	text += ' SIZE=' + sizeFont; 
	text += ' COLOR=' + '"' + textColor +'">';
	
	text += message + '</FONT></TD></TR></TABLE></CENTER>';
	
	text += '</' + 'BODY' + '><' + '/HTML' + '>';
	
	windowNote.document.write(text);
	windowNote.focus();
	windowNote.document.close();
	return false;
	}

//  End of script
