function popUp(strURL,strType,strHeight,strWidth) {
	centerX = (screen.width - strWidth )/2;
	centerY = (screen.height - strHeight)/2;	
	var strOptions="";
	if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth+", left="+centerX+", top="+centerY;
	if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
	if (strType=="elastic") strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth+", left="+centerX+", top="+centerY;
	window.open(strURL, 'newWin', strOptions);
}

function showhide(id)
{
     if (document.getElementById(id).style.display == 'none')
     {
          document.getElementById(id).style.display = 'block';
     }
	 else {
          document.getElementById(id).style.display = 'none';	 
	 }
}

function scrollWindow( oLink ) {
  if( oLink.offsetParent ) {
    for( var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent ) {
      posX += oLink.offsetLeft;
      posY += oLink.offsetTop;
    }
    //return [ posX, posY ];
	window.scroll(0, posY);
	//return posY;
  } else {
    //return [ oLink.x, oLink.y ];
	//return oLink.y;
	window.scroll(0, oLink.y);
  }
}
