function cbg(obj,code){
	obj.style.backgroundColor = (1 == code) ? '#e9e8ff' : '';
	obj.style.cursor="default";
	return;
}
function MM_openBrWindow(theURL,winName,features){
  	winName = window.open(theURL,winName,features);
}
function popupper(url,x,y,name,sb,rs,st,lt,tb,dp,fs) {
	var win = null;
	var centerwidth=(screen.width/2)-(x/2);
	var centerheight=(screen.height/2)-(y/2);
	var scrollbarstext = 'scrollbars = no,';
	var resizabletext = 'resizable = no,';
	var statustext = 'status = no,';
	var locationtext = 'location = no,';
	var toolbartext = 'toolbar = no,';
	var features = '';
	var fullscreen = '';
	var dependent = '';
	if(sb==1){
		scrollbarstext = 'scrollbars = yes,'
	}
	if(rs==1){
		resizabletext = 'resizable = yes,'
	}
	if(st==1){
		statustext = 'status = yes,'
	}
	if(lt==1){
		locationtext = 'location = yes,'
	}
	if(tb==1){
		toolbartext = 'toolbar = yes,'
	}
	if(dp==1){
		dependent = 'dependent = yes,'
	}
	if(fs==1){
		fullscreen = 'fullscreen = yes,'
	}
	features = 'alwaysRaised=yes,'+dependent + fullscreen + scrollbarstext + resizabletext + statustext;
	features = features + locationtext + toolbartext;
	features = features + 'width = '+x+',height = '+y;
	features = features + ',top = ' + centerheight;
	features = features + ',left = ' + centerwidth;
	MM_openBrWindow(url,name,features);
}