 
// Author:The Chairman & Chief Executive
// isms.org.uk
// isms2002@btinternet.com
// last update January 2010

quotes=19;
ism=new Array(quotes);
auth = new Array(quotes);
ism[0] = "Examples from the ism database";
ism[1] = "ism #72: I'm not au pair with the situation";
ism[2] = "ism #133: My new car will be a Fiat Accompli";
ism[3] = "ism #304: Let's sort out the modus operandi, or at least how we do it";
ism[4] = "ism #612: Did you win the new contract, boss?      Au naturel!";
ism[5] = "ism #725: Yes I'm guilty - Mayor Cooper  (mea culpa)";
ism[6] = "ism #733: The French don't even have a word for entrepreneur";
ism[7] = "ism #746: The piste a'la ristonce was the letter that …..";
ism[8] = "ism #758: Accidents aren't my faux pas";
ism[9] = "ism #846: Italian is not my forte!";
ism[10] = "ism #909: Peter: I though they'd cleared all street traders out of here?   Trader: They have but we're bony fido";
ism[11] = "ism #913: He got an ex gracias payment";
ism[12] = "ism #922: Zwei grand beer, sil vous plait";
ism[13] = "ism #1045: Take me out for lunch and give me a coup de gras!";
ism[14] = "ism #1230: Do we need to scour so much today or is it all part of our persona non gratis. ";
ism[15] = "ism #1246: Bring some food for our lunch-time soiree ……";
ism[16] = "ism #1322: He wants everything, the whole monte-christum.";
ism[17] = "ism #1385: It's her crème de resistance";
ism[18] = "ism #1403: It's just passé as they say in Spain";
ism[19] = "ism #1413: Shall we just have the capo-de-monte menu?";
auth[0] = "";
auth[1] = " The President of the ISMS";
auth[2] = " The President of the ISMS";
auth[3] = " Geoff Wynn";
auth[4] = " Dom Gittins' boss";
auth[5] = " Anon (Bernadette Bowley)";
auth[6] = " George Bush (from Kristins Amadeus and others)";
auth[7] = " Staff newsletter (from Greg Olszowski)";
auth[8] = " Car dealer, as part of safety talk";
auth[9] = " Anon (Andy)";
auth[10] = " Anon street trader (from Ian Bowley)";
auth[11] = " Anon (from Iain Harris)";
auth[12] = " Chris Keylock";
auth[13] = " Fievel";
auth[14] = " Fievel";
auth[15] = " Joyce Parkin";
auth[16] = " Fievel";
auth[17] = " Don Overall";
auth[18] = " Baz Cox";
auth[19] = " The President of the ISMS";

quoteShowing=0;
function nextQuote()
{
  // restart at 0 if done
  if (quoteShowing >= quotes) quoteShowing=-1;
  quoteShowing++;
  // assign the value in the textbox to the new quote
document.quoteForm.quoteHere.value = quoteShowing + " of "+ quotes + "\n\n" +ism[quoteShowing] + "\n\n" + "source: " + auth[quoteShowing];
}
function prevQuote()
{
  // restart at end if on 0
  if (quoteShowing <= 0) quoteShowing=quotes+1;
  quoteShowing--;
  document.quoteForm.quoteHere.value = quoteShowing + " of "+ quotes + "\n\n" +ism[quoteShowing] + "\n\n" + "source: " + auth[quoteShowing];
}
function randQuote()
{ 
  // Make sure you don't show the same quote twice in a row
  prevQuoteShowing = quoteShowing;
  while(quoteShowing == prevQuoteShowing)
    quoteShowing = Math.ceil(Math.random() *quotes);
  document.quoteForm.quoteHere.value =  "\n\n" + ism[quoteShowing] + "\n\n" + "source: " + auth[quoteShowing];
}

function lastQuote()
{
  quoteShowing = quotes;
  document.quoteForm.quoteHere.value =  "\n\n" +ism[quotes] + "\n\n" + "source: " + auth[quotes];
}

window.onload=randQuote







