// JavaScript Document

function goto(URL, local) {
	if(local)
		URL = "index.php?content="+URL;
	location.replace(URL);
}

function confirmation(URL) {
	var answer = confirm("Are you sure you want to delete this item?")
	if (answer){
		goto(URL)
	}
}

function dropDown(id) {
	var el = document.getElementById(id);
	if(el.style.display=="none") 
		el.style.display="block";
	else el.style.display="none";
}

function popup(url, height, width) {
	newwindow=window.open(url,'name','height='+height+',width='+width);
	if (window.focus) {newwindow.focus()}
	return false;
}
