function contactUs(form)
{
	if( form.txName.value == "" ) {
		alert("Name is a compulsory field");
		form.txName.focus();
		return false;
	}
	else if( form.txTel.value == "" ) {
		alert("Telephone is a compulsory field");
		form.txTel.focus();
		return false;
	}
	else if ( !(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.txEmail.value)) ) {
		alert("Email is a compulsory field");
		form.txEmail.focus();
		return false;
	}
	
	return true;
}


function adjustHeight(elem1, elem2, elem3)
{
    var e1 = document.getElementById(elem1);
    var e2 = document.getElementById(elem2);
    var e3 = document.getElementById(elem3);
	
    if (e1 && e2 && e2)
    {
        var h1 = e1.offsetHeight;
        var h2 = e2.offsetHeight;
        var h3 = e3.offsetHeight;
        
        if(Math.max(h1, h2, h3) == h1)
        {
			e2.style.height = h1 + "px";
			e3.style.height = h1 + "px";
		}	
		else if(Math.max(h1, h2, h3) == h2)
		{
			e1.style.height = h2 + "px";
			e3.style.height = h2 + "px";
		}	
		else
		{
			e1.style.height = h3 + "px";
			e2.style.height = h3 + "px";
		}
	}
	else
		return false;
}
