<!--
function hide(thing) { document.getElementById(thing).style.display = 'none'; }
function view(thing) { document.getElementById(thing).style.display = 'block'; }

function toggle(thing)
  {
    if ( document.getElementById(thing).style.display != 'block') { view(thing); }
    else if ( document.getElementById(thing).style.display != 'none') { hide(thing); }
  }

function changePic(image)
	{
		if (document.getElementById('picture'))
			{ document.getElementById('picture').style.backgroundImage='url("http://www.watercolor-painting.com/images/puppies/thumbs/'+image+'")'; }
		document.getElementById('picture2').style.backgroundImage='url("http://www.watercolor-painting.com/images/puppies/'+image+'")';
	}

function go(clicked)
	{
    if (eval('document.main.'+clicked+'.value') == '')
      {
        clicked = clicked.substring(0,(clicked.length-1))+String.fromCharCode(Math.max((clicked.substring((clicked.length-1),clicked.length)).charCodeAt(0)-1,97));
      }
    document.main.clicked.value=clicked;
    document.main.submit();
	}

/* DHTML textbox character counter (IE4+) script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/) */
function taLimit()
	{
		var taObj=event.srcElement;
		if (taObj.value.length==taObj.maxLength*1) return false;
	}

function taCount(visCnt)
	{
		var taObj=event.srcElement;
		if (taObj.value.length>taObj.maxLength*1) taObj.value=taObj.value.substring(0,taObj.maxLength*1);
		if (visCnt) visCnt.innerText=taObj.maxLength-taObj.value.length;
	}

// checked email boxes
function emails()
  {
    var emaillist = 'mailto:'
    for(var i=0; i < document.main.email.length; i++)
      {
        if(document.main.email[i].checked) { emaillist += document.main.email[i].value + ',' }
      }
    if(document.main.email.length==undefined)
      { if(document.main.email.checked) { emaillist += document.main.email.value } }
    document.links.emailchecked.href = emaillist
  }

function copyit(text)
  {
    var tempval=eval("document."+text);
    tempval.focus();
    tempval.select();
    therange=tempval.createTextRange();
    therange.execCommand("Copy");
  }

//-->