Added support for sending data to content files

function.js has been updated to allow sending POST data to content files
to enable us to check user's access before displaying the content.