The code below is for modern browsers only.
Naming conventions are as follows:
m or M - Model
v or V - View
c or C - Controller
/********************************************************************************************
********************************************************************************************
*( C )ontrol
* Cin - Input Path
* COut - Ouput Path
********************************************************************************************
*******************************************************************************************/
/**
*COut
*/
var COut = ( function ()
{
var messages =
{
name: 'Please enter a valid name',
email: 'Please enter a valid email',
email_s: 'Please enter a valid email.',
pass: 'Please enter password, 6-40 characters',
url: 'Please enter a valid url',
title: 'Please enter a valid title',
tweet: 'Please enter a valid tweet',
empty: 'Please complete all fields',
same: 'Please make emails equal',
taken: 'Sorry, that email is taken',
validate: 'Please contact <a class="d" href="mailto:foo@@host.com">support</a> to reset your password'
.
..
...
....