function popup(url, winname, width, height)
{
  var Win = window.open(url,
                        winname,
                        'width=' + width +
                        ',height=' + height +
                        ',location=no,menubar=no,status=no,toolbar=no,scrollbars=1,resizable=1,left=50,top=50');
}

function openWindow(url, winname, width, height, left, top)
{
  var Win = window.open(url,
                        winname,
                        'width=' + width +
                        ',height=' + height +
                        ',location=no,menubar=yes,status=no,toolbar=no,scrollbars=1,resizable=1,' +
                        'left=' + left +
                        ',top=' + top);
}

function fullWindow(url, winname, width, height, left, top)
{
  var Win = window.open(url,
                        winname,
                        'width=' + width +
                        ',height=' + height +
                        ',location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=1,resizable=1,' +
                        'left=' + left +
                        ',top=' + top);
}

function toolWindow(url, winname, width, height, left, top)
{
  var Win = window.open(url,
                        winname,
                        'width=' + width +
                        ',height=' + height +
                        ',location=no,menubar=yes,status=no,toolbar=yes,scrollbars=1,resizable=1,' +
                        'left=' + left +
                        ',top=' + top);
}

function checkNonBlank(bAlert, oField)
{
  var bOk = true;

  if (oField.value.length == 0) {
    bOk = false;
    if (bAlert) {
      alert("This field is a required field");
      oField.focus();
    }
  }

  return bOk;
}

function checkInt(bAlert, oField)
{
  var bOk = true;
  var nOldValue = parseInt(oField.value);

  if (isNaN(nOldValue)) {
    bOk = false;
    if (bAlert) {
      alert("This field must contain a numeric value." + oField.value);
      oField.focus();
    }
    else
     oField.value = "0";
  }

  return bOk;
}


/* -----------------02/20/2009 10:00AM---------------
 showDiv - Show a division
 --------------------------------------------------*/
function showDiv(sTxt, sDiv) {

	if ( document.getElementById(sDiv) ) {
	  document.getElementById(sDiv).innerHTML = sTxt;
	  document.getElementById(sDiv).style.display = 'block';
	}
}

/* -----------------02/20/2009 10:00AM---------------
 hideDiv - Hide a division
 --------------------------------------------------*/
function hideDiv(sDiv) {

	if ( document.getElementById(sDiv) ) {
	  document.getElementById(sDiv).style.display = 'none';
	}
}

/* -----------------02/20/2009 10:00AM---------------
 hideTab - Hide a tab
 --------------------------------------------------*/
function hideTab(sDiv) {

	if ( document.getElementById(sDiv) ) {
	  document.getElementById(sDiv).style.display = 'none';
	}

}

/* -----------------02/20/2009 10:00AM---------------
 topList - Load the requested top list
 --------------------------------------------------*/
function topList(sTab) {


	hideDiv('tab_top_G');
	hideDiv('tab_top_F');
	hideDiv('tab_top_E');
	hideDiv('tab_top_H');
	hideDiv('tab_top_K');
	hideDiv('tab_top_L');
	hideDiv('tab_top_B');

	showDiv('', 'tab_top_' + sTab);

}



