
		function proceedAction(document_id, actionType,evnt)
			{
				var x = evnt.screenX;	
				var y = evnt.screenY;
				switch(actionType)
				{
					case "process":
					window.open("../processdocument/default.aspx?documentId="+document_id,"popupfromList1", "height=280, width=300, left="+(x-280)+", top="+(y+15)+", " + 
					"location=no, menubar=no, resizable=no, " + 
					"scrollbars=no, titlebar=no, toolbar=no", true);
					document.getElementById("_ctl0_Content_actionType").value="";
					document.getElementById("_ctl0_Content_hiddenDocId").value="";
					break;
					case "comment":
					window.open("../documentcomment/default.aspx?documentId="+document_id,"popupfromList2", "height=350, width=460, left="+(x-400)+", top="+(y+15)+", " + 
					"location=no, menubar=no, resizable=no, " + 
					"scrollbars=no, titlebar=no, toolbar=no", true);
					document.getElementById("_ctl0_Content_actionType").value="";
					document.getElementById("_ctl0_Content_hiddenDocId").value="";
					break;
					case "upload":
					window.open("../uploaddocument/default.aspx?documentId="+document_id,"popupfromList2", "height=190, width=500, left="+(x-450)+", top="+(y+15)+", " + 
					"location=no, menubar=no, resizable=no, " + 
					"scrollbars=no, titlebar=no, toolbar=no", true);
					document.getElementById("_ctl0_Content_actionType").value="";
					document.getElementById("_ctl0_Content_hiddenDocId").value="";
					break;
					case "view":
					document.location.href="../documentinfo/?documentId="+document_id+"&fromList=Y";
					break;
					case "update":
					document.location.href="../updatedocument/?documentId="+document_id+"&fromList=1";
					break;
					case "revise":
					document.location.href="../inputdocument/?documentId="+document_id;
					break;	
					case "addtocart": 
					document.getElementById("_ctl0_Content_actionType").value=actionType;
					document.getElementById("_ctl0_Content_hiddenDocId").value=document_id;
					document.aspnetForm.submit();
					return false;
					break;
				
				}
			}
			
			function downloadDocument(docId,evnt)
			{
			    document.getElementById("img"+docId).src="../images/check_disabled_2.gif";
				//document.getElementById("RemoteScripting").src="../downloadimmediate/?docId=" + docId;			
			}
			
			function downloadDocumentImmediate(docId,evnt)
			{
			    //document.getElementById("img"+docId).src="../images/check_disabled_2.gif";
				document.getElementById("RemoteScripting").src="../downloadimmediate/?docId=" + docId;			
			}
			
			function downloadApplicantFile(filename)
			{
				document.getElementById("RemoteScripting").src="../../documentApp/downloadfile/?filename=" + filename + "&filepath=ApplicantFolder"
			}
			
