//script

function AOVA_reloadPage(init) {
	if (init==true) with (navigator)
		{if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.AOVA_pgW=innerWidth; document.AOVA_pgH=innerHeight; onresize=AOVA_reloadPage; }
		}
 		else if (innerWidth!=document.AOVA_pgW || innerHeight!=document.AOVA_pgH) location.reload();
}

AOVA_reloadPage(true);

function there(dropdown) {
	var URL = dropdown.options[dropdown.selectedIndex].value;
       if(URL!="") {
           document.location.href = URL;
       }
   }

function here(dropdown) {
	var URL = dropdown.options[dropdown.selectedIndex].value;
	if(URL!="") {
		document.location.href = URL
	}
}

var descArr=new Array(5,-9,10,-5,10,0,10,1,10,9);
function updateTime() {
  // stores what we want in our badass div
  var theHtml='<table border=0 cellspacing=0 cellpadding=0><tr align="left" valign="top">';
	tmsec  = Date.UTC(2001,4,1,14,0,0) - (new Date()).getTime();
  tmsec /= 1000;
	tsecs  = Math.floor(tmsec) % 60;
  tmsec /= 60;
  tmins  = Math.floor(tmsec) % 60;
  tmsec /= 60;
  thours = Math.floor(tmsec) % 24;
  tmsec /= 24;
  tdays  = Math.floor(tmsec);
  if (tsecs<10) tsecs='0'+tsecs;
  if (tmins<10) tmins='0'+tmins;
  if (thours<10) thours='0'+thours;
  /*
  for (var i=0;i<5;i++) {
  	theHtml+='<td><img src="imgs/ui_1.gif" width="' + ((i) ? 10 : 5) + '" height="12"></td><td width="' + ((document.layers) ? 136 : 137) + '"><span class="time"><b>';
  	if(i==2) {
  		theHtml += tdays + '</b> / ' + thours + ':' + tmins + '.' + tsecs;
  	} else {
  		theHtml += '&nbsp;';
  	}
  	theHtml += '</span></td>';
  }
	theHtml+='</tr></table>';
*/
	theHtml = '<span class="time"><b>' + tdays + '</b> / ' + thours + ':' + tmins + '.' + tsecs + '</span>';
	if (document.layers) {
		if (lyr=document.timeDiv) {
			lyr.document.open();
			lyr.document.write(theHtml);
			lyr.document.close();
		}
	} else document.all['timeDiv'].innerHTML=theHtml;
  setTimeout("updateTime()",1000);
}

function valid() {

	var ok = true;
	var err = '';
	var frm = document.frm;
	var terms = frm.terms.checked;
	if(frm.name.value == 'Your name') {
		err += 'Please enter your name\n';
		ok = false;
	}
	if(frm.site_name.value == 'Site name') {
		err += 'Please enter your site name\n';
		ok = false;
	}
	if(frm.site_url.value == 'URL') {
		err += 'Please enter your site url\n';
		ok = false;
	}
	if(frm.e_mail.value == 'E-mail') {
		err += 'Please enter your e-mail address\n';
		ok = false;
	}
	if(frm.location.value == '') {
		err += 'Please select a location\n';
		ok = false;
	}
	if(!terms) {
		err += 'To register you must accept the Terms and Conditions\n';
		ok = false;
	}
	if(ok) {
		return ok;
	} else {
		alert(err);
		return ok;
	}

}
