var selectedid = '';
var selectedclass = '';

function changecolor(id, classid)
{
	if (id != selectedid) { id.className = classid;}
}

function selectrow (id, classid, selectedclassid)
{
	if (id != selectedid) { 
	selectedid.className = selectedclass;
	selectedid = id;
	selectedclass = classid;
	id.claseName = selectedclassid;
	}
}

function change (picurl,source) {
document[source].src = picurl;
}

function popup(url,winName,W,H,X,Y) {
	if(W == undefined) W = 800;	//default width
	if(H == undefined) H = 600; //default height
	if(X == undefined) X = screen.width/2-W/2; //default Xpos (is now centered)
	if(Y == undefined) Y = screen.height/2-H/2; //default Ypos (is now centered)

	winprops = 'height='+H+',width='+W+',top='+X+',left='+Y+',scr  ollbars=no';

	win = window.open(url, winName, winprops);
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}


