function ShowFullImage(id, fileid) {
	win = window.open("?ID=" + id + "&Do=ShowFullImage&fileid=" + fileid, "FullImageWindow", "width=900,height=800,left=10,top=10,scrollbars,status");
	win.focus();
}

function ShowObject(id, obj_id) {
	win = window.open("?ID=" + id + "&Do=ShowObject&ObjectID=" + obj_id, "ShowObjectWindow", "width=900,height=800,left=10,top=10,scrollbars,status");
	win.focus();
}

function OpenWin(url, width, height) {
	win = window.open(url, "ShowOpenWin", "width=" + width + ",height=" + height + ",left=10,top=10,scrollbars,status");
	win.focus();
}


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


function InsertHTML(mytext)
{
	// Get the editor instance that we want to interact with.
	var oEditor = FCKeditorAPI.GetInstance('Content') ;

	// Check the active editing mode.
	if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
	{
		// Insert the desired HTML.
		oEditor.InsertHtml(mytext) ;
	}
	else
		alert( 'You must be on WYSIWYG mode!' ) ;
}

