



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function checkAgree() {
	
	if (document.GuidelineForm.Agree.checked){
		window.location = "PhotoSubmit";
	} else {
		alert('You must click "agree" to go to the Submit Photo Page');
	}
		
}

function goToGuidelines() {
		alert('Before you Submit a Photo, you must agree with the Terms & Conditions. You will now be redirected to that page.');
		window.location = "Guidelines.html";
		
}

function showTest(){
	document.getElementById('test').innerHTML= "hello";
}


function getDays(){
	var month = document.Search.Month.value;
	var daysMax = "";
	
	if (month == 'February'){
			daysMax = 28;
	}
	if ((month == 'January')||(month == 'March')||(month == 'May')||(month == 'July')||(month == 'August')||(month == 'October')||(month == 'December')){
			daysMax = 31;
	}
	if ((month == 'April')||(month == 'June')||(month == 'September')||(month == 'November')){
			daysMax = 30;
	}
	
	
	var days = '<select name="Day">';
	for (n=1; n<=daysMax; n++){
		days = days + '<option value="'+n+'">'+n+'</option>\n';
	}
	days = days + '</select>';
		document.getElementById('Day').innerHTML= days;
	//	alert(days);
}


function navRollOver(obj) {
	obj.style.opacity = ".6";
	obj.style.filter = "alpha(opacity=60)";
}

function navRollOut(obj) {
	obj.style.opacity = "1.0";
	obj.style.filter = "alpha(opacity=100)";
}