<input type="hidden" name="folderexist/" value="yes" id="folderexist">
<html:submit property="btnsubmit" value="OK" οnkeypress="return isExist();" οnclick="return isExist();" />
<script language="javascript">
function isExist() //add by dustin to check the existence of the objective folder 07-03-21
{
//"document.all.folderexist.value " is exclusively for IE but the following is for both Mozilla and IE
existence=document.getElementById("folderexist").value
if(existence=="yes")
//return true while "confirm" clicked and false while "cancel" clicked
return window.confirm("You are submitting updates to the system. Please confirm.")
else
{
alert("Objective directory does not exist,it may have been manually deleted.") //always retrun true
return false
}
}
</script>