
function upthis(x) {
	x.value = x.value.toUpperCase();
}
function lothis(x) {
	x.value = x.value.toLowerCase();
}
function PrintPopUp(frm) {
	// see if any slections have been made ...
	j=0;
	for(i=0;i< frm.length;i++)	{
		e=frm.elements[i];
		if (e.type=='checkbox' && e.name != 'allbox' && e.checked)
			j++;	
	}
	if ( j == 0 ) {
		alert("You did not select any badges to print. \nClick the check box next to the registrant you want to print.");	
		return false;
	}
	else {
		window.open('','printwindow','location=1,toolbar=0,scrollbars=1,width=620,height=350');
		return true;
	}
}
function CA(frm){
	for (var i=0;i<frm.elements.length;i++) {
		var e = frm.elements[i];
			if ((e.name != 'allbox') && (e.type=='checkbox')) {
				e.checked = frm.allbox.checked;
//				if (frm.allbox.checked)
//					hL(e);
///				else
//					dL(e);
			}
	}
}
function PrintSelected(frm) {
	// see if any slections have been made ...
	j=0;
	for(i=0;i< frm.length;i++)	{
		e=frm.elements[i];
		if (e.type=='checkbox' && e.name != 'allbox' && e.checked)
			j++;	
	}
	if ( j == 0 ) {
		alert("You did not select any badges to print. \nClick the check box next to the registrant you want to print.");	
		return false;
	}
	else {
		frm.submit();
	}
}