function show_popup(url, width, height) {
	var ref = window.open(url, 'popup', 'toolbar=0,location=0,directories=0,status=0,scrollbars=auto,resizable=1,menuBar=0,width='+width+',height='+height);
	ref.focus();
	return false;
};

function show_popupLT(url, width, height, LT) {
	var ref = window.open(url, 'popup', 'toolbar=0,location=0,directories=0,status=0,scrollbars=auto,resizable=1,menuBar=0,left='+LT+',top='+LT+',width='+width+',height='+height);
	ref.focus();
	return false;
};

function clearValue(e) {
	var coll = document.all;
	if (coll != null) {
		for (var i = 0; i < coll.length; i++) {
			if (coll.item(i).tagName == 'INPUT') coll.item(i).value = '';
			if (coll.item(i).tagName == 'TEXTAREA') coll.item(i).value = '';
			if (coll.item(i).tagName == 'SELECT') coll.item(i).selectedIndex = 0;
};	};	};

function bookmark(e) {
	var URL = document.location.href;
	var Title = document.title;
	if (document.all)
		window.external.AddFavorite(URL, Title)
	else
		if (window.sidebar)
			window.sidebar.addPanel(Title, URL , '');
};

function setHomePage(e) {
	if (window.external) {
		e.style.behavior='url(#default#homepage)';
		e.setHomePage(location.href);
	};
};

function setWebSlice(e) {
	var URL = document.location.href;
	var Title = document.title;
	if (document.all)
		window.external.AddToFavoritesBar(URL, Title, 'slice')
	else
		if (window.sidebar)
			window.sidebar.addPanel(Title, URL , 'slice');
};