function g(str){
	if (document.getElementById(str))
		return document.getElementById(str)
	return false;
}

function confirmDelete(url) {
	if (confirm("Sigur vrei sa stergi?")) {
		document.location = 'main.php?' + url;
	}
	else {
		return false;
	}
}
