docHref = document.location.href;
docHref = docHref.substr(0, docHref.indexOf("?"));
docHref = (docHref=="") ? document.location.href : docHref;

newsletterBox = "<div class='sidebox'><form action='http://www.users.bigpond.com/cgi-bin/formemail.pl' method='post'>\
		<div class='section'>FREE Newsletter</div>\
		<br>Subscribe to my monthly newsletter, The Margzville Star, and you will receive a free copy of my e-workbook called Goal Setting For When You Are Leading From The Heart. \
		<p class='notop'>Just type your email address below and click Go!\
		<br><input type='text' size=13 class='f_std' name='email'><input type=submit value='Go!' class='f_std' onmousedown='rightNow= Date();this.form.date.value=rightNow.toLocaleString()'>\
		<br><a href='privacy.htm'>Privacy Policy</a>\
		<br><a href='guarantee.htm'>Ethics & Guarantees</a>\
		<input type='hidden' name='user' value='margaretgill'>\
		<input type='hidden' name='date' value=''>\
     	<input type='hidden' name='templtfile' value='news_tmplt.txt'>\
     	<input type='hidden' name='responseURL' value='" + docHref + 
	"?msg=Thank%20you.%20%20You%20have%20been%20subscibed%20to%20the%20newsletter.'>\
    </div></form>";
	
newsletterBox = "<div class='sidebox'><form name='form1' method='post' action='http://www.mcssl.com/app/contactsave.asp'>\
		<div class='section'>FREE Newsletter</div>\
		<br>Subscribe to my monthly newsletter, The Margzville Star, and you will receive a free copy of my e-workbook called Goal Setting For When You Are Leading From The Heart. \
		<p class='notop'>Just type your name and email address below and click Go!\
<input name='merchantid' type='hidden' id='merchantid' value='81707'>\
<input name='ARThankyouURL' type='hidden' id='ARThankyouURL' value='www.margaretgill.com/thanks.htm'>\
<input name='copyarresponse' type='hidden' id='copyarresponse' value='1'>\
<input name='custom' type='hidden' id='custom' value='0'>\
<input name='defaultar' type='hidden' id='defaultar' value='174666'>\
<input name='allowmulti' type='hidden' id='allowmulti' value='0'>\
<input name='visiblefields' type='hidden' id='visiblefields' value='Name,Email1'>\
<input name='requiredfields' type='hidden' id='requiredfields' value='Name,Email1'>\
<br>Name <input name='Name' type='text' size='16'><br />\
Email <input name='Email1' type='text' size='16'><input type='Submit' name='cmdSubmit' value='Go'>\
		<br><a href='privacy.htm'>Privacy Policy</a>\
		<br><a href='guarantee.htm'>Ethics & Guarantees</a>\
</form></div>";


contactBox = "<a name='contact'></a><div class='sidebox'><div class='section'>Contact Margz</div>\
		<br><b>Phone</b>\
		<br>+61&nbsp;03&nbsp;5348&nbsp;2552\
		<br><b>Mobile</b>\
		<br>0407&nbsp;377&nbsp;173\
		<br><b>Email</b>\
		<br><a href='mailto:info@margaretgill.com'>info@margaretgill.com</a>\
		<br><b>Postal</b>\
		<br>PO Box 574\
		<br>Daylesford VIC 3460\
		<br>Australia\
	</div>";
	
	
logos = "<div class='sidebox' style='background-color:ffffff;text-align:center;'><strong>Join My Community</strong><br /><br /><strong>Tweet Me on Twitter</strong><br /><br /><a href='http://twitter.com/margaretgill/'><img src='http://www.abundantprivatepractices.com/Images/twitter.bmp' width=125 height=70 alt='Follow Me on Twitter' border='0' align=middle><br /><br /></a>\
        <strong>Read My Blog</strong><br /><br /><a href='http://remarkablebusinesssolutions.blogspot.com/'> <img src='http://www.abundantprivatepractices.com/Images/blog.jpg' width=125 height=122 alt='Read My Blog' border='0' align=middle><br /><br /></a>\
		<strong>Be My Friend on Facebook</strong><br /><br /><a href='http://www.facebook.com/people/Margaret-Gill/562474233'><img src='http://badge.facebook.com/badge/562474233.987.1252903480.png' width=125 height=150 alt='FaceBook Badge' border='0' align=middle></a></div>"



	
	


footer = "<div class='footer'>Copyright &copy; 2002 - 2010 Margaret Gill International - All rights reserved worldwide unless \
		otherwise specified.</div></body></html>"

pageBottom = "</div></td><td valign='top' width='150'><div class='sidebox'>\
		<img src='images/marg-2.jpg'  alt='Picture of Margaret' border='0'>\
			<div align='center'><b>Margaret Gill</b></div><font size=-2 face='arial,helvetica'></font></div>"
			+ newsletterBox 
			+ logos +contactBox
			+ "</TD></TR></TABLE>"
			+ footer;

document.write(pageBottom);


/* This little script displays a msg to user if there is one to display
   eg if the user has lodged a form */
var theQuery = "";
theQuery = document.location.search; 
msgStart = theQuery.indexOf("msg=",0) + 4;
msgEnd = theQuery.indexOf("&", msgStart); 
msgEnd = (msgEnd==-1) ? theQuery.length : msgEnd - 5 ; 
msgText = unescape(theQuery.substr(msgStart,msgEnd)); 
if (msgText) { alert(msgText); 
}