function logoSwap(state){
	if (state == 'onmouseover'){
		document.images['logo'].src='../images/thePony_rollover.gif';

	}
	if (state == 'onmouseout'){
		document.images['logo'].src='../images/thePony_unselected.gif';
	}
}
	
function hoverLink(state){
	if (state == 'design'){
		document.images['logo'].src='../images/thePony_design.gif';
		document.images['lines'].src='../images/lines_design.gif';
	}
	if (state == 'pictures'){
		document.images['logo'].src='../images/thePony_pictures.gif';
		document.images['lines'].src='../images/lines_pictures.gif';
	}
	if (state == 'words'){
		document.images['logo'].src='../images/thePony_words.gif';
		document.images['lines'].src='../images/lines_words.gif';
	}
	if (state == 'ponybox'){
		document.images['logo'].src='../images/thePony_ponybox.gif';
		document.images['lines'].src='../images/lines_ponybox.gif';
	}
	if (state == 'chance'){
		document.images['logo'].src='../images/thePony_chancedance.gif';
		document.images['lines'].src='../images/lines_chancedance.gif';
	}
	if (state == 'off'){
		document.images['logo'].src='../images/thePony_unselected.gif';
		document.images['lines'].src='../images/lines_unselected.gif';
	}
}

var IsNetscape = document.layers;
var IsMSIE = document.all;

function limit_textarea(ctl,iLimit) {
	if (ctl.value.length >= iLimit) {
    	ctl.value = ctl.value.substr(0,iLimit);
    	alert("You cannot enter more than "+iLimit+" characters in this field.");
    	if (IsMSIE) {
      		window.event.returnValue=false;
    	} 
		return false;
  	}
}