// JavaScript Document
function alertFunction(formName){
	var answer = confirm ("Are you sure you want to delete this item?")
	if (answer)
	document.getElementById(formName).submit();
}
function submitSearch(){
	document.location.href = 'search.asp?searchTerm=' + document.searchForm.searchTerm.value;
}
function alertFunction(formName){
	var answer = confirm ("Are you sure you want to delete this item?")
	if (answer)
	document.getElementById(formName).submit();
}
function checkBrowsed(fieldName,formName){
	var currentValue = document.getElementById(fieldName).value;
	var currentExtension = currentValue.slice(currentValue.length-3,currentValue.length);
	if(currentValue.length==0){
		alert("Please select a file to upload")
	}
	if(currentExtension!="jpg"){
		alert("Please upload a JPG file")
	}
	else{
		document.getElementById(formName).submit();
	}
}