HelpText = new Array;
HelpText['Employer_name'] = "Please enter the name of the company you work for.  This name must not be longer than 30 digits.";
HelpText['GrossNet'] = "Gross amount is before Tax is deducted from your Salary and the Net amount is after Tax has been deducted from your Salary.";
HelpText['Payslip_type'] = "You can view all different types of Payslips on our front page.";
HelpText['personal_details'] = "Enter your Personal Details in the fields below.";
HelpText['card_details'] = "Enter your Card Details in the fields below.";
HelpText['payment_method'] = "Specify whether you wish to pay for your account online by credit or debit card, or whether you will settle your account offline by cheque or bank transfer. If you choose to pay by cheque or bank transfer we will email you a pro forma invoice and remittance advice with further instructions, your account will not be activated until we receive your payment.";
HelpText['cardnumber'] = "This is a long number printed on the front of the card.";
HelpText['expiry'] = "Select the month and year that your card expires from the drop-down list.";
HelpText['cvv'] = "Security Number is found at the back side of the card on the signiture strip, Please enter last 3 digits!<br><br><div align='center'><img src='img/securitycode.jpg'></div><br>See the illustrations above for assistance identifying your card security code.";
HelpText['begin'] = "If your card has a begin, start or valid from date, select the month and year from the drop-down list. This field is not applicable to all cards, if your card does not have a begin date, leave this field blank.";
HelpText['issue'] = "If your card has an issue number, enter it here. This field is not applicable to all cards, if your card does not have an issue number, leave this field blank.";
HelpText['card_owner'] = "If the registered name and address of the card you are using to pay (normally the name and address shown on the card statement) is not the same as those you have entered for the Account Owner above, uncheck this box and enter the card holder's contact details.";
HelpText['NI_details'] = "NI No is your National Insurance Number.  It starts with two letters and six numbers and one letter at the end, for example, XX 999999 Y";
HelpText['payslipDates'] = "For example, if you require 3 monthly payslips from 28th August until 28th October.  Enter 28th August in the From box and 28th October in the Until box, then you will receive 3 payslips dated 28/08/04, 28/09/04, 28/10/04. <br><br>For Example, If you require 3 weekly payslips from 03/12/04 until 17/12/04, Enter 03/12/04 in the from box and 17/12/04 in the until box then you will recieve 3 payslips dated 03/12/04, 10/12/04, 17/12/04.  <br><br>Common monthly pay date is 28th of each month, and common weekly pay day is Friday of each week.";
HelpText['payslips_required'] = "Please select how would you like us to make your payslips Weekly, Monthly or Fortnightly.";
HelpText['GrossSalaryAmount'] = "Please enter a Total Gross Amount that you earned in the Year, you require a P60 for.";
HelpText['contactdetails'] = "<br><br>If you require assistance in filling in this page, Please call us on <br>0845 22 616 77.";
HelpText['helptxt'] = "You will find this icon throught the order page, please use it to assist you.";
HelpText['TaxOfficeName'] = "Normally it is local tax office where the business is based.";
HelpText['TaxRefNo'] = "Normally tax office reference number starts with 3 numbers and combinations of letters and numbers, for example, 777/MK2244";
HelpText['AnnualSalaryAmount1'] = "Normally it is local tax office where the business is based.";


<!--
function PopUpHelp(field,yArg,xArg) {
  if (yArg == undefined) { yArg = -10; }
  if (xArg == undefined) { xArg = 20; }
  document.getElementById("helptext").innerHTML = HelpText[field] + HelpText['contactdetails'];
  document.getElementById("helplayer").style.left = GetElementLeft(document.images[field]) + xArg + "px";
  document.getElementById("helplayer").style.top = GetElementTop(document.images[field]) + yArg + "px";
  document.getElementById("helplayer").style.visibility = "visible";
  if (field == "payslipDates") { document.getElementById("txtHowIsYourSalaryPaid").style.visibility = "hidden"; }
  if (field == "GrossSalaryAmount") { document.getElementById("payslip_type").style.visibility = "hidden"; }
//  if (field == "cvv") { document.getElementById("txtExpiryMonth").style.visibility = "hidden"; document.getElementById("txtExpiryYear").style.visibility = "hidden";}
//  if (field == "issue") { document.getElementById("txtExpiryMonth").style.visibility = "hidden"; document.getElementById("txtExpiryYear").style.visibility = "hidden";}
//  if (field == "begin") { document.getElementById("txtExpiryMonth").style.visibility = "hidden"; document.getElementById("txtExpiryYear").style.visibility = "hidden";}


}

