function adjustLayout()
{
  // Get natural heights
  var cHeight = xHeight("centercontent");
  var lHeight = xHeight("leftcontent");
  var rHeight = xHeight("rightcontent");
  
  // Find the maximum height
  var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
  
  // Assign maximum height to all columns
  
   xHeight("center", maxHeight);
  xHeight("left", maxHeight);
   xHeight("right", maxHeight);
  
  // Show the footer
  xShow("footer");
}
window.onload = function()
{
  xAddEventListener(window, "resize", adjustLayout, false);
  adjustLayout();
}

function validateForm(objForm)
{
	var szErrorMessage = "You need to enter the following information : \n\n";
	var szEmpty = "";
	var bOk = true;
	
if (objForm.name.value == szEmpty) {bOk = false; szErrorMessage += "your name\n";}
if (objForm.email.value == szEmpty) {bOk = false; szErrorMessage += "your email address\n";}
if (objForm.phone.value == szEmpty) {bOk = false; szErrorMessage += "your phone number\n";}
	if (!bOk) {
		alert(szErrorMessage);
	}
	return bOk;
}
function dom(myUrl) { //v2.0
  window.open(myUrl,'','scrollbars=no,width=570,height=420');
}