<!--
  // declarations
  containerName = "tblMain";
  maxwidth = 1000;
  
  window.onresize = setContainerSize;
  
  function setContainerSize() {
	var currWidth = (document.body.clientWidth) ? document.body.clientWidth : window.innerWidth;
	if(currWidth && document.getElementById) {
	  document.getElementById(containerName).width = (currWidth > maxwidth) ? maxwidth : currWidth;
	}
  }
  
  function showSubscribe(win_width, win_height) {

    var divSubscribe = document.getElementById("divSubscribe");
    	if(divSubscribe) {
	  x = Math.ceil(((screen.width - (screen.width*0.85)) / 2) + 100);
	  
	  divSubscribe.style.left = (x + "px");
	  divSubscribe.style.display = divSubscribe.style.display == "none" ? "" : "none";
	}
  }

  function validateSignup() {
	var name = document.getElementById("txtSignUpName").value;
	var email = document.getElementById("txtSignUpEmail").value;
	var emailExp = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/
	if(name == "" || email == "") {
		alert("Name and Email are required for signup.");
		return false;
	}
	if(!emailExp.test(email)) {
		alert("Invalid Email for signup.");
		return false;
	}
	return true;
  }
//-->