function disable()
{
	var disablediv = document.getElementById('disablediv');
	if(disablediv != null)
	{
		disablediv.style.width='100%';
		disablediv.style.height='100%';
	}
}


var openChildCaller;

function openChild(file,window,style,caller,title)
{
	openChildCaller = caller;
	if(caller == null)
	{
		openChildCaller = self;
	}
	var width = style.match(/width[\s]*=[\s]*([0-9]+)/i);
	var height = style.match(/height[\s]*=[\s]*([0-9]+)/i);
	if(title != null)
	{
		title = '<div class="title">'+title+'</div>';
	}
	var CoreColorboxObjectCustom = new Object();
	CoreColorboxObjectCustom.href = file;
	CoreColorboxObjectCustom.title = title;
	CoreColorboxObjectCustom.innerWidth = width[1];
	CoreColorboxObjectCustom.innerHeight = height[1];
	jQuery.fn.colorbox(jQuery.extend(CoreColorboxObjectOpenChild, CoreColorboxObjectCustom));
	/*childWindow=open(file,window,style);
  	if (childWindow != null)
  	{
		if(childWindow.opener == null)
		{
			childWindow.opener = self;
			childWindow.focus();
		}
	}*/
}

function openElement(id)
{
	if(document.getElementById(id).style.display) {
		document.getElementById(id).style.display = 'block';
	}
}
function hideElement(id)
{
	if(document.getElementById(id).style.display) {
		document.getElementById(id).style.display = 'none';
	}
}

/*
function GetHelp(id, ez_url)
{
	var XmlHttpObject = createHTTPHandler();
	XmlHttpObject.open('GET', ez_url+'/include/gethelp.php?id='+id, false);
	XmlHttpObject.send(null);
	return XmlHttpObject.responseText;
}
*/
