	<!--
		function checkDate(var_day, var_month, var_year, message) 
		{
			//This checks for the leap year
			var_day   = 0 + eval(var_day);
			var_month = 0 + eval(var_month);
			var_year  = 0 + eval(var_year);
		 
			if(var_month == 2){
			    if ((var_year%4 == 0) && (var_year%100 != 0 || var_year%400 == 0)){
					if(var_day > 29) return message;
				}
				else{
			        if(var_day > 28) return message;
				}
			}
		
			if (var_month<8) {
				v = ((var_month%2)==1)
			}
			else {
				v = ((var_month%2)==0)
			}
			
			if (v && (var_day>31)){
				return message;
			}
			if (!v && (var_day>30)){
				return message;
			}
			
			return "";
		}

		function MinLen(str, len, resp)	//	MinLength
		{
		strReturn = "";			
		if (str.length < len) 
			{
				strReturn = resp + "; \n";
			}
		return (strReturn);			
		}
		
		function ValidStr(str, resp)	//	Valid Content
		{
		strReturn = "";
		if ((str == " ") || (str == ".")) {
				strReturn = resp + "; \n";
			}
		return (strReturn);			
		}

		function MaxLen(str, strlen, resp)	//	MaxLength
		{
		strReturn = "";
		if (str.length > strlen) {
			strReturn = resp + "; \n";
			}
		return (strReturn);			
		}
		
		function CheckURL(txt, resp)
		{
		strReturn = "";
		if (txt.indexOf("http://") != 0) {
			strReturn = resp + "; \n";
		}
		
		return (strReturn);
		}
		
		function CheckEmail(txt, resp)
		{
		strReturn = "";
		
		if ((txt.indexOf("@") < 0) && ((txt.indexOf(".com") < 0) || (txt.indexOf(".org") < 0) || (txt.indexOf(".gov") < 0) || (txt.indexOf(".net") < 0) || (txt.indexOf(".mil") < 0) || (txt.indexOf(".edu") < 0) || (txt.indexOf(".co") < 0)) ) {
			strReturn = resp + "; \n";
		}
		
		return (strReturn);
		}

		function CheckNum(txt, resp)
		{
		strReturn = "";
		
		var legal = "0123456789 "
		var accept = "true";
		var num;
		for (var s = 0; s < txt.length; s++) {
			num = "" + txt.substring(s, s+1);
			
			if (legal.indexOf(num) == "-1") {
				accept = "false"
			}				
		}
			
		if (accept == "false") {
			strReturn = resp + "; \n";
		}
		
		return (strReturn);
		}
		
		function CheckPassword(pass1, pass2, resp)
		{
		strReturn = "";
		
		fail = "false";
		pass1 = new String(pass1);
		pass2 = new String(pass2);
		if ((pass1.length) != (pass2.length)) {
			fail = "true"
		}
		
		for (var i = 0; i < pass1.length; i++) {
			if ((pass1.charAt(i)) != (pass2.charAt(i))) {
				fail = "true"
			}
		}
        
		if (fail == "true") {
			strReturn = resp + "; \n";
		}
		return (strReturn);
		}
		function CheckIndex(index,NaN,resp)
		{
		var strReturn;
		strReturn = "";

		 if (index <= NaN)  
		    strReturn = resp + "; \n";
		 return strReturn;	
		}
		
		function CheckTel(txt, resp)
		{
		strReturn = "";
		
		var legal = "0123456789+-() "
		var accept = "true";
		var num;
		for (var s = 0; s < txt.length; s++) {
			num = "" + txt.substring(s, s+1);
			
			if (legal.indexOf(num) == "-1") {
				accept = "false"
			}				
		}
			
		if (accept == "false") {
			strReturn = resp + "; \n";
		}
		
		return (strReturn);
		}
	  
                function smallWindow(URL,Width,Height) 
                {
                   var now = new Date();
	           new_window = window.open(URL, "","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+ Width +",height="+ Height); 
	           new_window.window.focus();
                }	

//-->
  