script for preventing dubble posting
javascript to work with