function ShowHide(id) {
	display = document.getElementById(id).style.display; 
	var i=1;
	for(i=1; i<6;i++) {
		document.getElementById(i).style.display = 'none';		
	 }
	
	if (display=='none') {
		document.getElementById(id).style.display = 'block';		
	}
	 return;
}

/**
 * Open popup 
 *
 * @parameter: url = URL
 * @parameter: w = width
 * @parameter: h = height
 * @parameter: popupName = ame of popup
 * @parameter: scrollbars (default is 0 - without scroll)
 * @access: public
 * @return: null
 * @author: CFlorin (colotin_f@yahoo.com)
 * @date: 02.02.2005 (dd.mm.YYYY)
*/ 
function popup(url, w, h, popupName, scrollbars)
{
	if(popupName == '') popupName='popup';
	if(scrollbars == '') scrollbars=0;
	if(w==0) w=(screen.width);
	if(h==0) h=(screen.height);
	options='menubar=no, scrollbars='+scrollbars+', statusbar=no, resizable=no, toolbar=no, location=no, status=yes';
	var top=(screen.height-h)/2-18;
	var left=(screen.width-w)/2-8;
	var win_open = window.open(url, popupName, 'top='+top+', left='+left+', width='+w+', height='+h+', '+options);
}

/* My popUp*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+','
	win = window.open(mypage,myname,settings)
}
