
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=600');");
}

function getObjectByID(id)
{
	if (document.getElementById)
		x = document.getElementById(id);
	else if (document.all)
		x = document.all[id];
	return x;
}

function changeClass(id, classNameStr)
{
	getObjectByID(id).className = classNameStr;
}

function showhide(id)
{
	obj = getObjectByID(id);
	if (obj.style.display == "none")
		obj.style.display = "";
	else
		obj.style.display = "none";
}

function show(id)
{
	getObjectByID(id).style.display = "";
}

function hide(id)
{
	getObjectByID(id).style.display = "none";
}

function sendToURL(url) {
	if (url!="") document.location = url;
}

function fOver(src) {
	src.style.cursor = 'hand';
	src.style.backgroundColor='#e3e7e8';
}

function fOut(src) {
	src.style.cursor = 'default';
	src.style.backgroundColor='#f7f7f7';
}

function fOverDelete(src) {
	src.style.backgroundColor='#f9e4e4';
}

function fOverEdit(src) {
	src.style.backgroundColor='#e4e9f9';
}
