var me = ""+window.location;
var oldVer = me.substring(0,me.indexOf(".html"))+"-bc.html";
var changeme = 1;


if (navigator.appName.indexOf("Microsoft") != -1) {
    if ( parseFloat(navigator.appVersion) < 4.0) {
	  var me = ""+window.location;
      window.location= oldVer;
    }
}
else if (navigator.appName.indexOf("Netscape") != -1) {
    if ( parseFloat(navigator.appVersion) < 5.0) {
	  var me = ""+window.location;
      window.location= oldVer;
    }
}

function validate()
{
	if( document.contactForm.name.value == '' )
	{
		window.alert('Please enter your name');
		return false;
	}
	if( document.contactForm.company.value == '' )
	{
		window.alert('Please enter your company name');
		return false;
	}
	if( document.contactForm.email.value == '' )
	{
		window.alert('Please enter your email address');
		return false;
	}
	if( document.contactForm.message.value == '' )
	{
		window.alert('Please enter a message');
		return false;
	}
	return true;
}

function oldVerLink()
{
	document.write("<font size=\"1\">If you are experience problems viewing this site <a href=\""+ oldVer + "\" > click here </a></font>");
}


function displayDate(theDocument)
{
	date = new Array("", "1<sup>st</sup>", "2<sup>nd</sup>", "3<sup>rd</sup>");
	month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	day = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

	eDate = new Date();
	document.write( day[eDate.getDay()]+", " + month[eDate.getMonth()]+" " );
	if(eDate.getDate() > 3)
	{
		document.write( eDate.getDate() + "<sup>th</sup>");
	}
	else
	{
		document.write( date[eDate.getDate()] );
	}

}



function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function openNew(link, left, top, width, height)
{
  window.open(link, changeme++, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=no'+',menubar=no'+',status=no'+',scrollbars=yes'+',resizable=yes');
}