function GetElementLeft(eElement)
{
   if (!eElement && this)                    // if argument is invalid
   {                                         // (not specified, is null or is 0)
      eElement = this;                       // and function is a method
   }                                         // identify the element as the method owner

   var DL_bIE = document.all ? true : false; // initialize var to identify IE

   var nLeftPos = eElement.offsetLeft;       // initialize var to store calculations
   var eParElement = eElement.offsetParent;  // identify first offset parent element

   while (eParElement != null)
   {                                         // move up through element hierarchy

      if(DL_bIE)                             // if browser is IE, then...
      {
         if( (eParElement.tagName != "TABLE") && (eParElement.tagName != "BODY") )
         {                                   // if parent is not a table or the body, then...
            nLeftPos += eParElement.clientLeft; // append cell border width to calcs
         }
      }
      else                                   // if browser is Gecko, then...
      {
         if(eParElement.tagName == "TABLE")  // if parent is a table, then...
         {                                   // get its border as a number
            var nParBorder = parseInt(eParElement.border);
            if(isNaN(nParBorder))            // if no valid border attribute, then...
            {                                // check the table's frame attribute
               var nParFrame = eParElement.getAttribute('frame');
               if(nParFrame != null)         // if frame has ANY value, then...
               {
                  nLeftPos += 1;             // append one pixel to counter
               }
            }
            else if(nParBorder > 0)          // if a border width is specified, then...
            {
               nLeftPos += nParBorder;       // append the border width to counter
            }
         }
      }
      nLeftPos += eParElement.offsetLeft;    // append left offset of parent
      eParElement = eParElement.offsetParent; // and move up the element hierarchy
   }                                         // until no more offset parents exist
   return nLeftPos;                          // return the number calculated
}

function GetElementTop(eElement)
{
   if (!eElement && this)                    // if argument is invalid
   {                                         // (not specified, is null or is 0)
      eElement = this;                       // and function is a method
   }                                         // identify the element as the method owner

   var DL_bIE = document.all ? true : false; // initialize var to identify IE

   var nTopPos = eElement.offsetTop;         // initialize var to store calculations
   var eParElement = eElement.offsetParent;  // identify first offset parent element

   while (eParElement != null)
   {                                         // move up through element hierarchy
      if(DL_bIE)                             // if browser is IE, then...
      {
         if( (eParElement.tagName != "TABLE") && (eParElement.tagName != "BODY") )
         {                                   // if parent a table cell, then...
            nTopPos += eParElement.clientTop; // append cell border width to calcs
         }
      }
      else                                   // if browser is Gecko, then...
      {
         if(eParElement.tagName == "TABLE")  // if parent is a table, then...
         {                                   // get its border as a number
            var nParBorder = parseInt(eParElement.border);
            if(isNaN(nParBorder))            // if no valid border attribute, then...
            {                                // check the table's frame attribute
               var nParFrame = eParElement.getAttribute('frame');
               if(nParFrame != null)         // if frame has ANY value, then...
               {
                  nTopPos += 1;              // append one pixel to counter
               }
            }
            else if(nParBorder > 0)          // if a border width is specified, then...
            {
               nTopPos += nParBorder;        // append the border width to counter
            }
         }
      }

      nTopPos += eParElement.offsetTop;      // append top offset of parent
      eParElement = eParElement.offsetParent; // and move up the element hierarchy
   }                                         // until no more offset parents exist
   return nTopPos;                           // return the number calculated
}
//-->


<!--

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }

   
  if(document.getElementById("txtHowIsYourSalaryPaid") != null) { document.getElementById("txtHowIsYourSalaryPaid").style.visibility = "visible"; }
  if(document.getElementById("payslip_type") != null) { document.getElementById("payslip_type").style.visibility = "visible"; }
  if(document.getElementById("txtExpiryMonth") != null) { document.getElementById("txtExpiryMonth").style.visibility = "visible"; }
  if(document.getElementById("txtExpiryYear") != null) { document.getElementById("txtExpiryYear").style.visibility = "visible"; }
  
}
//-->
