// JavaScript Document

function DrawCaptcha()
    {
		var a = String.fromCharCode(97 + Math.round(Math.random() * 25));
        //var b = Math.ceil(Math.random() * 10)+ '';
		var b=String.fromCharCode(97 + Math.round(Math.random() * 25));
        var c = String.fromCharCode(97 + Math.round(Math.random() * 25));
        //var c = Math.ceil(Math.random() * 10)+ '';  
		//var c = Math.ceil(Math.random() * 10)+ '';  
        //var d = Math.ceil(Math.random() * 10)+ '';  
		var d = String.fromCharCode(97 + Math.round(Math.random() * 25));
        var e = String.fromCharCode(97 + Math.round(Math.random() * 25));
        //var e = Math.ceil(Math.random() * 10)+ '';  
		//var g=Math.ceil(Math.random() * 10)+ '';  


        //var g = Math.ceil(Math.random() * 10)+ '';  
		
        var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e //+ ' '+ f //+' '+ g;
        document.getElementById("txtCaptcha").value = code
    }

    // Validate the Entered input aganist the generated security code function   
	/*
    function ValidCaptcha(){
        var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
        var str2 = removeSpaces(document.getElementById('txtInput').value);
        if (str1 == str2) 
		{
			
		return true;        
		}
		else
		{
			alert("Enter Correct Code !")
        return false;
		}
        
    }*/

    // Remove the spaces from the entered and generated code
	
    function removeSpaces(string)
    {
        return string.split(' ').join('');
    }
