function confirmSubmit(message)
{
var agree=confirm(message);
if (!agree) return false;
return true;
}

function openWindow(pagename, pageheight, pagewidth, menubar)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(pagename, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=" + menubar + ",resizable=1,width=" + pagewidth + ",height=" + pageheight + "');");
return false;
}

function checkSubmit()
{
if (document.EGOLD_BATCH_PAY.egoldaccount.value.length < 3)    return false;
if (document.EGOLD_BATCH_PAY.egoldpassphrase.value.length < 3) return false;
if (document.EGOLD_BATCH_PAY.transactions.value.length < 5)    return false;
var c = confirm("Are you sure?\\nClick OK to start mass pay. Do not interrupt this process.");
if(!c) return false;
return true;
}

var state_show = 'block';
var state_show2 = 'none';

function showhide(one,two)
{
if (state_show == 'block')
{
	state_show = 'none';
	state_show2 = 'block';
} else {
	state_show = 'block';
	state_show2 = 'none';
}

if (document.all)
{
	eval( "document.all." + one + ".style.display = state_show");
	eval( "document.all." + two + ".style.display = state_show2");
}

if (document.layers)
{
	document.layers[one].display = state_show;
	document.layers[two].display = state_show2;
}

if (document.getElementById &&!document.all)
{
	hza = document.getElementById(one);
	hza.style.display = state_show;
	hza2 = document.getElementById(two);
	hza2.style.display = state_show2;
}
}

function hide_element(element_id)
{
if (document.all)
{
	eval( "document.all." + element_id + ".style.display = 'none'");
}

if (document.layers)
{
	document.layers[element_id].display = 'none';
}

if (document.getElementById &&!document.all)
{
	hza = document.getElementById(element_id);
	hza.style.display = 'none';
}    
}

function show_element(element_id)
{
if (document.all)
{
	eval( "document.all." + element_id + ".style.display = 'block'");
}

if (document.layers)
{
	document.layers[element_id].display = 'block';
}

if (document.getElementById &&!document.all)
{
	hza = document.getElementById(element_id);
	hza.style.display = 'block';
}    
}

function confirm_and_progress(message, object_1, object_2)
{
var agree=confirm(message);
if (!agree) return false;
showhide(object_1, object_2);
return true;
}