	var config 										= "";
	var BUTTONS_config 	= "";
	var THUMBS_config 		= "";
	var IMAGES_config 		= "";
	var diag     									= 0;
	var button_color;
	var cat_val_out, iii_out, jjj_out
//----
	function page_button_init()
	{
		config = '<form>';
		document.write(config);
		config = '<center>';
		document.write(config);
		config = "";
	}
//----
//	function page_button_add(button_name, BUTTONS, THUMBS, IMAGES, name_1, name_2,button_type)
	function page_button_add(button_name, BUTTONS, THUMBS, IMAGES, button_type)
	{	
		if(button_type == 0) button_color = "#000020";
		if(button_type == 1) button_color = "#004040";
//----		
		if(button_name == "") 
		{
//----		
			config = config
				+ '<input type=button value=" "'
				+ ' style='
				+ '"('
				+ 'background-color='
				+ button_color + ';'
				+ 'border=0px;'
				+ 'width=100px;'
				+ 'height=38px;'
				+ 'visibility=hidden)"'			
				+ '>';
		}
//----		
		if(button_name!="") 
		{		
//			if(name1_in!="" && name2_in!="") folder_find(name1_in, name2_in, cat_val_out, iii_out, jjj_out);
			if(BUTTONS!="")
			{
				BUTTONS_config = 'top.parent.BUTTONS2.location=' + '\'' + BUTTONS + '\''	+ ';';
			}
			if(THUMBS!="")
			{
				THUMBS_config = 'top.parent.THUMBS.location='	+ '\'' + THUMBS + '\''	+ ';';
			}		
			if(IMAGES!="")
			{
				IMAGES_config = 'top.parent.IMAGES.location='	+ '\'' + IMAGES + '\''	+ ';';
			}				
//----		
			config = config
				+ '<input type=button value='
				+ '"'
				+ button_name
				+ '"'
				+ ' style='
				+ '"('
				+ 'background-color='
				+ button_color + ';'
				+ 'color: #C0C0C0;'
				+ 'font-color: #000020;'
				+ 'font-size: xx-small;'
				+ 'font-weight: 900;'
				+ 'width: 100px;'
				+ 'height: 38px;'
				+ 'visibility: visible'
				+ ')"'
				+ ' onclick='
				+ '"'
				+ BUTTONS_config
				+ THUMBS_config
				+ IMAGES_config
				+ 'return true;'
				+ '"'						
				+ '>';
			if(diag==1) alert('diag' + config);
		}
	}
//----
	function page_button_end()
	{
		if(diag==2) alert(config);
		document.write(config);
		config = '</center>';
		document.write(config);
		config = '</form>';
		document.write(config);
	}
