function noop()
{
	var i = 0;
}

function hide_html(cid, eid)
{
	// DOM3 = IE5, NS6
	if (document.getElementById)
	{
		var ctrl = "<font size=-2>[ <a href=\"javascript:show_html('" + cid + "', '" + eid + "')\">show</a> ]</font>";
		document.getElementById(cid).innerHTML = ctrl;
		document.getElementById(eid).style.visibility = 'hidden';
		document.getElementById(eid).style.display = 'none';
	}
}

function show_html(cid, eid)
{
	// DOM3 = IE5, NS6
	if (document.getElementById)
	{
		var ctrl = "<font size=-2>[ <a href=\"javascript:hide_html('" + cid + "', '" + eid + "')\">hide</a> ]</font>";
		document.getElementById(cid).innerHTML = ctrl;
		document.getElementById(eid).style.visibility = 'visible';
		document.getElementById(eid).style.display = 'inline';
	}
}

function popup_window(url, w, h)
{
	settings = 'width='+w+',height='+h+',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no';
	PopupWin = window.open(url,'PopupWin', settings);
	PopupWin.focus();
}

function popup_scroll(url, id, w, h)
{
	settings = 'width='+w+',height='+h+',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,fullscreen=no';
	PopupWin = window.open(url,id, settings);
	PopupWin.focus();
}

function popup_noscroll(url, id, w, h)
{
	settings = 'width='+w+',height='+h+',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no';
	PopupWin = window.open(url,id, settings);
	PopupWin.focus();
}

function popupImage(file, w, h)
{
	settings = 'width='+w+',height='+h+',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no';
	PopupWin = window.open(file, 'PopupImage', settings);
	PopupWin.focus();
}

function confirm_popup(url, question, w, h)
{
	var ok = confirm(question);
	if (ok) popup_window(url, w, h);
}

function confirm_question(url, question)
{
	var ok = confirm(question);
	if (ok) window.location = url;
}

function window_js_popup(url, l, t, w, h)
{
	var win = new Window({className: "alphacube", left:l, top:t, width:w, height:h, url: url, showEffectOptions: {duration:1.5}, minimizable:false, maximizable:false});
	win.show();
	
	return win;
}

function window_js_create(w, h)
{
	var win = new Window({className: "alphacube", width:w, height:h, showEffectOptions: {duration:1.5}, minimizable:false, maximizable:false});
	
	return win;
}
