<!--
function clearText(thefield){
if (thefield.value=="Enter Email Address.")
	thefield.value = "";
}

function redoText(thefield){
if ((thefield.value=="Enter Email Address.") || (thefield.value == ""))
	thefield.value = "Enter Email Address.";
}

// email
function checkEmail (strng) {
var error="";
  if (strng == "") {
     error = "You didn't enter an Email Address.\n";
  } else {
    var emailFilter=/^.+@.+\..{2,3}$/;
    if (!(emailFilter.test(strng))) {
       error = "Please enter a valid Email Address.\n";
    } else {
      //test email for illegal characters
      var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
      if (strng.match(illegalChars)) {
         error = "The Email Address contains illegal characters.\n";
      }
    }
  }
return error;
}

function checkWholeForm() {
    var why = "";
	//why += isEmptyFullName(document.subscribeForm.elements['fn'].value);
	why += checkEmail(document.subscribeForm.elements['EmailAddress'].value);
	//why += checkZip(document.subscribeForm.elements['zip'].value);
	if (why != "") {
       alert(why);
       //return false;
    } else {
		document.subscribeForm.submit();
	}
	//return false;
}

function numbersonly(e, decimal) {
	var key;
	var keychar;

	if (window.event) {
	   key = window.event.keyCode;
	} else if (e) {
	   key = e.which;
	} else {
	   return true;
	}
	keychar = String.fromCharCode(key);

	if ((key==null) || (key==0) || (key==8) ||  (key==9) || (key==13) || (key==27) ) {
		return true;
	} else if ((("0123456789").indexOf(keychar) > -1)) {
		return true;
	} else if (decimal && (keychar == ".")) { 
		return true;
	} else {
		return false;
	}
}

var winName="titulo"
function Abrir_Ventana(theURL,w,h) 
{
	var windowprops ="top=0,left=0,toolbar=no,location=no,status=no, menubar=no,scrollbars=no, resizable=no, top=250, left=250 ,width=" + w + ",height=" + h;
	window.open(theURL,winName,windowprops);
}
													
//-->