function ShowEmails(PkId)
{
	window.open("rubrica.aspx?IdAccount=" + PkId + "&Mode=Email","PopUp","resizable=no, scrollbars=no, location=no,directories=no,status=no,menubar=no,width=200,height=250,left=" + event.screenX + ",top=" + event.screenY);
}
function ShowTelefoni(PkId)
{
	window.open("rubrica.aspx?IdAccount=" + PkId + "&Mode=Phone","PopUp","resizable=no, scrollbars=no, location=no,directories=no,status=no,menubar=no,width=200,height=250,left=" + event.screenX + ",top=" + event.screenY);
}
function editContact(PkId,IdAccounts)
{
	window.open("/CRM/ManageContacts.aspx?userid=" + PkId + "&IdAccount=" + IdAccounts);
}
function printDocument(KeyOrdine,CodiceAzienda)
{
	window.open("DesktopModules/PDFDocument.aspx?KeyOrdine=" + KeyOrdine + "&CodiceAzienda=" + CodiceAzienda);
}
function showDocDetail(KeyDocumento,CodiceAzienda)
{
	window.open("/CRM/crmDettaglioOrdine.aspx?KeyDocumento=" + KeyDocumento + "&CodiceAzienda=" + CodiceAzienda);
}
function dlDocument(PkId)
{
	window.open("/CRM/crmViewDocument.aspx?PkId=" + PkId);
}
function editDocument(PkId)
{
	window.open("/CRM/crmEditDocs.aspx?PkId=" + PkId);
}
function showReportVisita(PkId)
{
	window.open("/CRM2/ReportVisita.aspx?ItemId=" + PkId);
}
function ShowDetails(PkId)
{
	window.navigate("DesktopDefault.aspx?ctx_main=1,4,0&IdAccount=" + PkId);
}
function AddTask(PkId)
{
	window.open("/CRM/editTasks.aspx?IdAccount=" + PkId);
}
function AddVisita(PkId)
{
	window.open("/CRM/crmVisite.aspx?IdAccount=" + PkId);
}
function AddActivity(PkId)
{
	window.open("/CRM2/attivita.aspx?IdAccount=" + PkId);
}
function OpenWindow(url)
{
	window.open(url, "dest","width=520,height=420,menubar=no,resizable=no,scrollbars=yes,status=0");
}