

function longMonthArray() {
	this[0] = "January";	this[1] = "Februrary";	this[2] = "March";
	this[3] = "April";	this[4] = "May";	this[5] = "June";
	this[6] = "July";	this[7] = "August";	this[8] = "September";
	this[9] = "October";	this[10] = "November";	this[11] = "December";
        return (this);
}

function shortMonthArray() {
	this[0] = "January";	this[1] = "February";	this[2] = "March";
	this[3] = "April";	this[4] = "May";	this[5] = "June";
	this[6] = "July";	this[7] = "August";	this[8] = "September";
	this[9] = "October";	this[10] = "November";	this[11] = "December";
        return (this);
}

function longDayArray() {
	this[0] = "Sunday";	this[1] = "Monday";	this[2] = "Tuesday";
	this[3] = "Wednesday";	this[4] = "Thursday";	this[5] = "Friday";
	this[6] = "Saturday";
        return (this);
}

function shortDayArray() {
	this[0] = "Sunday"; this[1] = "Monday"; this[2] = "Tuesday"; this[3] = "Wednesday";
	this[4] = "Thursday"; this[5] = "Friday"; this[6] = "Saturday";
        return (this);
}

function getShortYear(year)
{
shortyear =  year%100;
     if (shortyear < 10) shortyear = "0"+shortyear;
	return shortyear
}

function getLongYear(year)
{
  if (year > 1900) return year
  return year+1900;
}

function writeDateLong(format)
{
   shortDays = new shortDayArray();
   longDays = new longDayArray();
   shortMonths = new shortMonthArray();
   longMonths = new longMonthArray();
   d = new Date();
   day = d.getDate();
   month = d.getMonth();
	year = d.getYear();
   if (format == 0)
     str = shortDays[d.getDay()] + " " + shortMonths[month] +". " + day + ", "+getLongYear(year);
  else if (format == 1)
     str = shortDays[d.getDay()] + " " + longMonths[month] + " " + day + ", "+getLongYear(year);
  else if (format == 2)
     str = longDays[d.getDay()] + " " + longMonths[month] + " " + day + ", "+getLongYear(year);
  else if (format == 3)
     str = longMonths[month] + " " + day + ", "+getLongYear(year);
   else if (format == 4)
     str = shortDays[d.getDay()] + " " + day + " " + shortMonths[month] +". " +getLongYear(year);
  else if (format == 5)
     str = shortDays[d.getDay()] + " " + day + " " + longMonths[month] + " " +getLongYear(year);
  else if (format == 6)
     str = longDays[d.getDay()] + " " + day + " " + longMonths[month] + " " + getLongYear(year);
  else if (format == 7)
     str = day + " " + longMonths[month] + ", "+getLongYear(year);
  else {
     month++;
     shortyear = getShortYear(year);
     if (format == 8)
       str = month + "/" + day + "/" + shortyear;
     else if (format == 9)
       str = month + "/" + day + "/" + getLongYear(year);
     else if (format == 10)
       str = day + "/" + month + "/" + shortyear;
     else if (format == 11)
       str = day + "/" + month + "/" + getLongYear(year);
     else if (format == 12)
       str = shortyear + "/" + month + "/" + day;
     else if (format == 13)
       str = shortyear + "/" + month + "/" + day;
     else {
        if (day < 10) day = "0"+day
        if (month < 10) month = "0"+month
        if (format == 14)
          str = month + "/" + day + "/" + shortyear;
        else if (format == 15)
          str = month + "/" + day + "/" + getLongYear(year);
        else if (format == 16)
          str = day + "/" + month + "/" + shortyear;
        else if (format == 17)
          str = day + "/" + month + "/" + getLongYear(year);
        else if (format == 18)
          str = shortyear + "/" + month + "/" + day;
        else if (format == 19)
          str = shortyear + "/" + month + "/" + day;
        }
     }
  document.writeln(str);
}

function writeDate()
{
   writeDateLong(0);
}

function writeTimeLong(format)
{
   d = new Date();
   hour=d.getHours();
   min=d.getMinutes();
   sec=d.getSeconds();
   if (hour < 10) hour = "0"+hour;
   if (min < 10) min = "0"+min;
   if (sec < 10) sec = "0"+sec;
   
   if (format == 0)
      str = hour+":"+min+":"+sec;
   else if (format == 1)
      str = hour+":"+min;
   
   document.writeln(str);
}

function writeTime()
{
   writeTimeLong(0);
}



function popUp1() {
props=window.open('http://www.rleeermey.com/vizbook/vizbook.htm', 'guestbook', 'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=0, width=630, height=400, left = 250, top = 100');
}


//
var bookmarkurl="http://www.rleeermey.com"
var bookmarktitle="R. Lee Ermey.com - The Gunny's home page"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}



function popUp6() {
props=window.open('http://www.rleeermey.com/forms/feedback.htm', 'feedback', 'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=0, width=600, height=550, left = 350, top = 70');
}


function MOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#990000";
elem.style.cursor = 'crosshair'}

function MOut(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";}

function MDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#990000";}

function MUp(path)
{location.href = path;}


function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function popUpAF() {
props=window.open('http://www.rleeermey.com/forms/autograph.php', 'contact', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=520, height=470, left = 150, top = 25');
}

function popUpAD() {
props=window.open('http://www.rleeermey.com/forms/advertise.php', 'contact', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=520, height=425, left = 130, top = 45');
}

function popUpWM() {
props=window.open('http://www.rleeermey.com/forms/webmaster.php', 'contact', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=520, height=480, left = 110, top = 55');
}

function popUpSG() {
props=window.open('http://www.rleeermey.com/forms/suggestions.php', 'contact', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=520, height=375, left = 90, top = 65');
}

function popUpSL() {
props=window.open('http://www.rleeermey.com/forms/sales.php', 'contact', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=520, height=445, left = 70, top = 75');
}

function popUptaf() {
props=window.open('http://sog.rleeermey.com/taf/friend.php', 'tellafriend', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=640, height=485, left = 150, top = 25');
}


function right(e) {
var msg = "Sorry, you don't have permission to right-click. If you feel you need something, then check out our Copyright link.\n\n  http://www.rleeermey.com/policy.php#copyright\n\nIf you are trying to download a sound or ringtone, then please disable your player so you can select Save when you click the link. If you do not disable the Streaming ability of your player plug-in, you will not be able to save the file.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);  // Delete this line to disable but not alert user
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;


