var whitespace = " \t\n\r";var a = "@"var c = "com"var d = "."var n1 = "sy"var n2 = "gen"var n3 = "ics"function isEmpty(s)	{	return ((s == null) || (s.length == 0))	}function isBlanks(s)	{		var i;		for (i = 0; i < s.length; i++)		{			var c = s.charAt(i);			if (whitespace.indexOf(c) == -1) {return false};		}		return true;	}function isInvalid(s)	{	var at = false;	var dot = false;	if (s.indexOf("@") != -1) {at = true;};	if (s.indexOf(".") != -1) {dot = true;};	for (var i = 0; i < s.length; i++)		{		ch = s.substring(i, i + 1)		if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")				|| (ch == "@") || (ch == ".") || (ch == "_")				|| (ch == "-") || (ch >= "0" && ch <= "9"))				{}				else {return true};		}	if ((at == true) && (dot == true)) {return false;}		else {return true;}	}function chk(v)	{	if (isEmpty(v)) {document.reg.email.focus();document.reg.email.select();alert("Oops! You did not enter an e-mail address where we can send you news about our site...\nPlease enter your e-mail address before clicking the submit button. Thank you!");return false};	if (isBlanks(v)) {document.reg.email.focus();document.reg.email.select();alert("Oops! Your e-mail address was left blank... \nPlease enter your e-mail address before clicking the submit button. Thank you!");return false};	if (isInvalid(v)) {document.reg.email.focus();document.reg.email.select();alert("Oops! Your e-mail address seems to contain an error or be incomplete... \nPlease verify your e-mail address before clicking the submit button. Thank you!");return false};	return true;	}function pop(x)	{	window.open(x, 'loading', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=560,height=560')	}function send(x,y)	{	path = "mai";	path += "lt";	path += "o:";	path += x + y + a;	path += n1 + n2;	path += n3 + d + c;	window.location.href=path;	}function assm(x,y)	{	document.write('<A HREF="javascript:send(\'' + x + '\',\'' + y + '\')" onmouseover="window.status=\'Click to send e-mail\'; return true;" onmouseout="window.status=\'\'">');	document.write(x + y + a + n1 + n2 + n3 + d + c + '</a>');	}function MM_findObj(n, d) { //v4.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x;}function validate_form() {  alert ("START VALIDATION");  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);    if (val) { nm=val.name; if ((val=val.value)!="") {      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';      } else if (test!='R') {        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');          min=test.substring(8,p); max=test.substring(p+1);          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }  } if (errors) alert('The following error(s) occurred:\n'+errors);  alert ("FORM VALIDATED");  document.MM_returnValue = (errors == '');}