<!-- 
function groupTransform(tableObj)
{
	var hideObj = document.getElementById(tableObj);
	
	if (hideObj.style.display == 'none')
	{
		hideObj.style.display = '';
	}
	else
	{
		hideObj.style.display = 'none';
	}
}

function groupTransformStatic(tableObj, hiddenName)
{
	var hideObj = document.getElementById(tableObj);
	var hiddenVar = document.getElementById(hiddenName);
	
	if (hideObj.style.display == 'none')
	{
		hideObj.style.display = '';
		hiddenVar.value = '';
		alert(hiddenVar.value);
	}
	else
	{
		hideObj.style.display = 'none';
		hiddenVar.value = 'none';
		alert(hiddenVar.value);
	}
}

function switchIcon(imgObj, imgVal)
{
	if (imgVal != '')
	{
		imgObj.src = imgVal;
	}
}

function orderModule(down, col) 
{
  sl = document.frmICCategoryManager[col].selectedIndex;
  if (sl != -1 && document.frmICCategoryManager[col].options[sl].value > "") 
  {
    oText = document.frmICCategoryManager[col].options[sl].text;
    oValue = document.frmICCategoryManager[col].options[sl].value;
    if (document.frmICCategoryManager[col].options[sl].value > "" && sl > 0 && down == 0) {
      document.frmICCategoryManager[col].options[sl].text = document.frmICCategoryManager[col].options[sl-1].text;
      document.frmICCategoryManager[col].options[sl].value = document.frmICCategoryManager[col].options[sl-1].value;
      document.frmICCategoryManager[col].options[sl-1].text = oText;
      document.frmICCategoryManager[col].options[sl-1].value = oValue;
      document.frmICCategoryManager[col].selectedIndex--;
    } else if (sl < document.frmICCategoryManager[col].length-1 && document.frmICCategoryManager[col].options[sl+1].value > "" && down == 1) {
      document.frmICCategoryManager[col].options[sl].text = document.frmICCategoryManager[col].options[sl+1].text;
      document.frmICCategoryManager[col].options[sl].value = document.frmICCategoryManager[col].options[sl+1].value;
      document.frmICCategoryManager[col].options[sl+1].text = oText;
      document.frmICCategoryManager[col].options[sl+1].value = oValue;
      document.frmICCategoryManager[col].selectedIndex++;
    }
  }
}

function GetOrder()
{
	var howmany=document.frmICCategoryManager.ucICCategoryMngr_lbListOfCategories.length;
	document.frmICCategoryManager.selectedNews.value = "";
	
	for(i=0;i<howmany-1;i++)
		document.frmICCategoryManager.selectedNews.value += document.frmICCategoryManager.ucICCategoryMngr_lbListOfCategories.options[i].value+",";
	document.frmICCategoryManager.selectedNews.value += document.frmICCategoryManager.ucICCategoryMngr_lbListOfCategories.options[i].value;
	document.frmICCategoryManager.noOfItems.value = howmany;
}

/*
function GetOrder(ctrlID, valueToStoreOrder, noOfItems)
{
	var ctrl = document.getElementById(ctrlID);
	var hiddenVar = document.getElementById(valueToStoreOrder);
	
	var howmany = ctrl.length;	
	hiddenVar.value = "";
	
	for(i=0;i<howmany-1;i++)
		hiddenVar.value += ctrl.options[i].value+",";
		
	hiddenVar.value += ctrl.options[i].value;
	document.getElementById(noOfItems).value = howmany;
}
*/

function WinPopup(page)
{
	window.open(page,'','toolbar=0,dependent=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=492,height=180,alwaysRaised=1,alwaysLowered=2,left=180,top=220').focus();
}

function PopUpWnd(page, left, top, width, height)
{
	window.open(page,'','toolbar=0,dependent=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + width +',height=' + height + ',alwaysRaised=1,alwaysLowered=2,left=' + left + ',top=' + top ).focus();
}

function moveItemFromList(o_col, d_col) 
{	
	o_sl = document.getElementById(o_col).selectedIndex;	
	d_sl = document.getElementById(d_col).length;
		
	if(o_sl != -1 && document.getElementById(o_col).options[o_sl].value > "")
	{
		oText = document.getElementById(o_col).options[o_sl].text;
		oValue = document.getElementById(o_col).options[o_sl].value;
		document.getElementById(o_col).options[o_sl] = null;
		document.getElementById(d_col).options[d_sl] = new Option (oText, oValue, false, true);
	}
}

function ShowAltWnd(strComment)
{
	var axisX = window.event.clientX, 
		axisY = window.event.clientY;

	document.getElementById('alertWnd').innerHTML = '<img src="images/alertWndComment.gif" width="30" height="28" alt="" style="float: left;" border="0">' +strComment;
	document.getElementById('alertWnd').style.position = 'absolute';
	document.getElementById('alertWnd').style.top = axisY+5;
	document.getElementById('alertWnd').style.left = axisX+13;
	document.getElementById('alertWnd').style.display = '';
}

function HideAltWnd()
{
	document.getElementById('alertWnd').style.display = 'none';
}

function formating(obj)
{
	var numValue = new Number(parseInt(obj.value));
	obj.value = numValue.toLocaleString();
}
function CheckParent(obj) {
	if(top.document.getElementsByTagName('frameset')[0]) {
		document.getElementById('headerholder').style.display = 'none'
	}else{
		document.getElementById('headerholder').style.display = 'block'	
	}
}
-->