<!---
function strLeadingZero(val)
{
  if (val < 10) {
     val = "0" + val;
  };
  return(val);
}

function strUserDate()
{
   var todayDate = new Date();
   var s;
   s = strLeadingZero(todayDate.getDate()) + "/";
   s += strLeadingZero((todayDate.getMonth()+1)) + "/";
   s += todayDate.getFullYear();
   return(s);
}

function voidPutATag(strTag)
{
	document.forms[0].iMessage.value += strTag;
}

function returnExpiry(days)
{
   var todayDate = new Date();
   todayDate.setDate(todayDate.getDate()+days);
   return(todayDate.toGMTString());
}

function putData()
{
   document.cookie = "vName="+escape(document.forms[0].iName.value)+"; expires="+returnExpiry(365)+";";
}

function extractCookieValue(val)
{
   if ((endOfCookie = document.cookie.indexOf(";",val)) == -1)
   {
      endOfCookie = document.cookie.length;
   }
   return unescape(document.cookie.substring(val,endOfCookie))
}

function ReadCookie(cookiename)
{
   var numOfCookies = document.cookie.length;
   var nameOfCookie = cookiename+"=";
   var cookieLen = nameOfCookie.length;
   var x = 0;
   while (x <= numOfCookies) {
     var y = (x+cookieLen);
     if (document.cookie.substring(x,y) == nameOfCookie)
        return(extractCookieValue(y));
     x = document.cookie.indexOf(" ",x) + 1;
     if (x == 0)
        break;
   }
   return("");
}

function loadData()
{
   document.forms[0].iName.value = unescape(ReadCookie("vName"));
}

function getTextContent(n) 
{
	var s = "";
	var children = n.childNodes;
	for (var i=0; i < children.length; i++)
	{
		var child = children[i];
		if (child.nodeType == 3)
			s += child.data;
		else s += getTextContent(child);
	}
	return s;
}

function voidPutReply(replyId,authorID)
{
	var textId = 'text-' + replyId;
	var textS = getTextContent(document.getElementById(textId));
	document.forms[0].iMessage.value += '<p><b>'+authorID+',</b>';
	document.forms[0].iMessage.value += '<BLOCKQUOTE>'+textS+'</BLOCKQUOTE><P>';
}

function validateData()
{
	var saName=new String(document.updategb.iName.value);
	if (saName.length>4) {
		putData();
		return true;
	} else {
		return false;
	}
}

// --->
