function emptyvalidation(entered, alertbox)
{
	with (entered)
	{
		while (value.charAt(0) == ' ')
		value = value.substring(1);
		while (value.charAt(value.length - 1) == ' ')
			value = value.substring(0, value.length - 1);
		if (value==null || value=="")
		{
			if (alertbox!="") alert(alertbox);
			return false;
		}
		else return true;
	}
}



function emailvalidation(entered) 
 {
	
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = entered.value;
   if(reg.test(address) == false)
   {
	   return false;
   }
  }


//colouring id//
function hiltopmenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#6992e1';}
function holytopmenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#da8484';}
function charmenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#f0dda8';}
function hilmenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#c4d1ea';}
function holymenu(id) {
        if (document.getElementById) document.getElementById(id).style.color = '#d6d6d6';}// JavaScript Document