
	var stest_time1 = false;
	var stest_time2 = false;
	var stest_result = 256;
	var optionArray = new Array();
	var isMovie = false;

	function getObjectByID( id, o )
	{
		var c, el, els, f, m, n;
		if (!o) o = document;
		if (o.getElementById) el = o.getElementById(id); else 
			if (o.layers) c = o.layers; else
				if (o.all) el = o.all[id];
		if (el) return el;
		if (o.id==id || o.name==id) return o;
		if (o.childNodes) c = o.childNodes;
		if (c)
			for (n=0; n<c.length; n++)
			{
				el = getObjectByID(id,c[n]);
				if (el) return el;
			}; //for
		f = o.forms;
		if ( f )
			for (n=0; n<f.length; n++)
			{
				els = f[n].elements;
				for (m=0; m<els.length; m++)
				{
					el = getObjectByID(id,els[n]);
					if (el) return el;
				}; //for
			}; //for
		return null;
	}; //func

	function addOption( selectId, txt, val, color )
	{
		var objOption = new Option( txt, val );
		if ( color && objOption.style )
		{
			objOption.className = 'sel_' + color;
		}; //if
		sl = getObjectByID( selectId );
		if ( sl )
		{
			if ( document.all )
			{
				sl.options.add( objOption );
			} else
			{
				sl.options[sl.options.length] = objOption;
			}; //if
		}; //if
	}; //func

	function selectOption( selectId, index )
	{
		sl = getObjectByID( selectId );
		if ( sl  )
		{
			sl.selectedIndex = index;
		}; //if
	}; //func

	function clearOptions( selectId )
	{
		sl = getObjectByID( selectId );
		if ( sl  )
		{
			while ( sl.length > 0 )
			{
				sl.remove( 0 );
			}; //while
		}; //if
	}; //func

	function centralizeObject( id, width, height )
	{
		isMovie = true;

		obj = getObjectByID( id );
		if ( ( obj ) && ( obj.style ) )
		{
			screenWidth = document.body.clientWidth;
			screenHeight = document.body.clientHeight;
			obj.style.width = width;
			obj.style.height = height;
			obj.style.left = ( screenWidth - width ) / 2;
			obj.style.top = document.body.scrollTop + 100; //( ( screenHeight - height ) / 2 ) + document.body.scrollTop;
		}; //if
	}; //func

	function posObject( id, width, height, left, top )
	{
		obj = getObjectByID( id );
		if ( ( obj ) && ( obj.style ) )
		{
			obj.style.width = width;
			obj.style.height = height;
			obj.style.left = left;
			obj.style.top = top;
		}; //if
	}; //func

	function GetClassName( id )
	{
		obj = getObjectByID(id);
		if (obj!=null)
		{
			return obj.className;
		}; //if
	}; //func

	function SetClassName( id, className )
	{
		obj = getObjectByID(id);
		if (obj!=null)
		{
			obj.className = className;
		}; //if
	}; //func

	function copyValue( sid, did )
	{
		sobj = getObjectByID( sid );
		dobj = getObjectByID( did );
		if ( ( sobj != null ) && ( dobj != null ) )
		{
			dobj.value = sobj.value;
		}; //if
	}; //func

	function ShowHideObj(id, ret) {
		obj = getObjectByID(id);
		if (obj!=null)
		{
			if ( obj.className== 'hidden')
			{
				obj.className = 'visible';
			} else
			{
				obj.className = 'hidden';
			}; //if
		}; //if
		if (ret==true)
		{
			return obj;
		}; //if
	}; //func
