
// Text box marquee by Dave Methvin, Windows Magazine
// May be used/modified if credit line is retained
// Modified with Inline Style Tags to add Font Colors by Thomas A. Rowe 1998.

// CHANGE THESE TO ALTER THE SCROLL SPEED
ScrollSpeed = 200;  // milliseconds between scrolls
ScrollChars = 2;    // chars scrolled per time period

function ScrollMarquee() {
  window.setTimeout('ScrollMarquee()',ScrollSpeed);
  var msg = document.marquee1.text.value;
  document.marquee1.text.value = msg.substring(ScrollChars) + msg.substring(0,ScrollChars);
}

// -----------------------------------------------------------------------
function SetCookie (name, value) {
         var argv = SetCookie.arguments;
         var argc = SetCookie.arguments.length;
         var expires = (argc > 2) ? argv[2] : null;
         var path = (argc > 3) ? argv[3] : null;
         var domain = (argc > 4) ? argv[4] : null;
         var secure = (argc > 5) ? argv[5] : false;
         document.cookie = name + "=" + escape (value) +
         ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
         ((path == null) ? "" : ("; path=" + path)) +
         ((domain == null) ? "" : ("; domain=" + domain)) +
         ((secure == true) ? "; secure" : "");
//   window.alert("in setcookie - name = " + name + " valie is " + value);
//   window.alert("cookie is " document.cookie);
}

// -----------------------------------------------------------------------
function setC(prod_val) {
   var expdate = new Date ();
   expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 31));
 //  window.alert("in setc prod_val = " + prod_val + " exp date " + expdate);
   SetCookie ("product", prod_val, expdate);

}

// -----------------------------------------------------------------------
// 
// -----------------------------------------------------------------------
function showLegal()
{
//	alert("in proc");
	window.open("http://www.lawnpro.com/_new/legal.htm", "LegalNotice", "width=450,height=500,scrollbars=yes,noresize");
}

// -----------------------------------------------------------------------
// 
// -----------------------------------------------------------------------
function showY2K()
{
	window.open("http://www.acpsr.com/y2k.htm", "Y2KNotice", "width=350,height=300,scrollbars=yes,noresize");
}

// -----------------------------------------------------------------------
// 
// -----------------------------------------------------------------------
function showPricing()
{
//	alert("product is" & product);
	window.open("http://www.acpsr.com/atl_pricing.htm", "AltlasPricing", "width=350,height=500,scrollbars=yes,noresize");
}
