/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//  Copyright © 2007 Minds Eye Visualisation. All Rights Reserved
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  File Name:      mevRegValidation.js
//
// 	Purpose:        Validate request field value
//                  
//  Author:         Simon Kerley
//
//  History:        30 May 2007 ~ Created
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////

function ValidateRequestField(fldRequest)
{
    var strFldVal=fldRequest.value;
    var bRet;

    if (!strFldVal.match(/^\[\w+:\d:\d:\d:[0-9a-fA-F]{32}\]$/))
    {
        alert("The supplied Request Key \"" + strFldVal + "\" is invalid.\nPlease ensure that you have correctly copied the key\ngenerated by the  mevXTRAReg.exe registration applet.\nIf you continue to experience difficulties then contact us at:\nsupport@the-mindseye.co.uk");
        fldRequest.focus();
        bRet=false;
    }
    else
        bRet=true;


    return bRet;
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//end of file

