/* General JS functions */

function pop_window(url,width,height)
{ thewindow = window.open(url,'popped','width='+width+',height='+height+',toolbars=no,scrollbars=yes,copyhistory=yes,status=no'); }

function toggle(id)
{
	if (document.layers)
	{
		current = (document.layers[id].display == 'none') ? 'block' : 'none';
		document.layers[id].display = current;
	}
	else if (document.all)
	{
		current = (document.all[id].style.display == 'none') ? 'block' : 'none';
		document.all[id].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(id).style.display == 'none') ? 'block' : 'none';
		document.getElementById(id).style.display = vista;
	}
}

function set_content(id,content)
{ document.getElementById(id).innerHTML = content; }

var count = 0; 
function refresh_captcha()
{ 
document.getElementById('div_captcha').innerHTML = '<img src="captcha/generate.php?mode=refresh&count='+count+'" width="200" height="50" border="0" alt=""><br>'; 
count++; 
}
