// Set Variables   
    var site    =    'http://www.sixlog.com/';  // this needs to be the 'root' of the site - although keeping that link will still work

    var first    =    (Math.floor(Math.random()*10))+'';
    var second    =    (Math.floor(Math.random()*10))+'';
    var third    =    (Math.floor(Math.random()*10))+'';
    var fourth    =    (Math.floor(Math.random()*10))+'';
    var fifth    =    (Math.floor(Math.random()*10))+'';

    var captcha    =    (first + second + third + fourth);

function jscaptcha()
{
// Display the Captcha Images

    
    
    document.write("<img src=\"" + site + "images/" + first    + ".jpg\" alt=\"\">");
    document.write("<img src=\"" + site + "images/" + second + ".jpg\" alt=\"\">");
    document.write("<img src=\"" + site + "images/" + third + ".jpg\" alt=\"\">");
    document.write("<img src=\"" + site + "images/" + fourth + ".jpg\" alt=\"\">");
    



}

function jscaptchaSubmit(form1)
{
    if(form1.jscaptchaInput.value != captcha)
    {
        alert("Please double check the numbers you entered; I\'m afraid they don\'t quite match");
        valid = false;       
    }
    else
    {
        valid = true;
    }
    return valid;
}
