Create global_function.js

Javascript/jQuery code sample.
Take a look to general validation