Page not refresh after deleting the selected documents from the embedded view

//To store the database path into html elementvar dbPath = getDBPath();

//=====================

var strUIDs=“”;

var strSep=“”;

var objXMLHttpReq;

var count=0;

function getChkBoxValue()

{

var strMsg;

var intCount;

var boolChecked= false;

// Get whether the checkboxes are selected or not



for (intCount = 0; intCount < document.forms[0].elements.length;intCount++) 

{

	if (document.forms[0].elements[intCount].type == "checkbox") 

	{

		if (document.forms[0].elements[intCount].name == "$$SelectDoc" && document.forms[0].elements[intCount].checked) 

		{

			boolChecked = true;

			break;

		}

		else

		{

			boolChecked = false;

		}

	}

}



if (boolChecked==true)

{

	strMsg= "Are you sure you want to delete the selected document ? ";

	var status=confirm(strMsg);

 	if (status)

     {

		var chkboxes = document.getElementsByTagName("input");

		for(i=0;i<chkboxes.length;i++)

		{

			if(chkboxes.item(i).attributes["type"].value == "checkbox") 

			{				

				if (chkboxes.item(i).checked && chkboxes.item(i).value !="0")

     				{

					strUIDs = strUIDs +strSep+chkboxes.item(i).value  ;

					strSep="~@~";

				}

			}

		}

		var strUrl=dbPath + "/deleteDocument?OpenAgent&processUNID="+strUIDs;

		loadXMLDoc(strUrl);	

	}

     else

	{

		return false 

	}         

}	

else

{

	alert("You have not selected any document(s) for deletion. \n Please select the check box to delete the document(s).");		

}

}

function loadXMLDoc(url)

{

objXMLHttpReq = false;



if(window.XMLHttpRequest) 

{

 	try 

	{

		objXMLHttpReq = new XMLHttpRequest();

	} 

	catch(e) 

	{

		objXMLHttpReq = false;

	}

} 

else if(window.ActiveXObject) 

{

	try 

	{

		objXMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");

	} 

	catch(e) 

	{

		try 

		{

			objXMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");

		} 

		catch(e) 

		{

			objXMLHttpReq = false;

		}

	}

}



if(objXMLHttpReq)

{

	objXMLHttpReq.onreadystatechange = processReqChange;

	objXMLHttpReq.open("GET", url, true);

	objXMLHttpReq.send("");



}

}

function processReqChange()

{

if (objXMLHttpReq.readyState == 4) 

{

	if (objXMLHttpReq.status == 200) 

	{

		strResponse=objXMLHttpReq.responseText

		alert(strResponse);

		// window.refresh();

		//window.reload(window.location.href);

		

	} 

   	else 

	{

		alert("There was a problem retrieving the XML data:n" + objXMLHttpReq.statusText);

	}	

}

}

If any body have any clue than please suggest me.

Thanks

Regards

Ashish