function showHide(id){
	if(document.getElementById("box"+id).style.display == 'none'){
		document.getElementById("box"+id).style.display = 'block';
		document.getElementById("img"+id).src = '/img/layout/minus.gif';
	}else{
		document.getElementById("box"+id).style.display = 'block';
		document.getElementById("box"+id).style.display = 'none';
		document.getElementById("img"+id).src = '/img/layout/plus.gif';
	}
}

function setFooter(){
	boxi=document.getElementById('box');
	naviHeight=document.getElementById('navi').offsetHeight;
	contentiMidi=document.getElementById('midContent');
	contentHeight=document.getElementById('content').offsetHeight;
	
	if(contentHeight < 500){
		boxi.style.height=682 + 'px';	
		contentiMidi.style.height=622 + 'px';	
	}else{
		boxi.style.height=(contentHeight+250) + 'px';	
		contentiMidi.style.height=(contentHeight+190) + 'px';	
	}
}

function setContent(){
	var contentHeight	= document.getElementById('content').offsetHeight;
	
	if(contentHeight < 510){
		document.getElementById('content').style.height = 510 + 'px';
	}
}

// Change ItemID 
function change_id(in1,in2){
	var str1='document.'+in1+'.'+in2+'.selectedIndex'
	var str2='document.'+in1+'.'+in2+'['+str1+'].value'
	var id=eval(str2);
	var laststr="<cfoutput>#ListLast(cgi.path_info, '/')#</cfoutput>";
	var url=self.location;
	var newurl=url.replace(id, laststr);
}


function openWin (URL,Wid,Hei) {
	aWindow = window.open(URL,"OpenWin",
        'toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + openWin.arguments[1] +
        ',height=' + openWin.arguments[2]);
}


function openWinToolbar (URL,Wid,Hei) {
     aWindow = window.open(URL,"_blank",
        'toolbar=yes,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + openWinToolbar.arguments[1] +
       ',height=' + openWinToolbar.arguments[2]);
}


//-------------------------------------------------------------------------------------
// *** PXL.BROWSER - NAMESPACE *** 
//-------------------------------------------------------------------------------------	
if(!pxl) var pxl={};
if(!pxl.browser) pxl.browser={};

pxl.browser.isIE = false;
pxl.browser.isIE7 = false;
pxl.browser.isSupported = false;
pxl.browser.detect = function()
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  var ie7 = (document.all && !window.opera && window.XMLHttpRequest) ? true : false;
  if(ie7)
  {
  	pxl.browser.isIE = true;
  	pxl.browser.isIE7 = true;
  }
  pxl.browser.isSupported = true;
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	pxl.browser.isIE = true;
	pxl.browser.isSupported = true;
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  pxl.browser.isIE = true;
      pxl.browser.isSupported = true;
      }
    catch (e)
      {
      //alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
}	
pxl.browser.detect();
//running gadmin browser detection v0.01a  

pxl.isNumber = function(x) 
{ 
  return ( (typeof x === typeof 1) && (null !== x) && isFinite(x) );
}