<!-- The function that submits the form-->
function CheckSecurity()
{
 if(document.Security.onsubmit())
 {//this check triggers the validations
    document.Security.submit();
 }
}
