                                                      /* URL: gravimotion.info
                                                         File: library.js
                                                         Created Feb 22 2008
                                                         By Henri Salles
   
                                                         last update Aug 29 2009
                                                      */

  

var Todate  = new Date();
var Today   = Todate.getDate();
var Tomonth = Todate.getMonth() +1;
var Toyear  = Todate.getFullYear();

var inciter = "text";
var caption = "text";
var caboose = "text";


                                                      /* Function Display Today Date() */
function DisplayToDayDate()
   {
   document.write(" Today is " + Tomonth + "/" + Today +  "/" +  Toyear + ". <br /><br />" );
   }
   

                                                      /* Display the year: used in copyright line */
function DisplayToyear()
   {
   document.write(Toyear);
   }




/************************************************************************************************************************* 
                                                         BookStore   Choose either address: If I go in vacation I switch and sell no more books myself! all customers go to ABP 
                                                         Note <p> and </p> tags can start inciter and end caboose.
                                                         Call:
                                                         BkStrLink("" , "" , "");
                                                         MAKE SURE BELOW THAT ONLY ONE OF THEM IS ACTIVE!
*************************************************************************************************************************
*/


                                                      /* PDBOOKSTORE
                                                         This one ran up to  - > April 4 2008 BUT WITH AN ERROR OF CODE!
                                                         reinstated May 7  2008 - > May 8 
                                                         then from  May 12 2008 - > May 21 2009 
LINK AND FUNCTION DISCONTINUED
function BkStrLink(inciter, caption , caboose)
   {document.write  ( inciter + "<a  href='http://www.pdbookstore.com/comfiles/pages/HenriSalles.shmtl' title='The Gravimotion Mechanism.&#10;Available at American Book Publishing'>"
          + caption + "</a>" 
          + caboose );}
                                                      */         
          

                                                      /* MY OWN SELLING
                                                         Turned on April 4 2008 - > May 7
                                                         Turned back on May 8 2008 - > May 12 (new pict on CAE)
                                                         Turned back on May 21 2009 - > till May 23
                                                         Turned back on AUG 2009 (ABP goes out of print! 
                                                         CHANGED http... /bookstore.html to bookstore.php on Dec 4 2009                                                        
                                                      */                                                  
function BkStrLink(inciter, caption , caboose)
   {document.write  ( inciter + "<a  href='http://www.gravimotion.com/bookstore.php' title='Get the book direct from the author'>"
          + caption + "</a>" 
          + caboose );}
                                                     


                                                      /* AMAZON
                                                         Function created May 23 2009
                                                         Implemented May 23 2009 - > 
                                                      TURNED OFF AUG 2009 when American Book Publishing decided to call it quits!
function BkStrLink(inciter, caption , caboose)
   {document.write  ( inciter + "<a  href='http://www.amazon.com/Harmony-Reality-Henri-Salles/dp/1589824210/ref=sr_1_1?ie=UTF8&s=books&qid=1243081875&sr=1-1' title='Get the book from Amazon'>"
          + caption + "</a>" 
          + caboose );}
                                                      */





                                                      /* set a function to sell on ebay! */


/************************************************************************************************************************* 
                                                         Buttons
                                                         My own click on button function. 
                                                         Introduced Sept 7 2008 Note Jan 1 2009: 
                                                         &#34; is a double quote: " It looks like "there are double quotes within double quotes" of these double quotes! But it works folks!
                                                         BOTH FUNCTIONS ARE NOT USED ANYMORE
*************************************************************************************************************************


function navigationbutton(title, styles, ref, buttonCaption)
   {document.write  ("<input type='button' title='" + title + "' style='" +  styles +"' onclick='window.location.href=&#34;" + ref + "&#34;' value='" + buttonCaption + "' />" );}
                                                      /* Decoded that gives:
                                                         <input type="button" title="titlePARAM  "  style=" stylesPARAM  " onclick="window.location.href="  refPARAMETER "  " value="  buttoncaptionPARAM " />        */
   
   
                                                      /* As above I need TWO buttons to sell my book 
                                                         here is AMERICAN BOOK Button 
                                                         introduced Sept 14 2008*/
function bookbutton(title, styles, buttonCaption)
   {document.write  ("<input type='button' title='" + title + "' style='" +  styles +"' onclick='window.location.href=&#34;" + "http://www.pdbookstore.com/comfiles/pages/HenriSalles.shmtl" + "&#34;' value='" + buttonCaption + "' />" );}
                                                      
                                                      /* and here is my own bookstore button  DORMANT for the time being
DISABLED NOT IN USE
function bookbutton(title, styles, buttonCaption)
   {document.write  ("<input type='button' title='" + title + "' style='" +  styles +"' onclick='window.location.href=&#34;" + "http://www.gravimotion.com/bookstore.html" + "&#34;' value='" + buttonCaption + "' />" );}
                                                      */
