			function closeWindow() {
			window.open('','_parent','');
			window.close();
			}

			function closeWindow2() {
			window.open('','_parent','');
			window.close();
			}

			function EditPartner(cntctid, instid, parttype)
					{
					window.open("EditPartner.aspx?Cid=" + cntctid + "&Inst=" + instid + "&Type=1&PartType= "+ parttype ,  "UpdatePartnerContacts", "height=180px, width=440px, status=0, toolbar=0, menubar=0, resizable=0, scrollbars=0");
					}

			function AddDocPop(id)
					{
					window.open("AddDoc.aspx?Cid=" + id, "Documents", "height=143px, width=600px, status=0, toolbar=0, menubar=0, resizable=0, scrollbars=0");
					}

			function AddPartnerPopP(id,inst)
					{
					window.open("AddPartnerPotential.aspx?Cid=" + id + "&Inst=" + inst + "&Type=1", "Contacts", "height=215px, width=450px, status=0, toolbar=0, menubar=0, resizable=0, scrollbars=0");
					}

			function AddPartnerPopC(id,inst)
					{
					window.open("AddPartnerCommitted.aspx?Cid=" + id + "&Inst=" + inst + "&Type=1", "Contacts", "height=215px, width=450px, status=0, toolbar=0, menubar=0, resizable=0, scrollbars=0");
					}


			function AddContactPop(id,inst)
					{
					window.open("AddContact.aspx?Cid=" + id + "&Inst=" + inst + "&Type=0", "Contacts", "height=180px, width=450px, status=0, toolbar=0, menubar=0, resizable=0, scrollbars=0");
					}

			function poper(cntId)
					{
					window.open("partner.aspx?id=" + cntId, "Participants", "height=135px, width=350px, status=0, toolbar=0, menubar=0, resizable=0, scrollbars=0");
					}

			function toggleInputElementsDisabledStatus(id)
					{
						// client-side script that toggles the specified input control's
						// disabled status
						var elem = document.getElementById(id);
						if (elem != null)
						{
							// toggle the disabled status
							elem.disabled = !elem.disabled;
						}
					}

			function textCounter(field, countfield, maxlimit)
					{
						if (field.value.length > maxlimit)
							field.value = field.value.substring(0, maxlimit);
						else
							countfield.value = field.value.length;
					}

			function refreshPage()
					{
						window.opener.document.getElementById('<%=Button1.ClientID %>').click();window.close();
					}

