function expandCollapse() {
	for (var i=0; i<expandCollapse.arguments.length; i++) {
		var element = document.getElementById(expandCollapse.arguments[i]);
		element.style.display = (element.style.display == "none") ? "block" : "none";
	}
};

function openwin(url) { 
  	window.open(url,'Screenshot','height=350,width=400,top=300,left=430,toolbar=no,menubar=no,resizable=yes,location=no, status=no');
};

function fcnBorrar(_id, _sec) {
	if (confirm('Se borrará el artículo seleccionado.'))
	{
		window.location.href="?vista=drop"+_sec+"&id="+_id;
	}
};

function fcnBorrarHito(_id, _suc, _equ, _par) {
	if (confirm('Se borrará el artículo seleccionado.'))
	{
		window.location.href="?vista=dropHito&id="+_id+"&suc="+_suc+"&equ="+_equ+"&par="+_par;
	}
};

function fcnLogin()
{
	_name=document.frmLogin.login.value;
	_pwd=document.frmLogin.clave.value;
	if(_name=='' || _pwd==''){
		alert('Debe ingresar su login y contraseña.');
		return false;
	} else {
		document.frmLogin.action="?vista=Loguear";
		document.frmLogin.submit();
	}
};
