<!-- start POPUP WINDOW
var version = 0;

if(navigator.appName.indexOf("Netscape") >= 0 ||
   navigator.appName.indexOf("Explorer") >= 0)
{

        if( navigator.userAgent.indexOf("Mozilla/3.0") >= 0
                 || navigator.userAgent.indexOf("Mozilla/4.0") >= 0)
        {
                version = 3;
                if (navigator.userAgent.indexOf("Macintosh") != -1)
                {
                        version = 4;
                }

        }
        else if( navigator.userAgent.indexOf("Mozilla/2") >= 0 )
        {
                version = 2;
        }
        else version = 2;
}
else
        version = 1;

/*********************************************************************/
function eAOGopen(features) {
   if (version >= 3 ) //&& navigator.userAgent.indexOf("MSIE 3.0") < 0)

{               eAOG = window.open("","eAOG",features)
                eEzz.focus();
}
else
{
                eAOG = window.open("","eAOG",features)

                }

}


function activate()

        {

        thenumber = document.theform.thepulldown.selectedIndex;

        changeto =

document.theform.thepulldown.options[thenumber].value;

        if (changeto == "gonowhere")

                {

                // do nothing


}
        else
                {
                window.top.location = changeto
                }
        }

function automatic()

        {

        thenumber = document.theform.thepulldown.selectedIndex;

        changeto =

document.theform.thepulldown.options[thenumber].value;

        if (changeto == "gonowhere")

                {

                // do nothing


}

        else

                {

                window.top.location = changeto

                }

        }



function backtonorm(){
var uagent=navigator.userAgent;
if(uagent.indexOf('Mac',0)>-1){
        window.scroll(0,0);
}

}


//Function to check email field
function CheckEmail () {

	var errorMsg = "";
	var errorMsgLong = "";


	if (document.ListForm.mail.value == ""){
		errorMsg += "\nEmail field is empty!";
	}


	if (document.ListForm.mail.value.length >0 && (document.ListForm.mail.value.indexOf("@",0) == -1||document.ListForm.mail.value.indexOf(".",0) == -1)) { 
		errorMsg +="\nEmail is not valid!";
	}

	//If there is aproblem with the form then display an error
	if ((errorMsg != "") || (errorMsgLong != "")){
		msg = "_____________________________________________________________________\n\n";
		msg += "The following field(s) need to be corrected: -\n";
		
		alert(errorMsg + "\n" + errorMsgLong);
		return false;
	}
	
	return true;
}

// END POPUP WINDOW-->
