function show(Box){
  document.getElementById(Box).style.display    = 'inline';
  document.getElementById(Box).style.visibility = 'visible';
}



function hide(Box){
  document.getElementById(Box).style.visibility = 'hidden';
  document.getElementById(Box).style.display    = 'none';
}



var f_fields = {
  'usrnm':{'l':Label_1,'r':true, 'f':'email'},
  'pswrd':{'l':Label_2,'r':true, 'f':'alphanum'}
};
var s_fields = {
  'nwsltrs':{'l':Label_3, 'r':true, 'f':'email'}
};
var p_fields = {
  'fgtpswd':{'l':Label_4, 'r':true, 'f':'email'}
};
var i_fields = {
  'invite':{'l':Label_4, 'r':true, 'f':'email'}
};
var r_fields = {
  'recnd_from_name':{'l':Label_5, 'r':true, 'f':'alphanum'},
  'recnd_from_email':{'l':Label_6, 'r':true, 'f':'email'},
  'recnd_to_name':{'l':Label_7, 'r':true, 'f':'alphanum'},
  'recnd_to_email':{'l':Label_8, 'r':true, 'f':'email'}
};
var o_config = {
	'to_disable' : ['Submit', 'Reset'],
	'alert' : 1
};

var form_1 = new validator('login_form', f_fields, o_config);
var form_2 = new validator('newsletters_form', s_fields, o_config);
var form_3 = new validator('forget_password_form', p_fields, o_config);
var form_4 = new validator('invitation_form', i_fields, o_config);
var form_5 = new validator('recomand_form', r_fields, o_config);
var Forms  = Array();
Forms['login_form']           = form_1;
Forms['newsletters_form']     = form_2;
Forms['forget_password_form'] = form_3;
Forms['invitation_form']      = form_4;
Forms['recomand_form']        = form_5;



function checkForm(FormId){
  if (Forms[FormId].exec()){
    hide(FormId);
    return true;
  }
  else return false;
}




function areYouSure(){
  var v= confirm(MSGs[6]);
  if (v)
    return true;
  else 
    return false;
}
