function check_competition( form ) {
	/*
	els = form.elements;
	ok = true;
	for( cc = 0; cc < els.length; cc ++ ) {
		el = els[ cc ];
		if( el.name.match( /required.*|name|email/ ) ) {
			el.parentNode.style.backgroundColor = "";
			if( el.nodeName.match( /select/i ) ) {
				if( el.selectedIndex == 0 ) {
					ok = false;
					el.parentNode.style.backgroundColor = "#fff8e8";
				}
			} else if( el.nodeName.match( /input/i ) && (
					el.getAttribute( "type" ).match( /text/i )
				)
			) {
				if( el.value == "" ) {
					ok = false;
					el.parentNode.style.backgroundColor = "#fff8e8";
				}
			} else if( el.nodeName.match( /input/i ) && (
					el.getAttribute( "type" ).match( /radio/i )
					|| el.getAttribute( "type" ).match( /checkbox/i )
				)
			) {
			}
		}
	}
	if( ok ) {
		return true;
	}
	if( ! ok ) {
		alert( "Please fill in all fields marked with a '*'" );
		return false;
	}
	*/
	return true;
}

function check_competition_login()
{
	if($('logged-in')) return true;
	alert("Sorry boss, but you've got to log in before you can enter this competition!");
	return false;
}