//====================================================================================================
//	Function Name	:	Form_Submit
//----------------------------------------------------------------------------------------------------
function Validate_Form(frm)
{
	with(frm)
    {
    	if(!IsEmpty(user_email, 'Please, enter email address.'))
        {
			return false;
        }
		else if(!IsEmail(user_email, 'Please, enter valid email address.'))
		{
			return false;
		}
    	if(!IsEmpty(user_firstname, 'Please, enter first name.'))
        {
			return false;
        }

		for (i=0;i<document.frmRegister.length;i++)
		{
			if ((document.frmRegister[i].alt==2) && (document.frmRegister[i].name!='user_email') && (document.frmRegister[i].name!='user_firstname'))
			{
				if (document.frmRegister[i].type=='text')
				{
					if(!IsEmpty(document.frmRegister[i], 'Please, enter '+document.frmRegister[i].title+'.'))
					{
						return false;
					}
				}
			}
		}

		if(!IsEmpty(code_of_image1, 'Please enter code shown in image.'))
		{
			return false;
		}
		else if(!IsEmpty(code_of_image2, 'Please enter code shown in image.'))
		{
			return false;
		}
		return true;
    }
}
//====================================================================================================
//	Function Name	:	reloadCaptcha
//----------------------------------------------------------------------------------------------------
function reloadCaptcha()
{
	document.getElementById("capatch_image_id").src = "image.php?time="+ Date();
}

