// Check Terms
function checkTerms(){
	if(document.frmUpload.terms.checked == false){
		alert('You must agreed to the Terms of Upload!');
		return false;
	} else{
		uploadProgress('uploadForm','uploadMsg')
		return true;
	}	
}

// Get Email Address
function getEmail(email,domain,caption){
	if(email != "" && domain != "" && caption != ""){
		document.write('<a onmouseover="window.status=\'Email Event Organizer\'" href="mailto:' + email + '@' + domain + '">' + caption + '</a>');
	}
}

// Upload Progress
function uploadProgress(frm, msg){
	document.getElementById(frm).style.display = 'none';
	document.getElementById(msg).style.display = 'inline';	
	return;
}

// Video List
function videoList(type){
	if(type == 'p'){
		document.getElementById('videoPlayer').style.display = 'none';
		document.getElementById('videoRecent').style.display = 'none';
		document.getElementById('videoPopular').style.display = 'inline';
	} else if(type == 'r'){
		document.getElementById('videoPlayer').style.display = 'none';
		document.getElementById('videoPopular').style.display = 'none';
		document.getElementById('videoRecent').style.display = 'inline';		
	} else{
		document.getElementById('videoPlayer').style.display = 'inline';
		document.getElementById('videoPopular').style.display = 'none';
		document.getElementById('videoRecent').style.display = 'none';				
	}
	
	return;
}

// Show Item
function showItem(control){
	document.getElementById(control).style.display = 'block';
	return;
}