function adjustHeight(elem1, elem2)
{
    var e1 = document.getElementById(elem1);
    var e2 = document.getElementById(elem2);
    if (e1 && e2)
    {
        var h1 = e1.offsetHeight;
        var h2 = e2.offsetHeight;
        if(Math.max(h1, h2) == h1)
        {
            e2.style.height = h1 + "px";
        }
        else
        {
            e1.style.height = h2 + "px";
        }
    }
}

function contact(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;
}
