var selectedImgID = 0;

function changeClient(cId){
	document.getElementById("cId").value = cId;
	document.getElementById("clientsFrm").submit();
}
function clientsChangeImg(path, id){
	if(selectedImgID != id){
		document.getElementById("bigImg").style.width = 'auto';
		document.getElementById("bigImg").style.height = 'auto';
		//document.getElementById("bigImgTD").filters[0].apply();
		document.getElementById("bigImg").src = path;
		//document.getElementById("bigImgTD").filters[0].play();
		document.getElementById("SmallImage" + id).style.filter="alpha(opacity=100);";
		selectedImgID = id;
		if (id=="3")
		{
			document.getElementById("SmallImage1").style.filter="alpha(opacity=30);";
			document.getElementById("SmallImage2").style.filter="alpha(opacity=30);";
		}
		if (id=="2")
			document.getElementById("SmallImage1").style.filter="alpha(opacity=30);";
		if (id=="1")
			document.getElementById("SmallImage2").style.filter="alpha(opacity=30);";
	}
}

function SetOpacity(id, amount){
	if(selectedImgID != id){
		document.getElementById("SmallImage" + id).style.filter="alpha(opacity=" + amount + ");";
	}
}