function SetFocus( ctrlId)
{
	var ctrl = document.getElementById(ctrlId);
	if(ctrl != null)
	{
		ctrl.focus();
	}
}
function UWNotesPopUp(policyId)
{
	url = 'UWNotes.aspx?PolicyId='+ policyId;
	window.open(url,'UWNotes', 'toolbar=no,location=no,menubar=no,top=100,left=100,width=700,height=545,scrollbars=no,resizable=yes');
	
}
function UWRequirementsPopUp(policyId)
{
	url = 'UWRequirements.aspx?PolicyId='+ policyId;
	window.open(url,'Requirements', 'toolbar=no,location=no,menubar=no,top=100,left=100,width=752,height=473,scrollbars=no,resizable=yes');

}
function EmailOtherPopUp(pageName, param2)
{
	var emailInfo = new Array();

	if(pageName == 'UWEmail')
	{
		emailInfo[0] = 'AgentUWList';				//where email came from
		emailInfo[1] = param2;	
		return window.showModalDialog('EmailModal.aspx',emailInfo,'dialogWidth:527px;dialogHeight:405px;status:no;scroll:no;help:no;');
	}
	if(pageName == 'AgencyContact')
	{
		emailInfo[0] = 'AgencyContact';				//where email came from
		emailInfo[1] = param2;	
		return window.showModalDialog('EmailOtherModal.aspx', emailInfo,'dialogWidth:527px;dialogHeight:405px;status:no;scroll:no;help:no;');
	}
}


function AgencyContactPopUp()
{
	 window.open('AgencyContact.aspx','AgencyContact','toolbar=no,location=no,menubar=no,top=30,left=90,width=526,height=326,scrollbars=no,resizable=yes');	

}
function HelpIconPopUp()
{
	 window.open('TrainingWindow.aspx','Help','toolbar=no,location=no,menubar=no,top=30,left=90,width=401,height=485,scrollbars=no,resizable=yes');	

}
function ContactUsPopUp()
{
	 window.open('ContactUs.aspx','ContactUs','toolbar=no,location=no,menubar=no,width=516,height=380,scrollbars=no,resizable=yes');	

}

function LeadDetailPopUp(leadId,leadType)
{
	url = 'leaddetails.aspx?leadId='+ leadId+'&leadType='+leadType;
	 window.open(url,'LeadDetail','toolbar=no,location=no,menubar=no,width=400,height=400,scrollbars=no,resizable=yes');	

}




