//----------------------------------------------------------------
//@Set global val
//----------------------------------------------------------------
var fadeout_opacity = 100;  // Set opacity inicial value of child window
var fadeout_timer;         // Timer object for the child windows fadeout

//----------------------------------------------------------------
//@xClickACT
//----------------------------------------------------------------
function xClickACT(id_html){

	fadeout_opacity = 100;
	var mainwaku = document.getElementById('mainwaku');
	mainwaku.style.visibility = 'visible';
	mainwaku.style.filter = 'alpha(opacity=100)';  // For Internet Explorer
	mainwaku.style.mozOpacity = 1.0;              // For FireFox
	mainwaku.style.opacity = 1;                 // For Safari
	xHttprequestACT( '' , 'GET', id_html , true );
	

	id_select_vis  =  'none'
	document.getElementById('select').style.display = id_select_vis
	document.getElementById('select2').style.display = id_select_vis
	sflag=2;
	document.body.scroll = 'no';
	

}
//----------------------------------------------------------------
//@xCloseACT For the closing of centerlized popup window
//----------------------------------------------------------------

// Close child windows
function closeChildWindow() {
	document.getElementById('closer').style.display = "none";
	document.getElementById('mainwaku').style.display = "none";
	document.getElementById('mainc').innerHTML = null
}

// Close closer after child windows is not active
function closeclose() {
		if(fadeout_opacity<=10){
		document.getElementById('closer').style.display = "none";
		document.getElementById('mainc').innerHTML = null
		}else if(fadeout_opacity>10){
		document.getElementById('closer').style.display = "block";
		};
};

function xCloseACT(id) {

    // Undisplay the child window
	closeChildWindow();
	id_select_vis  =  'block'
	document.getElementById('select').style.display = id_select_vis
	document.getElementById('select2').style.display = id_select_vis
	sflag=0;



}
