function fnSplitTxt(sTxt, sDelimiter)
{
	fnSplitTxt = document.write(sTxt.split(sDelimiter) + "<br />")
}

function fnPopWin(sURL,sWinName,iWidth,iHeight)
{
	if (typeof iWidth == 'undefined') var iWidth=900;
	if (typeof iHeight == 'undefined') var iHeight=720;
    newWindow = window.open(sURL,sWinName,"toolbar=no,width="+iWidth+",height="+iHeight+";,directories=no,title=no,status=yes,scrollbars=yes,resizable=yes,menubar=no")
    newWindow.opener = self;
    newWindow.focus();
}

function fnOpenDistrict(sURL)
{
	parent.frames("main").location.href=sURL
}

function fnPopLocDetl(sMapID)
{
	var sURL
	
	sURL = "LocDetl.asp?mapid=" + sMapID;
	fnPopWin(sURL,'LocDetl')
    
}

function fnPopPropertyDetl(sPropertyID)
{
	var sURL
	
	parent.document.status = ''
	sURL = "PropertyDetl.asp?propertyid=" + sPropertyID;
	fnPopWin(sURL,'PropertyDetl')
    
}

function fnPopVillaDetl(sID)
{
	var sURL
	
	sURL = "VillaDetl.asp?villaid=" + sID;
	fnPopWin(sURL,'VillaDetl')
    
}
