function checkLinkedContentAndDelete(id)
{
	args = [];
	args[0] = id;
	newhref = this.su.substituteStr(this.checklinksdellink,args);
	window.open(newhref,'delPop',popupparams+getPopupWinSizeParams(250,300));
}
function del(id)
{
	newhref = this.dellink;
	if (!this.showMenus())
		newhref = this.refreshlink + '&call=contentmgr.delete';
	if (confirm(this.areyousuredel))
		window.location = newhref + '&id=' + id;
}
function delRefresh(id)
{
	if(confirm(this.areyousuredel))
		window.location = window.location + '&call=' + this.rtcontroller + '.delete' + '&id=' + id;
}
function list(cat1id)
{
	newhref = this.listlink;
	if (cat1id != null)
		newhref += '&' + this.targetregion + '.c1_id=' + cat1id;
	window.location.href = newhref;
}
function preview(src)
{
	if (checkAll(src.form))
	{
		newhref = this.previewlink;
		src.form.action = newhref;
		src.form.call.value = '';
		src.form.submit();
	}
}
function detail(id) 
{
	newhref = this.detaillink + '&' + this.targetregion + '.id=' + id;
	window.location = newhref;
}
// this function renamed to avoid conflict with browser history
function rtsbHistory(id)
{
    if (this.historylink)
    {
        newhref = this.historylink + '&' + this.targetregion + '.id=' + id;
        window.location = newhref;
    }
}
function form(id)
{
	newhref = this.formlink + '&' + this.targetregion + '.id=' + id;
	window.location = newhref;
}
function submitMe(src) 
{
	if (checkAll(src.form))
	{
		if (!this.showMenus())
			src.form.action = this.refreshlink;
		src.form.submit(); 
	} 
}
function deleteMe(src) 
{
	if (confirm(this.areyousuredel))
	{
		src.form.call.value='contentmgr.delete'; 
		src.form.submit();
	}
}
function cancelMe(src) 
{
	src.form.call.value = 'contentmgr.cancel';
	src.form.submit();
}
