function view_paid_ad(id)
{
	document.location.href='PaidAds/paid-ads-view/id-'+id;
}

function validate_contact_us(contact_us)
{
	var emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;
	
	var name = contact_us.name.value;
	var email = contact_us.email.value;
	var comment = contact_us.comment.value;
	var recaptcha_response_field = contact_us.recaptcha_response_field.value;

	if(name == "")
	{
		inlineMsg('name','You must enter your Name...',4);
		return false;
	}
	
	if( email == "" )
	{
		inlineMsg("email","You must enter E-mail ID...",4);
		return false;
	}
	
	if(!email.match(emailRegex))
	{
		inlineMsg('email','You have entered an invalid email...',4);
		return false;
	}
	
	if(comment == "")
	{
		inlineMsg('comment','You must enter some comments or questions...',4);
		return false;
	}
	
	if(recaptcha_response_field == "")
	{
		inlineMsg("recaptcha_response_field","Type above text here...",4);
		return false;
	}
	return true;
}
