	function EditSave()
			{
			//	document.forms.Form1.submit(); 
				document.getElementById('BtnSave').click();		
			}
			
			
		function EditOpen()
			{
				document.getElementById('BtnOpen').click();		
			}
			
			
		function fade(obj,st) 
			{
			          
				obj.style.filter="blendTrans(duration=1.7)";
				obj.filters.blendTrans.apply();
				obj.style.visibility=st;
				obj.filters.blendTrans.play();
			}


function Fade(objID,CurrentAlpha,TargetAlpha,steps){

		var obj = document.getElementById(objID);
		
		CurrentAlpha = parseInt(CurrentAlpha);
		if (isNaN(CurrentAlpha)){
			CurrentAlpha = parseInt(obj.style.opacity*100);
			if (isNaN(CurrentAlpha))CurrentAlpha=100;
		}
			
		var DeltaAlpha=parseInt((CurrentAlpha-TargetAlpha)/steps);
		var NewAlpha = CurrentAlpha - DeltaAlpha;
		
		if (NewAlpha == 100 && (navigator.userAgent.indexOf('Gecko') != -1 && navigator.userAgent.indexOf('Safari') == -1)) NewAlpha = 99.99;
		
		obj.style.opacity = (NewAlpha / 100);
		obj.style.MozOpacity = obj.style.opacity;
		obj.style.KhtmlOpacity = obj.style.opacity;
		obj.style.filter = 'alpha(opacity='+NewAlpha+')';
		
		if (steps>1){
			setTimeout('Fade("'+objID+'",'+NewAlpha+','+TargetAlpha+','+(steps-1)+')', 50);
		}
}


