function SetElementValue(theElement, theValue) 
{
	document.getElementById(theElement).value = theValue;
}

function DeletePost(id)
{
	if (confirm("Really delete this article?"))
	{
		document.location.href="deletepost.php?id="+id;
	}
}

function EditPost(id)
{
	GoTo("editpost.php?id=" + id);
}

function ChangeDate()
{
	var obj = document.getElementById('blogroll');
	var selIndex = obj.selectedIndex;
	var val = obj.options.item(selIndex).value;	
	SetElementValue('month', val);
	SubmitForm('changedate');
}

function SubmitForm(formname)
{
	document.forms[formname].submit();	
}

function GoTo(page)
{
	document.location.href = page;
}

function ConfirmGoTo(page, msg)
{
	if (confirm(msg)) 
		GoTo(page);
}

function DeleteLink(id)
{
	if (confirm("Really delete this link?"))
	{
		document.location.href="deletelink.php?id="+id;
	}
}


function ConfirmPostedComment()
{
	JS_Growl.notify(); 	
 	return false;
}

function ChangeAlbum()
{
	var obj = document.getElementById('album');
	var selIndex = obj.selectedIndex;
	SetElementValue('albumidx', selIndex);
	SubmitForm('frmchangealbum');
}