// RNSMB JAVASCRIPT rnsmb_utility.js VERSION 1.0

// Search Form Validation
function emptyField(textObj){
	if(textObj.value.length==0)
	   return true;
       for(var i=0;i < textObj.value.length;i++) {
			var ch = textObj.value.charAt(i);
            if(ch!=' ' && ch != '\t')
            return false;
         }
            return true;
         }
function validateForm(formObj){
formObj.action='mailto:stephenmorano@hotmail.com?subject=Steve Morano Mailing List&body=Please add the following to the mailing list - '+ formObj.rn.value;
	if(emptyField(formObj.rn))
    alert("Please enter your e-mail address into the text box to join the Steve Morano mailing list!");
            else
                return true;
            	return false;
        }

	
	function updateParent(newURL) {
	
		opener.document.location = newURL
	
	}
	
// Date Display Function
	    function displayDate(){
	      var this_month = new Array(12);
	      this_month[0]  = "January";
	      this_month[1]  = "February";
	      this_month[2]  = "March";
	      this_month[3]  = "April";
	      this_month[4]  = "May";
	      this_month[5]  = "June";
	      this_month[6]  = "July";
	      this_month[7]  = "August";
	      this_month[8]  = "September";
	      this_month[9]  = "October";
	      this_month[10] = "November";
	      this_month[11] = "December";
	      var today = new Date();
	      var day   = today.getDate();
	      var month = today.getMonth();
	      var year  = today.getYear();
	      if (year < 1900){
	         year += 1900;
	      }
	      return(day+" "+this_month[month]+" " +year);
	    }
	    
// Year Display Function
	    function displayYear(){
	      var today = new Date();
	      var year  = today.getYear();
	      if (year < 1900){
	         year += 1900;
	      }
	      return(+year);
	    }
	


