function confirmDelete(){
			
	if(confirm("Are you sure you want to delete this item?"))
		return true;
	else 
		return false;
}

function GoScriptSubnav(form) {
	var myindex=form.chooseproject.selectedIndex
	if (form.chooseproject.options[myindex].value != "0") {
		location="index.php?fuseaction=projects.details&project="+form.chooseproject.options[myindex].value;
	}
}

/*
if ( self !=top) {
	top.location.href = location.href;
}
*/
			

function validateProjectForm() {
	if (document.projectForm.fkProjectCategoryID.selectedIndex == '') {
		alert("You must select a Category");
		return false;
	}
	
	if (document.projectForm.txtProjectTitle.value == '') {
		alert("You must enter a Project Title");
		return false;
	}
	
	if ((document.projectForm.bitWebcam[0].checked == true) && (document.projectForm.txtWebCamLink.value == '')) {
		alert("If WebCam is set to 'YES' you must also enter a link to the WebCam");
		return false;
	}	
	
	return;
}


function validateProjectsMain(selectedFeature) {
	/*
	alert(document.projectForm.elements["display[" & selectedFeature & "]"].value);
	if (document.projectForm.elements["display[" & selectedFeature & "]"].checked == false) {
		alert("You cannot select this as a Featured Project because its Display has been set to 'NO'");
		return false;
	}
	*/
	return true;
}