function designBy() {
document.writeln('<b>Web Site Design by <A HREF="http://www.beartoothtechnologies.com" target=_top >Beartooth Technologies</A></b>')
}

function designedBy() {
document.writeln('<b>Web Site Design by <A HREF="http://www.beartoothtechnologies.com" target=_top >Beartooth Technologies</A></b>')
}

function lastAccess() {
document.writeln('<br><TABLE CELLSPACING=0 BORDER=0 WIDTH=500><tr><td><I><FONT SIZE=2><P width="500" align="center"><BR>');
var dayNames = new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new
Array("January","February","March","April","May","June","July","August","September","October","November","December");
today = new Date();
lastmod = new Date(document.lastModified);
diffdays = Math.ceil( (today.getTime()-lastmod.getTime())/(24*60*60*1000) );
var then = new Date(document.lastModified);
var adjYear = then.getYear();
if (adjYear < 100) { adjYear = adjYear+2000 };
if (adjYear < 1090) { adjYear = adjYear+1900 };
document.writeln("Last updated on "+ dayNames[then.getDay()] + ", " + monthNames[then.getMonth()] + " " + then.getDate() + ", " + adjYear + " at " + then.getHours() + ":" + then.getMinutes() + ":" + then.getSeconds() + ".");
document.writeln('</P></TD></TR></TABLE></I></FONT><br><TABLE CELLSPACING=0 BORDER=0 WIDTH=500><tr><td><P ALIGN="CENTER"><FONT FACE="Arial" SIZE=1><b>');
document.writeln('<b>Web Site Design by <A HREF="http://www.beartoothtechnologies.com" target=_top >Beartooth Technologies</A></b>')
document.writeln('</b></p></TD></TR></TABLE><br><br><br><br>');
}

function lastModified() {
document.writeln('<hr width="100%" size="1" color="black">');
document.writeln('<TABLE border=0 width="600" align="center" nowrap>');
document.writeln('<TR width="600">');
document.writeln('<td align="left" width="600" nowrap>');
document.writeln('<FONT FACE="Arial" SIZE=2>');
document.writeln('<center>Copyright &copy YellowstoneWolf.com, All Rights Reserved</center>');
document.writeln('<center>All Graphics and Text on this Site are &copy Copyrighted</center>');
document.writeln('<center> Any unauthorized use of the images or text is prohibited.</center>');
document.writeln('</FONT></td></tr></table>');
document.writeln('<hr width="100%" size="1" color="black">');

document.writeln('<br><TABLE CELLSPACING=0 BORDER=0 WIDTH=500><tr><td><I><FONT SIZE=2><P width="500" align="center"><BR>');
var dayNames = new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new
Array("January","February","March","April","May","June","July","August","September","October","November","December");
today = new Date();
lastmod = new Date(document.lastModified);
diffdays = Math.ceil( (today.getTime()-lastmod.getTime())/(24*60*60*1000) );
var then = new Date(document.lastModified);
var adjYear = then.getYear();
if (adjYear < 100) { adjYear = adjYear+2000 };
if (adjYear < 1090) { adjYear = adjYear+1900 };
document.writeln("Last updated on "+ dayNames[then.getDay()] + ", " + monthNames[then.getMonth()] + " " + then.getDate() + ", " + adjYear + " at " + then.getHours() + ":" + then.getMinutes() + ":" + then.getSeconds() + ".");
document.writeln('</P></TD></TR></TABLE></I></FONT><br><TABLE CELLSPACING=0 BORDER=0 WIDTH=500><tr><td><P ALIGN="CENTER"><FONT FACE="Arial" SIZE=1><b>');
document.writeln('<b>Web Site Design by <A HREF="http://www.beartoothtechnologies.com" target=_top >Beartooth Technologies</A></b>')
document.writeln('</b></p></TD></TR></TABLE><br><br><br><br>');
}



function initDates() {
	now = new Date
	expireDate = new Date
	expireDate.setMonth(expireDate.getMonth()+6);

	realName=""
	screenName=""
	emailAddress=""
	lastVisit=""

   thisCookie = document.cookie.split("; ")

	for (i=0; i<thisCookie.length; i++) {
		cookie_name=thisCookie[i].split("=")[0]
		cookie_value=thisCookie[i].split("=")[1]
		if (cookie_name == "realName") { realName = thisCookie[i].split("=")[1] }
		if (cookie_name == "screenName") { screenName = thisCookie[i].split("=")[1] }
		if (cookie_name == "emailAddress") { emailAddress = thisCookie[i].split("=")[1] }
		if (cookie_name == "lastVisit") { lastVisit = thisCookie[i].split("=")[1] }
		}
	}

function computeElapsed() {
   priorVisit = lastVisit;
   currentVisit = now;
   var priorVisitA = new Date(priorVisit)
   priorTime = priorVisitA.getTime()
   var currentVisitA = new Date(currentVisit)
   currentTime = currentVisitA.getTime()
   elapsedTime = (currentTime - priorTime)
   elapsedSeconds = (currentTime - priorTime) / 1000
   elapsedMinutes = (currentTime - priorTime) / 60000

   document.cookie = "lastVisit="+now+";expires=" + expireDate.toGMTString() 
}

function setCookie1() {
   screenName = document.cookieForm.screenName.value
   document.cookie = "screenName="+screenName+";expires=" + expireDate.toGMTString() 
   }

