// JavaScript Document
function valid_length(field, field_length) {
	if(field>field_length) 	{	return false; }
	return true;
}

function valid_date(day, month, year) {
	hostingDay=day.value;
	hostingMonth=month.value;
	hostingYear=year.value;
	
	if(hostingMonth==4 || hostingMonth==6 || hostingMonth==9 || hostingMonth==11) {
		if(hostingDay==31)	{	return false; }
	} else if(hostingMonth==2) {
		if((hostingYear%4)==0) {
			if(hostingDay>29) {		return false;	}
		} else {
			if(hostingDay>28) {		return false;	}
		}
	}
	return true;
}

function valid_digit(number) {
	var regExp=/^[\d]+$/
	if((number.length>0) && regExp.test(number)==false) {
		return false;
	}
	return true
}

