function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// empty arrays for preloading images
var arrPreloadImages = new Array();

// image preload example: fill in this array and the contents will be preloaded during body onload event
arrPreloadImages[arrPreloadImages.length] = "images/spacer.gif";

function doSomething(e)
{
    var posx = 0;
    var posy = 0;
    if (!e) var e = window.event;
    if (e.pageX || e.pageY)
    {
        posx = e.pageX;
        posy = e.pageY;
    } else if (e.clientX || e.clientY)
    {
        posx = e.clientX;
        posy = e.clientY;
    }

    if(typeof window.document.nav != 'undefined'
    && window.document.nav
    &&	typeof window.document.nav.SetVariable != 'undefined'
    ) {


    window.document.nav.SetVariable("_level0.y_position", posy);


    }
}

if (document.layers) {
    window.captureEvents(Event.MOUSEMOVE);
    window.onmousemove=doSomething;
}
else {
   document.onmousemove=doSomething;
}
    
    
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 6;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -----------------------------------------------------------------------------
// -->
function CheckReg(form)
{
    var cname = form.cname;
    var cdate = form.cdate;
    
    var pname1 = form.pname1;
    var pcomp1 = form.pcomp1;
    var pjob1 = form.pjob1;
    var ptel1 = form.ptel1;
    var pemail1 = form.pemail1;
    
    var cpname = form.cpname;
    var cpcomp = form.cpcomp;
    var cpjob = form.cpjob;
    var cptel = form.cptel;
    var cpemail = form.cpemail;
    
    if (cname.value == "")
    {
        alert("Please First add the Name of the course you want to partake in")
        cname.focus();
        return false;
    }
    if (cdate.value == "")
    {
        alert("Please First add the Date of the course you would like to attend the course")
        cdate.focus();
        return false;
    }
    
    if (pname1.value == "")
    {
        alert("Please First add the Names of the people that will attend the course")
        pname1.focus();
        return false;
    }
    if (pcomp1.value == "")
    {
        alert("Please First add the Company Name of the people that will attend the course")
        pcomp1.focus();
        return false;
    }
    if (pjob1.value == "")
    {
        alert("Please First add the Job Title of the people that will attend the course")
        pjob1.focus();
        return false;
    }
    if (ptel1.value == "")
    {
        alert("Please First add the Contact Number of the people that will attend the course")
        ptel1.focus();
        return false;
    }
    if (pemail1.value == "")
    {
        alert("Please First add the E-mail Address of the people that will attend the course")
        pemail1.focus();
        return false;
    }
    if ((pemail1.value).indexOf("@") == -1)
	{
		alert("The email address entered was not valid.  Please re-enter your email address.");
		pemail1.focus();
		return false;
	}
	
	if (cpname.value == "")
    {
        alert("Please First add the Name of the Person to Contact")
        cpname.focus();
        return false;
    }
    if (cpcomp.value == "")
    {
        alert("Please First add the Company Name of the Person to Contact")
        cpcomp.focus();
        return false;
    }
    if (cpjob.value == "")
    {
        alert("Please First add the Job Title of of the Person to Contact")
        cpjob.focus();
        return false;
    }
    if (cptel.value == "")
    {
        alert("Please First add the Contact Number of the Person to Contact")
        cptel.focus();
        return false;
    }
    if (cpemail.value == "")
    {
        alert("Please First add the E-mail Address of the Person to Contact")
        cpemail.focus();
        return false;
    }
    if ((cpemail.value).indexOf("@") == -1)
	{
		alert("The email address entered was not valid.  Please re-enter your email address.");
		cpemail.focus();
		return false;
	}
	
	if (document.getElementById('cd').value.length == 0)
    {
        document.getElementById('place').style.display = 'none';
        document.getElementById('empty').style.display = 'block';
        document.getElementById('incorrect').style.display = 'none';
        return false;
    }else{
        document.getElementById('place').style.display = 'block';
        document.getElementById('empty').style.display = 'none';
        document.getElementById('incorrect').style.display = 'none';
    }
    
    if (document.getElementById('cd').value != document.getElementById('txtChkTru').value)
    {
        document.getElementById('place').style.display = 'none';
        document.getElementById('empty').style.display = 'none';
        document.getElementById('incorrect').style.display = 'block';
        return false;
    }else{
        document.getElementById('place').style.display = 'block';
        document.getElementById('empty').style.display = 'none';
        document.getElementById('incorrect').style.display = 'none';
    }
	
    return true;
}

function GetXmlHttpObject(){if (window.XMLHttpRequest){return new XMLHttpRequest();}if (window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP");}return null;}

var xmlhttp_ChkTru;
function ChkTru(str,strid){if (str.length == 0){document.getElementById("txtChkTru").value = "";return;}xmlhttp_ChkTru = GetXmlHttpObject();if (xmlhttp_ChkTru == null){alert ("Your browser does not support XMLHTTP!");return;}var url = "LITVI_chktru.asp";url = url + "?ref=" + str;url = url + "&id="+strid;xmlhttp_ChkTru.onreadystatechange = stateChanged_chktru;xmlhttp_ChkTru.open("GET",url,true);xmlhttp_ChkTru.send(null);}
function stateChanged_chktru(){if (xmlhttp_ChkTru.readyState == 4){document.getElementById("txtChkTru").value = xmlhttp_ChkTru.responseText;}}

function CheckMsg(form)
{
    var msg = form.msg;
    
    if (msg.value == "")
    {
        alert("Please first add your message")
        msg.focus();
        return false;
    }
    return true;
}
function CheckSub(form)
{
    var myname = form.myname;
    var mytel = form.mytel;
    var myemail = form.myemail;
    var myfax = form.myfax;
  
    if (myname.value == "")
    {
        alert("Please enter your name in the space provided")
        myname.focus();
        return false;
    }
    if (mytel.value == "")
    {
        alert("Please enter your contact number in the space provided")
        mytel.focus();
        return false;
    }
    if (myemail.value == "")
    {
        alert("Please enter your E-mail Address in the space provided")
        myemail.focus();
        return false;
    }
    if ((myemail.value).indexOf("@") == -1)
	{
		alert("The email address entered was not valid.  Please re-enter your email address.");
		myemail.focus();
		return false;
	}
	if (myfax.value == "")
    {
        alert("Please enter your fax number in the space provided")
        myfax.focus();
        return false;
    }
    return true;
}
function CheckUnSub(form)
{
    var myemail = form.myemail;
  
    if (myemail.value == "")
    {
        alert("Please enter your E-mail Address in the space provided")
        myemail.focus();
        return false;
    }
    if ((myemail.value).indexOf("@") == -1)
	{
		alert("The email address entered was not valid.  Please re-enter your email address.");
		myemail.focus();
		return false;
	}
    return true;
}
function CheckFriend(form)
{
    var myname = form.myname;
    var fname = form.fname;
    var ftel = form.ftel;
    var femail = form.femail;
    
    if (myname.value == "")
    {
        alert("Please enter your name in the space provided")
        myname.focus();
        return false;
    }
    if (fname.value == "")
    {
        alert("Please enter your friend's name in the space provided")
        fname.focus();
        return false;
    }
    if (ftel.value == "")
    {
        alert("Please enter your friends contact number in the space provided")
        ftel.focus();
        return false;
    }
    if (femail.value == "")
    {
        alert("Please enter your friend's E-mail Address in the space provided")
        femail.focus();
        return false;
    }
    if ((femail.value).indexOf("@") == -1)
	{
		alert("The email address entered was not valid.  Please re-enter your email address.");
		femail.focus();
		return false;
	}
    return true;
}
