//====================================================================================================
//	Function Name	:	Validate_Form
//----------------------------------------------------------------------------------------------------
function Validate_Form(frm)
{
	with(frm)
    {
		if(!IsEmpty(cont_name, "Please enter name"))
		{
			cont_name.focus();
			return false;
		}
 		if(!IsEmpty(cont_email, "Please enter email address"))
		{
			cont_email.focus();			
			return false;
		}
		else if(!IsEmail(cont_email, "Invalid email address"))
		{
			cont_email.focus();			
			return false;
		}
		
		if(!IsEmpty(code_of_image, 'Please enter verification code shown in image.'))
		{
			return false;
		}
	}
	return true;
}



//====================================================================================================
//	Function Name	:	reloadCaptcha
//----------------------------------------------------------------------------------------------------
function reloadCaptcha(site_cat)
{
	if(site_cat == 0)
		document.getElementById("capatch_image_id").src = "image.php?time="+ Date();
	else
		document.getElementById("capatch_image_id").src = "../image.php?time="+ Date();
}

