var submitcount=0;

function reset() {
document.emailform.name.value="";
document.emailform.email.value="";
document.emailform.comments.value="";
}

function checkFields() {                       // field validation -
if ( (document.emailform.name.value=="")  ||   // checks if fields are blank.
     (document.emailform.email.value=="") ||   // More validation scripts at
     (document.emailform.comments.value=="") ) // forms.javascriptsource.com
   {
   alert("Please enter your name, email, and comments then re-submit this form.");
   return false;
   }

else 
   {
   if (submitcount == 0)
      {
      submitcount++;
      return true;
      }
   else 
      {
      alert("This form has already been submitted.  Thanks!");
      return false;
      }
   }
}

function scrollit(seed) {
var m1 = ".";  
var m2 = " ";
var m3 = "";
var m4 = "";
var msg=m1+m2+m3+m4;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}

function getCurrentDate()
{
var current_date=new Date();
var year=current_date.getYear();
if (year < 1000)
year+=1900;
var day=current_date.getDay();
var month=current_date.getMonth()+1;
if (month<10)
month="0"+month;
var daym=current_date.getDate();
if (daym<10)
daym="0"+daym;
document.write("<small><font color='000000' face='Arial'><b>"+month+"/"+daym+"/"+year+"</b></font></small>");
}

function getLastModified()
{
var modified_date
modified_date=document.lastModified
document.write("This page was last modified: "+modified_date)
}

function flashtext()
{
var yourwords = "Kittens are here!"; 
var speed = 300; 
var control = 1; 
	if (control == 1) 
	{ 
	//	document.write("text should appear");
		window.status=yourwords; 
		control=0; 
	} 
	else 
	{ 
		window.status="something else"; 
		control=1; 
	} 
	setTimeout("flashtext();",speed); 
}