function newWindow(file, window) {
	msgWindow=open(file, window, 'resizable=no,width=400,height=500');
	if (msgWindow.opener == null) msgWindow.opener = self;
}

function openwin(url, name, specs) {
	var popup = window.open(url, name, specs);
}

function cancelcancel() {
	var tmp = document.getElementById("stat");
	if (tmp) { tmp.innerHTML = "" }	
}

function confirmcancel() {
	var msg = '<div style="background:#ffc; width:370px; padding:15px; border:solid 1px #ccc; margin-top:-15px;">'
	msg +="Aviso. Los cambios para esta entrada no ser&aacute;n guardados. &iquest;Ignorar cambios?";
	msg += '<br><br><strong><a href="post.php">S&iacute;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:cancelcancel()">No</a></strong>';
	msg += '</div>';
	var tmp = document.getElementById("stat");
	if (tmp) { tmp.innerHTML += msg }
	
	/*var agree = confirm(msg)
	if (agree) {
		location = "post.php";
	}*/
}

function confirmremove(id) {
	var msg="You are removing this user.  Are you sure?";

	var agree = confirm(msg)
	if (agree) {
		location = "members.php?page=form&action=delete&id="+id+"";
	}
}

function roll(img_name, img_src) {
	document[img_name].src = img_src;
}

function confirmgen(url, message) {
	var msg=message;

	var agree = confirm(msg)
	if (agree) {
		location = url;
	}
}

function confirmaction(url, message) {
	var msg=message;

	var agree = confirm(msg)
	if (agree) {
		location = url;
	}
}
