function roll(text, b, bg) {
	if (document.getElementById){
		document.getElementById(b).style.backgroundColor = bg;
		document.getElementById(b).style.color = text;
		document.getElementById(b).style.cursor = 'pointer';
	}
}

function rollback(text, b, bgb) {
	if (document.getElementById){
		document.getElementById(b).style.backgroundColor = bgb;
		document.getElementById(b).style.color = text;
		document.getElementById(b).style.cursor = 'pointer';
	}
}

function show(id, type) {
	if (document.getElementById){
		document.getElementById(id).style.display = type;
	}
}

function show2(id, type) {
	if (document.getElementById){
		document.getElementById(id).style.display = type;
	}
}

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

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

function open_window1(url, width, height) {
	mywin1 = window.open(url,"win1",'alwaysRaised=1,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=' + width + ',height=' + height);
	mywin1.resizeTo(width, height);
	mywin1.focus();
}

function send_parent(href) {
	window.opener.location = href;
	window.close();
}
