// JavaScript Document

function SelectState( _country, _stateAustralia, _stateOther ) 
{
  if (_country == 'Australia')
  {
    document.getElementById( _stateAustralia ).style.display = 'block';
    document.getElementById(_stateOther).style.display = 'none';
  }
  else 
  {
    document.getElementById(_stateOther).style.display = 'block';
    document.getElementById( _stateAustralia ).style.display = 'none';
  }
}

function openBox(pageLoc, pageName, boxHeight, boxWidth, canScroll, hasStatus)
{
  var configString = "height=" + boxHeight + ",width=" + boxWidth + ",scrollbars=" + canScroll + ",status=" + hasStatus;
  window.open(pageLoc,pageName,configString);
}

function ShowOtherTxt( _subject, _otherTextBox ) 
{
  if (_subject.toLowerCase() == 'other')
  {
		if (document.getElementById) 
			document.getElementById( _otherTextBox ).style.display = 'block';
		else if (document.all) 
			document.all[ _otherTextBox ].style.visibility = 'visible';
		else if (document.layers) 
			document.layers[ _otherTextBox ].visibility = 'show';
  }
  else 
  {
    if (document.getElementById) 
			document.getElementById( _otherTextBox ).style.display = 'none';
		else if (document.all) 
			document.all[ _otherTextBox ].style.visibility = 'hidden';
		else if (document.layers) 
			document.layers[ _otherTextBox ].visibility = 'hide';
  }
}