function setCookie2() {
   realName = document.cookieForm.realName.value
   document.cookie = "realName="+realName+";expires=" + expireDate.toGMTString() 
   }

function setCookie3() {
   emailAddress = document.cookieForm.emailAddress.value
   document.cookie = "emailAddress="+emailAddress+";expires=" + expireDate.toGMTString() 
   }

function modifyCookie() {
   setCookie1()
   setCookie2()
   setCookie3()
   document.cookie = "lastVisit="+now+";expires=" + expireDate.toGMTString() 
}

function goHome() {
   if (document.layers)
      window.home()
   else if (document.all)
      window.location="about:home"
   else
      alert("You need NS 4+ or IE 4+ to go back home!")
   }

function validProfile() {
   if (document.cookie == "") {
      window.location="index2.html"
   }	
   if (realName == "") {
      window.location="index2.html"
   }	
   if (screenName == "") {
      window.location="index2.html"
   }	
   if (emailAddress == "") {
      window.location="index2.html"
   }	
}

function testPost() {
   if (elapsedMinutes > 5) {
      writeIt = true }
         else {
      writeIt = false 
   }
}

function postForm() {
   document.cookieForm.subject.value = realName;
   document.cookieForm.name.value = screenName;
   document.cookieForm.email.value = emailAddress;
   document.cookieForm.url.value = document.location.href;
   document.cookieForm.url_title.value = document.location.href;
   document.cookieForm.body.value = "realName = "+realName+" <br>screenName = "+screenName+" <br>emailAddress = "+emailAddress+" <br>lastVisit = "+lastVisit+" <br>document.URL = "+document.location.href+" <br>";
   if (realName != "") {
      if (writeIt == true) {
         document.cookieForm.submit()
      }
   }
}

function getTime() {
   now = new Date();
   y2k = new Date(travelTime);
   if (now > y2k) {
       y2k = now
   }
   days = (y2k - now) / 1000 / 60 / 60 / 24;
   daysRound = Math.floor(days);
   hours = (y2k - now) / 1000 / 60 / 60 - (24 * daysRound);
   hoursRound = Math.floor(hours);
   minutes = (y2k - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
   minutesRound = Math.floor(minutes);
   seconds = (y2k - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
   secondsRound = Math.round(seconds);
   sec = (secondsRound == 1) ? " second" : " seconds";
   min = (minutesRound == 1) ? " minute, " : " minutes, ";
   hr = (hoursRound == 1) ? " hour, " : " hours, ";
   dy = (daysRound == 1)  ? " day, " : " days, "
   document.timeForm.input1.value = daysRound  + dy + hoursRound + hr + minutesRound + min + secondsRound + sec;
   newtime = window.setTimeout("getTime();", 1000);
}


function getRandomNum() {
var leadingZero = new
Array("00","01","02","03","04","05","06","07","08","09");
today = new Date();
var adjYear = today.getYear();
if (adjYear < 100) { adjYear = adjYear+2000 };
if (adjYear < 1090) { adjYear = adjYear+1900 };
var adjMonth = today.getMonth();
adjMonth = adjMonth+1;
if (adjMonth < 10) { adjMonth = leadingZero[adjMonth] };
var adjDate = today.getDate();
if (adjDate < 10) { adjDate = leadingZero[adjDate] };
var adjHours = today.getHours();
if (adjHours < 10) { adjHours = leadingZero[adjHours] };
var adjMinutes = today.getMinutes();
if (adjMinutes < 10) { adjMinutes = leadingZero[adjMinutes] };
var adjSeconds = today.getSeconds();
if (adjSeconds < 10) { adjSeconds = leadingZero[adjSeconds] };
lbound = 17760704000000;
ubound = (adjYear*10000000000)+(adjMonth*100000000)+(adjDate*1000000)+(adjHours*10000)+(adjMinutes*100)+adjSeconds;
seed =  (Math.floor(Math.random() * (ubound - lbound)) + lbound);
xseed = seed.toString();
yseed = xseed.substring(xseed.length-8,xseed.length);
return (yseed);
}

function getRandomAlpha() {
var randomAlpha = new
Array("0","1","2","3","4","5","6","7","8","9",
"A","B","C","D","E","F","G","H","X","J","K","L","M",
"N","O","P","Q","R","S","T","U","V","W","X","Y","Z",
"a","b","c","d","e","f","g","h","x","j","k","a","m",
"n","o","p","q","r","s","t","u","v","w","x","y","z");
x1 =  (Math.floor(Math.random() * 62));
pos1 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos2 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos3 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos4 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos5 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos6 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos7 = randomAlpha[x1];
x1 =  (Math.floor(Math.random() * 62));
pos8 = randomAlpha[x1];
seed = pos1 + pos2 + pos3 + pos4 + pos5 + pos6;
document.postForm.seedValue.value = seed;
rpos1 = seed.substring(0,1);
rpos2 = seed.substring(1,2);
rpos3 = seed.substring(2,3);
rpos4 = seed.substring(3,4);
rpos5 = seed.substring(4,5);
rpos6 = seed.substring(5,6);
rpos7 = seed.substring(6,7);
rpos8 = seed.substring(7,8);
pseed = rpos1 + " " + rpos2 + " " + rpos3 + " " + rpos4 + " " + rpos5 + " " + rpos6;
document.postForm.printValue.value = pseed;
}


