//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function fl_view(objhtml) { 
	document.write(objhtml); 
} 
/*
function fl_view(obj) { 

	var myObjectElement = document.createElement('<object classid="clsid:098F2470-BAE0-11CD-B579-08002B30BFEB" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="1000" HEIGHT="600" id="top1" ALIGN=""></object>');

	var myParamElement1 = document.createElement('<PARAM NAME=movie value='+obj+'>');  
	var myParamElement2 = document.createElement('<Param name=quality value=high>');
	var myParamElement3 = document.createElement('<Param name=bgcolor value=#FFFFFF>');
	var myParamElement4 = document.createElement('<EMBED src="'+obj+'" quality="high"   WIDTH="340" HEIGHT="34" NAME="top1" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode="transparent" bgcolor="#FFFFFF" menu="false"></EMBED>');

	myObjectElement.appendChild(myParamElement1);
	myObjectElement.appendChild(myParamElement2);
	myObjectElement.appendChild(myParamElement3);
	myObjectElement.appendChild(myParamElement4);

//	embedControlLocation.appendChild(myObjectElement);

//	document.write(objhtml); 
} 
*/
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




function fnc_Blind(divName, style)
{
//	var modalOverlay
//	$(modalOverlay).css({"position":"absolute", width:$(window).width(), height:$(window).height(), top:$(window).scrollTop(), left:$(window).scrollLeft()});

	if (style == "error"){
		$(divName).setStyles({
			'display':'block',
			'position':'absolute',
			'z-index':'9999',
			'top':'0',
			'left':'0',
			'width':getScrollWidth(),
			'height':getScrollHeight(),
			'background-color':'#000000',
			'opacity': 0.7
		});
	}
	else if (style == "module"){
		$(divName).setStyles({
			'display':'block',
			'position':'absolute',
			'z-index':'9999',
			'top':'0',
			'left':'0',
			'width':getScrollWidth(),
			'height':getScrollHeight(),
			'background-color':'#CCCCCC',
			'opacity': 0.5
		});
	}

}


function fnc_ajaxUpdate(div, url)
{
	new Ajax( url,{
		method:'get',
		update: $(div)
	}).request();

}

function fnc_ajaxonComplete(fncName, url)
{
	new Ajax( url,{
		method:'get',
		onComplete:eval(fncName)
	}).request();
}

function fnc_layerDrag(div)
{
	$(div).addEvent('mousedown', function(e) {
		e = new Event(e).stop();
	 
		var drag = $(div).makeDraggable({
		});
		drag.start(e); // start the event manual
	});
}

function fnc_visibilityChange(ctrl, status)
{
	$$(ctrl).each(function(item){
		item.setStyle('visibility', status);
//		$(item).setStyle('visibility', status);
	});


}

