  /**
   * Opens a new browser window
   */
  function openNew(strPath,height,width) {
    myWin = window.open(strPath,"Help","height=" + height + ",width=" + width + ",menubar=no,scrollbars=yes,toolbar=no,resizable=yes,status=no,location=no,directories=no");
  	myWin.focus();
  }
  
  /**
   * Sets a form action and submits it to the given url
   */
   function submitForm(url,myForm) {
	   myForm.action = url;
	   myForm.submit();
   }
	
  /**
   * Checks an entered email address for validity
   */
   function checkEmailAddress(value) {
	   var emailFilter=/^.+@.+\..{2,3}$/;
	   if (!(emailFilter.test(value))) { 
		   return false;
	   }
	   return true;
   }

  /**
   * Validates that a form field value is numeric
   */
   function isNumeric(str) {
	   // Return false if characters are not '0-9'.
	   /*if(str.length == 0) {
			return false;   
	   }*/
	   for (var i = 0; i < str.length; i++) {
		   var ch = str.substring(i, i + 1);
		   var num = Math.abs(parseInt(str));
		   var isNotNum = isNaN(str);
		   if ((ch < "0" || "9" < ch) && !num || isNotNum) {
               if(ch == '.') {
                return true;
               } else {
                return false;
               }
		   }
	   }
	   return true;
	}