// JavaScript Document
function af(){}

function box_show(target,eleid,width,height,offsetx,offsety){
	var ox = offsetx?offsetx:0;
	var oy = offsety?offsety:0;
	var showText = document.getElementById('showText');
	showText.innerHTML = '';	
	showText.style.width = "0px";
	showText.style.height = "0px";
	showText.className = 'iOpenTextBox_doing';
	showText.setAttribute('_width',width);
	showText.setAttribute('_height',height);
	showText.setAttribute('_left',getleft(target)+ox);
	showText.setAttribute('_top',gettop(target)+oy);		
	box = document.getElementById(eleid);
	box_show1();	
}
function box_show1(){
	var showText = document.getElementById('showText');
	var width = showText.getAttribute('_width');
	var height = showText.getAttribute('_height');
	var top = showText.getAttribute('_top');
	var left = showText.getAttribute('_left');
	showText.style.top = parseInt(top)+15+"px";
	showText.style.left = parseInt(left)+"px";
	if(parseInt(showText.style.width) < width){
		showText.style.width=(parseInt(showText.style.width)+15)+"px";
	}
	if(parseInt(showText.style.height) < height){
		showText.style.height=(parseInt(showText.style.height)+12)+"px";
	}
	if(parseInt(showText.style.width) < width||parseInt(showText.style.height) < height){
		timeout = setTimeout(box_show1,3);
	}else{			
		showText.className = "iOpenTextBox_max";
		if(box){
			showText.innerHTML = box.innerHTML;
		}
		box = null;
	}
}
function box_hidden(){
	var showText = document.getElementById('showText');
	showText.innerHTML = '';
	showText.className = 'iOpenTextBox_min';
}

function selectclose(evt){
	evt = evt || window.event;
	var _target= evt.target || evt.srcElement;
	if(!_target.getAttribute("Author") &&  _target.getAttribute("Author") != 'select_menu1') {
	box_hidden();
	}
}
function changeselect(inputid,textid,value,html){
	//alert(value);
	document.getElementById(inputid).value=value;
	document.getElementById(textid).innerHTML=html;
}