/* Drop down dub-Selector Script */
function archiveselect(){
var slct = document.archiveform.archives.options[document.archiveform.archives.selectedIndex].value;

if (slct == ""){
	}
else {
	location.href=slct;
	}
}


/* creates centered popup windows */
function openCenterWin(url,theWidth,theHeight)
{
  var theTop=(screen.height/2)-(theHeight/2);
  var theLeft=(screen.width/2)-(theWidth/2);
  var features='height='+theHeight+',width='+theWidth+',top='+theTop+',left='+theLeft+",scrollbars=no";
  theWin=window.open(url,'',features);
}


/* counts characters in textareas */
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}

