function today() { var this_month_name_array = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") //predefine month names var this_date_timestamp = new Date() //get current day-time stamp var this_date = this_date_timestamp.getDate() //extract day of month var this_month = this_date_timestamp.getMonth() //extract month var this_year = this_date_timestamp.getYear() //extract year if (this_year < 1000) this_year += 1900; //fix Y2K problem if (this_year == 101) this_year = 2001; //fix Netscape browsers - it displays the year as being the year 101! var this_date_string = this_date + " " + this_month_name_array[this_month] + " " + this_year document.write(this_date_string); } function focus(id) { var o = document.getElementById(id); if (o != null) o.focus(); } function validate_required(field, alerttxt) { with (field) { if (value == null || value == "") { alert(alerttxt); return false; } else { return true; } } } function validate_email(email) { with (email) { var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; if (reg.test(value) == false) { alert('Invalid Email Address'); return false; } } }