function addHitToPhoto(nPhotoId)
{
	window.frames["iCounter"].document.location = "../../../processCount.asp?nPhotoId=" + nPhotoId;
	//document.iCounter.document.location = "../../../processCount.asp?nPhotoId=" + nPhotoId;
}
function addHitToTable(nParentId, strParentType)
{
	window.frames["iCounter"].document.location = "../../../processCount.asp?nParentId=" + nParentId + "&strParentType=" + strParentType;
}
function writeSession(nUserId)
{
	window.frames["iCounter"].document.location = "../../../processLogin.asp?nUserId=" + nUserId;
}
function openPhotoUploader(strUrl)
{
	//var objPhotoWindow = 
	window.open(strUrl, 'objPhotoWindow', 'height=500, width=500, resize=no, toolbar=no, status=yes');
	//objPhotoWindow.focus();
	//window.open("http://www.google.com.au",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");

}

function addLocationToURLBar(nLocationId)
{
	//document.location = "default.asp?LOCATIONID=" + nLocationId;
	/*
	see if poss to add parameters to the location bar without navigating to that locaiton
	var strUrl = "";
	var strQuery = "<%=strSSQuery%>";

	if(strQuery == "" && nLocationId > 0)
	{
		strQuery = strUrl + "?LOCATIONID=" + nLocationId;
	}
	
//	if (strQuery.length > 1 )
//	{
//		strUrl += "&" + strQuery;
//	}	
	alert("LOCATIONID=" + nLocationId);
	window.location.hash = "LOCATIONID=" + nLocationId;
	*/
}