 
// Author:Brandon Checketts
// Homepage: http://www.apeleon.net/~microbit/brandon.html
// Email: Brandon@microbits.com
// For this script and more, visit http://wsabstract.com

numQuotes=16;
quoteArray = new Array(numQuotes);
quoteArray[0]="\French bank rates change on a monthly basis. Contact us to stay informed.";
quoteArray[1]="\We are able to secure your mortgage within a few days, if all the documents are in place."
quoteArray[2]="\There is some flexibility in terms of the required documentation for French mortgage applications – we can help with this. "
quoteArray[3]="\A parent can put a son or daughter on a mortgage, providing they are 18."
quoteArray[4]="\80% of our clients are so pleased with our service, they would recommend us to a friend."
quoteArray[5]="\French interest rates are usually 1-2% below those in the UK. "
quoteArray[6]="\We can fix your French interest rates for the entire duration of the mortgage – up to 30 years – even on interest only. " 
quoteArray[7]="\You can borrow up to 100% of the funds required to purchase your property."
quoteArray[8]="\We can secure an equity release mortgage in France, for refinancing a UK sterling mortgage."
quoteArray[9]="\Many of our mortgages come without early redemption fees. "
quoteArray[10]="\Due to currency exchange risks and tax benefits, it is better value to purchase in France through a French mortgage."
quoteArray[11]="\Athena Mortgages can provide a complete, tailored financial simulation within 24 hours."
quoteArray[12]="\Athena Mortgages select the best current deals from among the most recognised and trusted banks in France."
quoteArray[13]="\We use our unique relationships with partners to minimise your application costs at each stage (e.g. bank current account, currency broker, insurance broker etc)."
quoteArray[14]="\Athena Mortgages is a key account-holder with major French banks, and can secure exclusive rates not available to individuals."
quoteArray[15]="\Athena Mortgages are experts in purchasing leaseback, buy-to-let, second home and equity release options."
quoteArray[16]="\Every client or partner has a dedicated consultant who performs follow-up on their account. "
quoteShowing=-1;

function nextQuote()
{
  // restart at 0 if done
  if (quoteShowing >= numQuotes) quoteShowing=-1;
  quoteShowing++;

  // assign the value in the textbox to the new quote
  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

function prevQuote()
{
  // restart at end if on 0
  if (quoteShowing <= 0) quoteShowing=numQuotes+1;
  quoteShowing--;

  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

function randQuote()
{ 
  // Make sure you don't show the same quote 2x in a row
  prevQuoteShowing = quoteShowing;
  while(quoteShowing == prevQuoteShowing)
    quoteShowing = Math.ceil(Math.random() * numQuotes);

  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

window.onload=randQuote
