// JavaScript Document
<!-- Begin
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;
}
// End -->

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

<!--
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
//-->
function submitform()
{
  document.flagger.submit();
}

function submitform2()
{
  document.commenter.submit();
}

function submitformmailer()
{
  document.mailer.submit();
}

function submitformdelete()
{
  document.maildelete.submit();
}

function submitformmailer()
{
  document.mailer.submit();
}

function submitformRec()
{
  document.reccer.submit();
}

function submitformInviteRec()
{
  document.inviteRec.submit();
}

var tabs = new Array('tab1', 'tab2', 'tab3', 'tab4', 'tab5', 'tab6', 'tab7', 'tab8', 'tab9', 'tab10', 'tab11');

function showTab(tab, tabName)
{
	var tabToShow = document.getElementById(tabName);

	for(i = 0; i< tabs.length; i++)
	{
		// Get the current tab
		var curPanel = document.getElementById(tabs[i]);

		// If it exists, hide it
		if (curPanel != null)
			curPanel.style.display = 'none';
	}

	// This line works around a display bug in Gecko-based browsers
	tabToShow.style.display = 'inline';

	// Show the tab
	tabToShow.style.display = 'block';

	return false;
}

function changePreview(tabNumber) {
      var tabNames = ['tab1','tab2'];
      
      for (i = 1; i <= tabNames.length; i++) {
        document.getElementById('infotable' + i).style.display = 'none';
      }
      document.getElementById('infotable' + tabNumber).style.display = '';

      tds = document.getElementById('infotable').getElementsByTagName('td');
      for(i = 0; i < tds.length; i++) {
        if (tds[i].className == 'active menu')
          tds[i].className = 'menu';
      }
      document.getElementById('tab' + tabNumber).className = 'active menu';
    }


function showhide() {
var country = document.getElementById("country").selectedIndex;
if (country == 'US') {
document.getElementById("state").style.display = "inline";
document.getElementById("local").style.display = "none";
document.getElementById("stateDesc").style.display = "inline";
document.getElementById("localDesc").style.display = "none";
} else {
document.getElementById("state").style.display = "none";
document.getElementById("local").style.display = "inline";
document.getElementById("stateDesc").style.display = "none";
document.getElementById("localDesc").style.display = "inline";
}
}

<!--
			function postFBFeed(FBapiKey,FBTemplateID,FBTemplateContent) {
			
				
   				FB.init(FBapiKey,"xd_receiver.htm");
				
				var t3=setTimeout( function () {
				FB.ensureInit(function() {
									   
					var replaceWith = "\"";
					var myNewString = FBTemplateContent.replace(/|/, replaceWith);
				   
									   
					FB.Connect.showFeedDialog(FBTemplateID, myNewString);
				})},1000);
			};
			//-->