// JavaScript Document

// to show .... onClick="_show_progress_()"
// to hide .... onClick="_hide_progress_()"

document.write("<style>.hide { position:absolute; visibility:hidden; }.show { position:absolute; visibility:visible; }</style>");
function ProgressCreate() {
	// Move layer to center of window to show
	if (document.all) {	// Internet Explorer
		progress.className = 'show';
		progress.style.left = (document.body.clientWidth/2) - (progress.offsetWidth/2);
		progress.style.top = document.body.scrollTop+(document.body.clientHeight/2) - (progress.offsetHeight/2);
	} else if (document.layers) {	// Netscape
		document.progress.visibility = true;
		document.progress.left = (window.innerWidth/2) - 100;
		document.progress.top = pageYOffset+(window.innerHeight/2) - 40;
	} else if (document.getElementById) {	// Netscape 6+
		document.getElementById("progress").className = 'show';
		document.getElementById("progress").style.left = (window.innerWidth/2)- 100;
		document.getElementById("progress").style.top = pageYOffset+(window.innerHeight/2) - 40;
	}

	
}

// Hide the progress layer
function ProgressDestroy() {
	// Move off screen to hide
	if (document.all) {	// Internet Explorer
		progress.className = 'hide';
	} else if (document.layers) {	// Netscape
		document.progress.visibility = false;
	} else if (document.getElementById) {	// Netscape 6+
		document.getElementById("progress").className = 'hide';
	}
}


// Demonstrate a use of the progress dialog.
function _show_progress_() {
	//ProgressCreate();
	showPopWin('processwindow.php', 340, 130, null);
	
}

function  _hide_progress_() {
		//ProgressDestroy();
window.top.hidePopWin()
}

// Create layer for progress dialog
document.write("<span id=\"progress\" class=\"hide\">");
	document.write("<FORM name=dialog>");
	document.write("<table width=\"240\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\" bgcolor=\"#D59F00\"><tr><th align=\"center\" valign=\"top\" bgcolor=\"#FFEEB9\" scope=\"row\"><font color=\"#CC3300\">Progress</font><br /><img src=\"images/ajax-loader2.gif\" width=\"220\" height=\"19\" border=\"0\" /></th></tr></table>");
	document.write("</FORM>");
document.write("</span>");
ProgressDestroy();	// Hides




