	var config				= "";
	var BUTTONS_config 		= "";
	var THUMBS_config 		= "";
	var IMAGES_config 		= "";
	var diag				= 0;
	var button_color;
	var button_width, button_height, border_width, border_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_name == "") 
		{
//----		
			config = config
				+ '<input type=button value=" "'
				+ ' style="'
				+ 'background-color: #96AD65;'
				+ 'width: 120px;'
				+ 'height: 30px;'
				+ 'color: #254117;'
				+ 'border: 1px solid;'
				+ 'border-color: #254117 #254117 #254117 #254117;'	
				+ 'vertical-align: top;'
				+ 'font-family: arial;'
				+ 'font-size: 67%;'
				+ 'font-weight: 700;'			
				+ 'visibility: visible;'			
				+ '>';
		}
//----		
		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: #96AD65;'
				+ 'width: 120px;'
				+ 'height: 30px;'
				+ 'color: #254117;'
				+ 'border: 1px solid;'
				+ 'border-color: #254117 #254117 #254117 #254117;'	
				+ 'vertical-align: middle;'
				+ 'font-family: arial;'
				+ 'font-size: 67%;'
				+ 'font-weight: 700;'			
				+ 'visibility: visible;'
				+ '"'
				+ ' onclick='
				+ '"'
				+ BUTTONS_config
				+ THUMBS_config
				+ IMAGES_config
				+ 'return true;'
				+ '"'						
				+ '>'
				+ '&nbsp;';
			if(diag == 1) alert('diag\n' + config);
		}
	}
//----
	function page_button_end()
	{
		if(diag == 2) alert(config);
		document.write(config);
		config = '</center>';
		document.write(config);
		config = '</form>';
		document.write(config);
	}

