script enhancement depends on inout from form