function select(obj) {
		obj.className="buttonSelect";
}

function unselect(obj,n) {
		obj.className="button" + n;
}

function select_left(obj) {
		obj.className="buttonSelected";
}

function unselect_left(obj,n) {
		obj.className="button"+n;
}

function openWin() {
    var popUpWin = open('registrationPopup.php','popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=760,height=420,left=0,top=0,screenX=0,screenY=0');
}

function openPrivacy() {
    var popUpWin = open('privacyPolicyPopup.php','popPrivacy','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=760,height=560,left=0,top=0,screenX=0,screenY=0');
}

function submitForm(dateType, value) {
		var field = document.getElementById("dateType");
		field.value = dateType;
		var form = document.getElementById("dateForm");
		form.submit();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

  if (document.images)
   {
     pic1on= new Image(25,25);
     pic1on.src="images/btnHomeOver.gif";
	 pic2on= new Image(25,25);
     pic2on.src="images/btnContactOver.gif"; 
	 pic3on= new Image(25,25);
     pic3on.src="images/btnAboutOver.gif"; 
	 
     pic1off= new Image(25,25);
     pic1off.src="images/btnHome.gif";
	 pic2off= new Image(25,25);
     pic2off.src="images/btnContact.gif";
	 pic3off= new Image(25,25);
     pic3off.src="images/btnAbout.gif";
   }

function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }
