var _progressBar = new String("¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á¡á");
var _progressEnd = 60;
var _progressAt = 0;
var _progressWidth = 100; // ±×·¡ÇÁÀÇ °¡·ÎÅ©±â

function ProgressCreate(end) 
{
_progressEnd = end;
_progressAt = 0;

if (document.all) 
{ 
progress.className = 'show';
progress.style.left = (document.body.clientWidth/3) - (progress.offsetWidth/3);
progress.style.top = (document.body.clientHeight/3) - (progress.offsetHeight/3);
} 
else if (document.layers) 
{ 
document.progress.visibility = true;
document.progress.left = (window.innerWidth/3) - 150;
document.progress.top = (window.innerHeight/3) - 40;
}

ProgressUpdate();
}

function ProgressDestroy() {
	if (document.all) { 
		progress.className = 'hide';
	} else if (document.layers) {
		document.progress.visibility = false;
	}
	
}

function ProgressStepIt() 
{
_progressAt++;

if(_progressAt > _progressEnd) _progressAt = _progressAt % _progressEnd;
ProgressUpdate();
}

function ProgressUpdate() 
{
var n = (_progressWidth / _progressEnd) * _progressAt;

if (document.all) 
{ 
var bar = dialog.bar;
} 
else if (document.layers) 
{ 
var bar = document.layers["progress"].document.forms["dialog"].bar;
n = n * 0.55; 
}

var temp = _progressBar.substring(0, n);
bar.value = temp;
}

function Demo(){
	ProgressCreate(60);
	window.setTimeout("Click()", 150);
}

function Click() {
	if(_progressAt >= _progressEnd) {
		_progressAt = 0;
	}
	ProgressStepIt();
	window.setTimeout("Click()", 30);
}

function CallJS(jsStr) 
{ 
	return eval(jsStr)
}
