//====================================================================================================
//	Function Name	:	Validate_Form
//----------------------------------------------------------------------------------------------------
function Validate_Form(frm)
{
	with(frm)
    {
		if(!IsEmpty(contact_name, Contact_JS_Msg_Contact_please_enter + Contact_JS_Msg_Contact_Name))
		{
			contact_name.focus();
			return false;
		}

		if(!IsEmpty(contact_company, Contact_JS_Msg_Contact_please_enter + Contact_JS_Contact_Company))
		{
			contact_company.focus();			
			return false;
		}
 		
		if(!IsEmpty(contact_country, Contact_JS_Msg_Contact_please_enter + Contact_JS_Msg_Contact_Country))
		{
			contact_country.focus();			
			return false;
		}
 		
		if(!IsEmpty(contact_email, Contact_JS_Msg_Contact_please_enter + Contact_JS_Msg_Contact_Email))
		{
			contact_email.focus();			
			return false;
		}
		else if(!IsEmail(contact_email, Contact_JS_Msg_Contact_please_enter + Contact_JS_Msg_Contact_please_enter_valid+Contact_JS_Msg_Contact_Email))
		{
			contact_email.focus();			
			return false;
		}
 		
		if(!IsEmpty(contact_phone, Contact_JS_Msg_Contact_please_enter + Contact_JS_Msg_Contact_Phone))
		{
			contact_phone.focus();			
			return false;
		}
		
	

		if(!IsEmpty(code_of_image, Contact_JS_Msg_Contact_please_enter + Contact_JS_Msg_Contact_Img_Verification))
		{
			code_of_image.focus();			
			return false;
		}		
	}
	return true;
}

function reloadCaptcha()
{
	document.getElementById("capatch_image_id").src = "image.php?time="+ Date();
}
