/* Code for empty validation starts here..*/
function emptyvalidation(entered, alertbox)
{
	with (entered)
	{
		while (value.charAt(0) == ' ')
		value = value.substring(1);
		while (value.charAt(value.length - 1) == ' ')
			value = value.substring(0, value.length - 1);
		if (value==null || value=="")
		{
			if (alertbox!="") alert(alertbox);
			return false;
		}
		else return true;
	}
}
/* Code for empty validation ends here..*/

/* Code for Domain validation starts here..*/
function checkDomain(emailid)
{

    var domain_status = $.ajax({url: 'http://www.camstar.ca/email-validate.php?email='+emailid,async: false}).responseText;
	
   return  domain_status;
}
/* Code for Domain validation ends here..*/

/* Code for captcha refresh starts here..*/
function captcha_refresh()
{
	$("#button_div").attr('src','http://www.camstar.ca/button.php?'+Math.random());
    return false;
}
function captcha_refresh1()
{
	$("#button_div1").attr('src','http://www.camstar.ca/button.php?'+Math.random());
    return false;
}
/* Code for captcha validation ends here..*/
