//show or hide blocks
function Show_Stuff(clickMenu)
{
	var id = document.getElementById(clickMenu);
	
	if (id.style.display == "none")
	{
		id.style.display = "block";
	} else {
		id.style.display = "none";
	}
}

var myRemote = null;
	
function launch(newURL, newName, newFeatures, orgName)
{
  var remote = window.open(newURL, newName, newFeatures);
 
  if (remote.opener == null)
 	 remote.opener = window;
 
  remote.opener.name = orgName;
  
  return remote;
}

function launchRemote(str) 
{
	myRemote = launch (str,
'popup','scrollbars=yes,resizable=0,width=710,height=480,status=0,screenX=1,left=1,screenY=1,top=1,toolbar=0', "finestraorig");

//    searchWin.refer = self;
}

function popup(str) {

        searchWin = window.open(str,'popup','scrollbars=yes,resizable=no,width=830,height=730,status=no,screenX=1,left=1,screenY=1,top=1,toolbar=no');

//        searchWin.refer = self;

}

function openCenteredPopup(pagelink,dimx,dimy) {        
	var arglist, posx, posy;   
	arglist = "resizable=no, scrollbars=no, ";   
	arglist = arglist+"width="+dimx+", ";   
	arglist = arglist+"height="+dimy+", ";   
	posx = (window.screen.availWidth/2)-(dimx/2); 
	posy = (window.screen.availHeight/2)-(dimy/2); 
	arglist = arglist+"left="+posx+", ";   
	arglist = arglist+"top="+posy;   
    window.open(pagelink,'',arglist);     
}