function writeDate() {
	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December";
	var time=new Date();
	var lmonth=months[time.getMonth() + 1];
	var date=time.getDate();
	var year=time.getYear();
	var curDate = lmonth + " " + date + ", " + year;
	document.write(curDate);
}

function writeTime() {
      var d = new Date();
      var html = "";
      var year, hour, mon;

      //year = "" + d.getFullYear();
      //year = year.substring(year.length - 2, year.length);
      hour = d.getHours();
      ampm = (hour >= 12 ? ' p.m.' : ' a.m.');
      hour = (hour > 12 ? hour - 12 : hour);
      min = d.getMinutes();
      min = (min < 10 ? '0' + min : min);
      //mon = d.getMonth() + 1;

      //html += mon + '.' + d.getDate() + '.' + year;
      //html += ' | ';
      html += hour + ':' + min + ampm;

      document.write(html);
    }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function validateform()
    {
        var re;
        re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;
		
        // Verifies that the following fields have been filled in before submitting
        if ((document.form1.txtName.value=="")||
		(document.form1.txtAddress.value=="")||
		(document.form1.txtCity.value=="")||
		(document.form1.txtState.value=="")||
		(document.form1.txtZip.value=="")||
		(document.form1.txtCounty.value=="")||
		(document.form1.txtPhone.value=="")||
		(document.form1.txtEmail.value==""))
		{
		window.alert ("Please fill out all of the required fields!")
		return false;
		}
        // Ensure the password is at least eight characters
        else if (document.form1.txtPassword.value.length < 8)
        {
            alert('The password must be at least eight characters');
            document.form1.txtPassword.focus();
            document.form1.txtPassword.select();
            return false;
        }
        // If the confirmation password doesn't match the original password,
        // show an error message, set focus back to the field, and highlight the entry.
        else if (document.form1.txtVerify.value != document.form1.txtPassword.value)
        {
            alert('The confirmation password does not match the original password');
            document.form1.txtVerify.focus();
            document.form1.txtVerify.select();
            return false;
        }
        // The following checks to see if a valid email address is used.
        else if (!re.test(document.form1.txtEmail.value))
        {
	        alert('The Email Address is not a valid address.');
	        document.form1.txtEmail.focus();
	        document.form1.txtEmail.select();
	        return false;
        }
        return true;
    }
