
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function popSimple(url, width, height, left, top){

	// sanity checking
	if (!url) { return false; }
	
	// default params
	if (left == undefined){
		left = 200;
	}
	if (top == undefined){
		left = 0;
	}
	
	// build the param list for the window.open() call
	var params = '';
	
	// fixed params
	params += 'toolbar=0';
	params += ',menubar=0';
	params += ',statusbar=0';
	params += ',scrollbars=0';
	params += ',resizable=0';
	
	// desired params
	params += ',height='+height;
	params += ',width='+width;
	params += ',height='+height;
	params += ',left='+left;
	params += ',top='+top;
	
	// call window open
	return window.open(url, 'win', params);
	
}

function popSimpleGallery(url){
	return popSimple(url, 505, 420, 200, 0);
}
