function copiaDato(thisForm)
{
var miof   = thisForm;
str = miof.UnitPrice.value.toString();
newstr = str.replace(",", ".");
alert(newstr);
miof.UnitPrice.value = newstr;	
miof.PrezzoVendita.value = newstr;
miof.PrezzoVendita.focus();
}

function copiaDatoM(Obj1)
{
	var miobjn  = Obj1;
	str = miobjn.toString();
	newstr = str.replace(",", ".");
	Objn = newstr;
	return newstr;
}


function onColorPick( input, mioform ) 
{
var myForm = mioform;
var cPickWin=window.open("Tools/ColorPicker.cfm?mioform="+escape(myForm)+"&cn="+escape(input.name)+"&cv="+escape(input.value),"cpick","resizable=yes,scrollbars=no,width=760,height=250");
if( cPickWin.opener==null ) cPickWin.opener = self;
cPickWin.focus();
}



function OpenBrowse(indir)
	{
	urldest = indir;
	window.open(urldest, '', 'toolbar=no,location=no,status=no,scrollbars,resizable=yes,width=450,height=330,top=20,left=20');
	}

function OpenBrowsePers(indir,w,h)
	{
	urldest = indir;
	window.open(urldest, '', 'toolbar=no,location=no,status=no,scrollbars,resizable=yes,width='+w+',height='+h+',top=20,left=20');
	}
	
function addThisbookmark(b1,b2)
	{
	var bU = b1;
	var bT = b2;
	if (document.all)
	window.external.AddFavorite(bU,bT)
	}
	
function FTCopiaDati(MioF)	
	{
	var M = MioF;
	
	M.FTentesoc.value   = M.entesoc.value;
	M.FTFirstName.value = M.FirstName.value;
	M.FTLastName.value  = M.LastName.value;
	M.FTAddress.value   = M.Address.value;
	M.FTCity.value      = M.City.value;
	M.FTPostalCode.value = M.PostalCode.value;
	M.FTCountry.value    = M.Country.value;
	M.FTState.value     = M.State.value;
	//M.FTTelefono.value     = M.Telefono.value;
	//M.FTEmail.value     = M.Email.value;
	
	alert("Dati per la fatturazione copiati");
	}
	
	
function openFin(indir,w,h)
	{
	var urldest = indir;
	var wx = w;
	var hx = h;
	window.open(urldest, '', 'toolbar=no,location=no,status=no,scrollbars=no,resizable=yes,width='+wx+',height='+hx+',top=20,left=50');
	}	
