﻿// JScript File

function popup(L, T, msg) 
{
    infoTable=document.getElementById('InfoPopup');
    
    infoTable.style.display = "block";
    infoTable.style.position = "absolute";
    infoTable.style.left = L;
    infoTable.style.top = T;
    
    content=document.getElementById('contentDiv');
    
    //Replace with case statement...
    
    switch (msg)
    {
        case 1: 
            content.innerHTML = '<p><b>Your phone number</b></p><p>Please enter at least one telephone number. In many cases we or our partners will need to contact you to ask you for more details to obtain an accurate quote.</p><p>Your number will not be passed on for any other purpose.</p>';
            break;

        case 2: 
            content.innerHTML = '<p><b>Your phone number</b></p><p>Please enter at least one telephone number. In many cases we or our partners will need to contact you to ask you for more details to obtain an accurate quote.</p><p>Your number will not be passed on for any other purpose.</p>';
            break;
        
        case 3: 
            content.innerHTML = '<p><b>Your phone number</b></p><p>Please enter at least one telephone number. In many cases we or our partners will need to contact you to ask you for more details to obtain an accurate quote.</p><p>Your number will not be passed on for any other purpose.</p>';
            break;
            
        case 4: 
            content.innerHTML = '<p><b>Your email</b></p><p>We ask for your email address so we can contact you about this quote request if necessary.</p><p>This information may also be used by us or selected partners to advise you of other useful products or services. You can stop these emails with just one click at any point.</p><p>If you\'re still concerned, and don\'t wish to enter your email address just enter privacy@mediaingenuity.com instead.</p>';
            break;
            
        case 5: 
            content.innerHTML = '<p><b>Your address</b></p><p>We need your address for verification purposes only.  We will not post to your address.</p>';
            break; 
            
        case 6: 
            content.innerHTML = '<p><b>Do you need to self certify your income?</b></p><p>Self-certification mortgages are available to self-employed people, and also to some who are employees, who find it difficult to prove their income.</p><p>This may be for a number of reasons, such as:</p><ul><li>accounts do not reflect their current income</li><li>accounts are not readily available from an accountant</li><li>income is made up of bonuses</li><li>income fluctuates</li><li>income is made up from dividends</li><li>income comes from more than one source</li></ul>';
            break;                          
            
        case 7: 
            content.innerHTML = '<p><b>Had a CCJ issued against you?</b></p><p>A CCJ is a County Court Judgement, this could be issued to you if you owe someone money, even an unpaid parking fine.</p>';
            break;                          
            
        case 8: 
            content.innerHTML = '<p><b>Had a IVA issued against you?</b></p><p>An IVA is an Individual Voluntary Arrangement; this allows someone who is bankrupt to continue in business so they can pay the debts.</p>';
            break;        

        case 9: 
            content.innerHTML = '<p><b>Your credit history</b></p><p>Have you ever been declared bankrupt or had an IVA, CCJ or default registered against you, or have you missed any secured loan or mortgage payments in the last 12 months? Even if you have, we can help.</p>';
            break;  
            
        case 10: 
            content.innerHTML = '<p><b>Why are my contact details so important?</b></p><p>We will always try to find the best value product for you. This means we may need to give you a quick telephone call to find out a bit more about your circumstances.</p><p>In order to get hold of you quickly it is essential for us to have accurate telephone and email details.</p><p>You are under absolutely no obligation and there will be no pressure selling. Once your enquiry is complete we will not contact you again unless you have requested us to do so.</p>';
            break;             

        case 11: 
            content.innerHTML = '<p><b>Postcode</b></p><p>We need our customers’ address details to verify eligibility for receiving a loan quote.  We will NOT use address details to run a credit check. We will NOT post to your address.</p>';
            break; 

        case 12: 
            content.innerHTML = '<p><b>Phone Number</b></p><p>Because the vast majority of our customers do not get the loan they apply for from a comparison table, they are best off speaking to a an independent expert advisor, to provide a quote on the cheapest loans actually available for their circumstances.  We pass you to an expert that specialises in your particular requirements and will have access to deals not available on the high street.</p>';
            break;            
                                    
    }  
}

function unpop() 
{
    infoTable=document.getElementById('InfoPopup'); 
    infoTable.style.display = "none"; 
}