//For displaying sidebar FAQ answers
function showAnswer1()
  {
		document.getElementById('answer1').style.display = 'none';
      	document.getElementById('question1').style.display = 'block';
  }
function showAnswer2()
  {
		document.getElementById('answer2').style.display = 'none';
      	document.getElementById('question2').style.display = 'block';
  }
function showAnswer3()
  {
		document.getElementById('answer3').style.display = 'none';
      	document.getElementById('question3').style.display = 'block';
  }

function printpage() 
	{
		window.print();  
	}

function popWin(loc) {
  	pop=window.open(loc,null,"width=600,height=640");
	pop.focus();
}

function popPromoWin2(loc) {
  	pop=window.open(loc,null,"width=490,height=340,resizable=1");
	pop.focus();
}

function popCardHistory(loc) {
  	pop=window.open(loc,null,"width=490,height=470,scrollbars=1");
	pop.focus();
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function popLocation(loc) {
  	pop=window.open(loc,null,"width=610,height=660");
	pop.focus();
}

function popPromoWin(loc) {
  	pop=window.open(loc,null,"width=370,height=230");
	pop.focus();
}

//max character length check (textboxes and textareas) for administration pages
function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}
