function simg(n,s) {
	document[n].src=s;
}
function pimg() {
	if (document.images) {
		var i,y,imgs=new Array();
		for(i=0;i<8;i++) {
			imgs[i] = new Image();
			y = i+1;
			imgs[i].src = '/img/buttons/button_' + i + '_on.jpg';
		}
	}
}
function popUp(URL, x, y) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=" + x + ",height=" + y + ",left=240,top=112');");
}
function popUp2(URL, x, y) {
	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=" + x + ",height=" + y + ",left=240,top=112');");
}
function chBg(element, color) {
	element.style.backgroundColor = color;
}

