function popupPic (w, h, p, d) {
	var newWin = window.open('', '', 'width=' + (parseInt(w) + 40) + ',height=' + (parseInt(h) + 80) + ',left=10,top=10,scrollbars');
	newWin.document.write('<link rel="stylesheet" href="/style.css" type="text/css">');
	newWin.document.write('<div align="center"><img src="' + d + '/' + p + '"><br><br>');
	newWin.document.write('<a href="javascript:self.close();" class="LEFTBOLDLINK">Close this window</a><br><br>');
}

function validateVote () {
	var atLeastOne = false;
	var erMessage = "";
	
	//They must select an option.
	for (var i=0; i<=4; i++) {
		if (document.frmVote.strLocation[i].checked) { atLeastOne = true; }
	}
	if (atLeastOne == false) { erMessage = "Please select an option.\n"; }
	
	//They must enter a location if Other is selected.
	if (document.frmVote.strLocation[4].checked) { if (document.frmVote.sreLocationText.value == "") { erMessage = "Please enter a location if you choose 'Other'.\n"; } }
	
	if (!document.frmVote.strLocation[4].checked) { if (document.frmVote.sreLocationText.value != "") { erMessage = "Please only enter a location if you choose 'Other'.\n"; } }

	if (erMessage != "") {
		alert(erMessage);
		return false; 
	}
}

function playVideo (loc, nam, props) {
	var newWin = window.open(loc, nam, props);
}
 
function clearTxt (frm, txt) {
	document.forms[frm].elements[txt].value = '';
}
 
function clearRads (frm, rad) {
	for (var c = 0; c<document.forms[frm].length; c++) {
		if (document.forms[frm].elements[c].name == rad) { document.forms[frm].elements[c].checked = false; }
	}
}


