

function check_contactForm(form, mask)
{

	return true;
}

function check_blogCommentForm(form)
{
	var obj;
	
	//author
	obj = form.getElementById('blog_comm_author');
	if (obj && obj.value.length < 5)
	{
		alert("Please enter your name in the Name box...");
		obj.focus();
		return false;
	}

	//email
	obj = form.getElementById('blog_comm_email');
	if (obj && obj.value.length < 7)
	{
		alert("Please enter your email in the Email box...");
		obj.focus();
		return false;
	}
	if (obj &&	!obj.value.match(/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/) && 
				!obj.value.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|\w{3}|\w{4})$/))
	{
		alert("Email address doesn't appear to be correct...");
		obj.focus();
		return false;
	}

	//url


	//message
	obj = form.getElementById('blog_comm_body');
	if (obj && obj.value.length < 10)
	{
		alert("Please enter your comment...");
		obj.focus();
		return false;
	}

	return true;
}


function m_resized()
{
	var par = document.getElementById('editor_fullscreen'); if (!par) return;
	if (parseInt(par.offsetHeight) < parseInt(document.body.offsetHeight)) return;

	var m_el = document.getElementById('main_Location');
	if (m_el)
		m_el.style.minHeight = (parseInt(m_el.offsetHeight) + parseInt(par.offsetHeight) - parseInt(document.body.offsetHeight)) + "px";
}