function sendWarning(theUrl)
{
	var returnMsg = false;
	
	var chk = confirm("You have not yet submitted 10 sculptures. Are you sure you want to move to the next Step?");
	
	if (chk)
	{
		window.location.href = theUrl;
	}
	
}

// check the files on the upload image form for the wrong extension
function checkImgs()
{
	var extErrors = 0;
	var returnValue = false;
	var errorMsg = "";
	var isError = false;
	for (i=1;i<=3;i++)
	{
		var file = "file" + i;
		var currentFile = document.getElementById(file).value;
		if (currentFile.length > 0)
		{
			isError = checkExt(currentFile);
			if (isError)
			{
			extErrors++;
			errorMsg += 'File ' + i + " is either not a jpg or has no file extension.\n";
			}
		}
	}
	errorMsg += "Please correct the problems and try again.";
	if (extErrors == 0)
	{
		returnValue = true;
	}
	else
	{
		alert(errorMsg);
	}
	
	return returnValue;
}

function checkExt(file)
{
	var isError = false;
	var ext = file.split(".");
	var theExt = ext[1];
	if (!(theExt == 'jpg' || theExt == 'jpeg' || theExt == 'JPG' || theExt == 'JPEG'))
	{
		isError = true;
	}
	return isError;
}
