<!--
// Shared.js contains JavaScript functions used throughout the
// Countryside Motel web site.
// ****************************************
// "PageFooter" outputs a standard string of copyright and 
//              developer credit information.
//              Syntax: PageFooter();
//           by David Shapiro 2002-03-14 12:26:24
function PageFooter(){
	var copyright = "Copyright &copy; 1999 - 2008 Countryside Motel";
	var JStroke = 'http://www3.sympatico.ca/david.shapiro/ target="_blank"';
	var credit = "Website construction by <a href="+JStroke+">J-Stroke Systems Inc.</a>";
	document.write("<div class='small'><div class='slategray'>");
	document.write("<hr>");
	document.write(copyright);
	document.write("<br>");
	document.write(credit);
	document.write("<br><br>");
	document.write("</div></div>");
}
// ****************************************
// Pop up a window for the BBB Online Reliability Program
function Rcertify() {
	popupWin = window.open('http://www.bbbonline.org/cks.asp?id=102031291322227', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
	window.name = 'opener';
}
// ****************************************
//	Pop up a new window containing URL, with most window feature (no personal bar)
//	usage: <a href="javascript:pop('URL')">link text</a>
function pop(url) {
	window.open("http://"+url,"","resizable=yes,location=yes,menubar=yes,personalbar=no,scrollbars=yes,status=yes,toolbar=yes");
}
// ****************************************	
//	Construct an e-mail call, not easily crawled by web spiders.
//	The 'link' parameter is optional, and will default to the e-mail address.
//	usage: contact('leftpart','rightpart','tld','subject','linktext')
function contact(left,right,tld,subj,link) {
	text=(link)?link:left+'&#64;'+right+'.'+tld;
	var line='<a href="mailto:'+left+'&#64;'+right+'.'+tld+'?subject='+subj+'">'+text+'<\/a>';
	document.write(line);
}
// -->
