/* funtions to hide email address*/
function sauaabderisup() 
{
	document.location.href=String.fromCharCode(109)+String.fromCharCode(97)+String.fromCharCode(105)+String.fromCharCode(108)+String.fromCharCode(116)
	+String.fromCharCode(111)+String.fromCharCode(58)+String.fromCharCode(115)+String.fromCharCode(117)+String.fromCharCode(112)+String.fromCharCode(112)
	+String.fromCharCode(111)+String.fromCharCode(114)+String.fromCharCode(116)+String.fromCharCode(64)+String.fromCharCode(114)+String.fromCharCode(111)
	+String.fromCharCode(105)+String.fromCharCode(99)+String.fromCharCode(116)+String.fromCharCode(46)+String.fromCharCode(99)+String.fromCharCode(111)
	+String.fromCharCode(46)+String.fromCharCode(117)+String.fromCharCode(107);
}

function sauaabderiinf() 
{
	document.location.href=String.fromCharCode(109)+String.fromCharCode(97)+String.fromCharCode(105)+String.fromCharCode(108)+String.fromCharCode(116)
	+String.fromCharCode(111)+String.fromCharCode(58)+String.fromCharCode(105)+String.fromCharCode(110)+String.fromCharCode(102)+String.fromCharCode(111)
	+String.fromCharCode(64)+String.fromCharCode(114)+String.fromCharCode(111)+String.fromCharCode(105)+String.fromCharCode(99)+String.fromCharCode(116)
	+String.fromCharCode(46)+String.fromCharCode(99)+String.fromCharCode(111)+String.fromCharCode(46)+String.fromCharCode(117)+String.fromCharCode(107);
}


/* function to check Terms and condition check box during register */
function validateForm(thisForm)
{
	with(thisForm)
	{
		if(tAndC.checked)
		{return true;}
		else
		{
			alert("Please read our terms and conditions and check the box provided as evidence");
			return false;
		}
	}
}
		



/* function to find if cookies enabled */
function cc()
{
 /* check for a cookie */
  if (document.cookie == "") 
  {
    /* if a cookie is not found - alert user -
     change cookieexists field value to false */
    alert("COOKIES need to be enabled!");

    /* If the user has Cookies disabled an alert will let him know 
        that cookies need to be enabled to log on.*/ 

    document.Form1.cookieexists.value ="false"  
  } else {
   /* this sets the value to true and nothing else will happen,
       the user will be able to log on*/
    document.Form1.cookieexists.value ="true"
  }
}

/* Set a cookie to be sure that one exists.
   Note that this is outside the function*/
/* document.cookie = 'killme' + escape('nothing')*/


/* function to find if javascript enabled 
Must have javaScriptRunning as a hidden value in a form (set to false as default)
This function will set it as true if it is running!*/
function cjs()
{
 /* check for a cookie */
  document.javaScriptRunning="true";
}

// Magic functions to add multiple event handlers
function addEventHandler(element, event, handler) {
  if(element.addEventListener) {
    element.addEventListener(event, handler, false);
  }
  else if(element.attachEvent) {
    element.attachEvent('on'+event, handler);
  }
}

