//menus for left and bottom

function lastMod(fr){
dateout=new Date(document.lastModified);
mm=dateout.getMonth()+1 ;
dd=dateout.getDate();
yy=dateout.getFullYear();
if (fr){document.write(" <h5>Last updated: " + mm+"/"+dd+"/"+yy+"&nbsp&nbsp<br>this page is often updated<br>reload - refresh to check</h5>");} 
else {document.write("<h5>Last updated: " + mm+"/"+dd+"/"+yy+"&nbsp&nbsp</h5>");}
}
function contact(){
username1 = "admin8";
username2= "webmaster";
domain = "sahasraadhipura.org";

	s = window.open('','Contact_us','width=500, height=400, resizable=1');
	s.document.open();
	s.document.write("<html><head><title>Contact us<\/title><\/head><body><center>");
	s.document.write("<h2>Email us<\/h2>");
	s.document.write("<p>To contact us about anything relating to yoga or the creation of this temple click the following link : ");
	s.document.write("<a href='mailto:" + username1 + "@" + domain + "'>");
	s.document.write(username1 + "@" + domain +"<\/a><\/p><br><p>");
	s.document.write("To contact the webmaster about the performance of the site click the following link : ");
	s.document.write("<a href='mailto:" + username2 + "@" + domain + "'>");
	s.document.write(username2 + "@" + domain +"<\/a><\/p>");
	s.document.write("<p><input type='button' value='Close Window' name='close' onClick='window.close()'></p>");
	s.document.write("<h5>The contact sheet is made this way to prevent spam, and you can rest assured we will do everything we can to keep your email adress away from spammers.</h5>");
	s.document.write("<\/center><\/body><\/html>");
	
	s.document.close();
	if( s.focus ) { s.focus(); }
}
function quickcom(){
titl=document.title;
	f = window.open('','quick_com','width=500, height=400, resizable=1');
	f.document.open();
	f.document.write("<html><head><title>Quick comment<\/title><\/head><body><center>");
	f.document.write("<h2>Quick comment<\/h2>");
	ea="sahasr";
a="@";

f.document.write('<div id="border">');
f.document.write('<FORM name="quickcom" METHOD="POST" ACTION="http://www.sahasraadhipura.org/bin/formmail.pl">');
f.document.write('<INPUT TYPE="hidden" NAME="recipient" VALUE="'+ea+a+'sahasraadhipura.org">');
f.document.write('<INPUT TYPE="hidden" NAME="subject" VALUE="Quick comment Sahasra">');
f.document.write('<INPUT TYPE="hidden" NAME="pagetitle" VALUE='+titl+'>');
f.document.write('<p>Feel free to send us an (anonymous) comment about anything on this web site, design, layout, bugs, content etc. Include email address if you want a reply.</p>');
f.document.write('Name: ');
f.document.write('<input type="text" name="name"');
f.document.write('value="Optional" size="20" onFocus="document.quickcom.name.select()">');
f.document.write(' Mail: ');
f.document.write('<input type="text" name="mail"');
f.document.write('value="Optional" size="20" onFocus="document.quickcom.mail.select()">');
f.document.write('<br>');
f.document.write('Comment: <br>');
f.document.write('<textarea name="comment"');
f.document.write('rows="5" cols="50" ></textarea>');
f.document.write('<br>');
f.document.write('<input type="submit" value="Send">');
f.document.write('<input type="reset" value="Reset">');
f.document.write('</form></div><br>');

}
	
	
	
	
function leftMenu(){
document.write("<div id= 'emptyleft'> ");
 document.write(" <div id= 'leftcontent'><br>");
  document.write("<p><a href='http://www.sahasraadhipura.org/Articles/Articles%20index.html '>Articles   aboutPak Hardjanto, kundalini yoga, sacred science<br>  and more. </a> </p>");
  document.write("<p> <a href='http://www.sahasraadhipura.org/plan%20for%20complex/plan.html '>Plan    for the temple<br> &nbsp;complex</a></p>");
  document.write("<p> <a href= 'http://www.sahasraadhipura.org/events/events.html'>Events</a> </p>");
	document.write("<p> <a href= 'http://www.sahasraadhipura.org/Images/pictures.html '>Pictures    of the temple <br>   complex</a> </p>");
  document.write("<p><a href= 'http://www.sahasraadhipura.org/Calendar/calendar.html '>Calendar</a></p> ");
  document.write("<p><a href= 'http://www.sahasraadhipura.org/News/news.html '>News</a></p>");
 document.write(" <p><a href= 'http://www.sahasraadhipura.org/Usefull stuff/Usefull stuff.html '>Useful stuff and links</a></p>");
  document.write("<p><a href= 'javascript:contact()'>Email us</a></p>");
	document.write("<p><a href= 'javascript:quickcom()'>Quick comment</a></p>");
 document.write(" <p><a href= 'http://www.sahasraadhipura.org/search.html'> Search</a><br>");
   document.write("</p> ");
  document.write(" <p><a href= 'http://www.sahasraadhipura.org/index.html'> Home</a><br>");
   document.write("   <br>  </p> </div></div><br><br>");

}


function bottomMenu(){

document.write(" <div id= 'menubottom'>  <a href= '#top '>Top</a>&nbsp;&nbsp ");
document.write("<a href= 'http://www.sahasraadhipura.org/Articles/Articles%20index.html '>Articles </a>&nbsp;&nbsp;"); 
document.write("<a href= 'http://www.sahasraadhipura.org/plan%20for%20complex/plan.html '>Plan</a>&nbsp;&nbsp;");  
document.write("<a href= 'http://www.sahasraadhipura.org/events/events.html'>Events</a>&nbsp;&nbsp;");
document.write("<a href= 'http://www.sahasraadhipura.org/Images/pictures.html '>Pictures </a>&nbsp;&nbsp;"); 
document.write("<a href= 'http://www.sahasraadhipura.org/Calendar/calendar.html '>Calendar </a>&nbsp;&nbsp;"); 
document.write("<a href= 'http://www.sahasraadhipura.org/News/news.html '>News </a>&nbsp;&nbsp;"); 
document.write("<a href= 'http://www.sahasraadhipura.org/Usefull stuff/Usefull stuff.html '>Useful </a>&nbsp;&nbsp");
document.write("<a href= 'javascript:quickcom()'>Quick comment</a>&nbsp;&nbsp");
document.write("<a href= 'http://www.sahasraadhipura.org/search.html '>Search</a>&nbsp;&nbsp; "); 
document.write("<a href= 'http://www.sahasraadhipura.org/index.html '>Home </a>&nbsp;&nbsp "); 
document.write("</div>");}

