﻿function changeDivShow(tag,name,dstObj,id,overCss,outCss)
{
	var inputs = document.body.getElementsByTagName(tag);
	var countInputs = 0;

	if (typeof(inputs) != "undefined" && null != inputs)
		countInputs = inputs.length;

	for (i=0;i<countInputs;i++){
		if (typeof(inputs[i].id) != "undefined"){
			if (!inputs[i].id.indexOf(name))
			{
				var n = parseInt(inputs[i].id.replace(name,''),10);
				try{
					document.all[dstObj+n].className = outCss;
				}catch(e){}
				inputs[i].style.display = "none";
			}
		}
	}
	try
	{
		try{
			document.all[dstObj+id].className = overCss;
		}catch(e){}
		document.all[name+id].style.display = "";
	}catch(e){
		alert (e.description);
	}
}