function MainMenuEvent(ObjId,e,strStatus,strURL,optTarget)
 {
 	e=e||window.event;
 	strStatus=strStatus||"";
 	strURL=strURL||"";
 	optTarget=optTarget||"_self";
 	switch (e.type)
 	 {
 	 	case "mouseover":
 	 	ObjId.style.color="#000000";
 	 	ObjId.style.backgroundColor="#99cc00";
 	 	ObjId.style.border="#ffffff 1px solid"
 	 	break;
 	 	case "mouseout":
 	 	ObjId.style.color="#dcdcdc";
 	 	ObjId.style.backgroundColor="#006600";
 	 	ObjId.style.border="#006600 1px solid";
 	 	break;
 	 	case "mousedown":
 	 	ObjId.style.color="#ffffff";
 	 	ObjId.style.backgroundColor="#99cc00";
 	 	ObjId.style.border="#ffffff 1px solid";
 	 	break;
 	 	case "click":
 	 	document.open(strURL,optTarget,'');
 	 	break;
 	 }
 	window.status=strStatus;
 }
function MenuEvent(srcObj,e)
 {
 	e = e || window.event;
 	switch (e.type)
 	 {
 	 	case "mouseover":
 	 	srcObj.style.color="#eaead5";
 	 	srcObj.style.backgroundColor="#884455";
 	 	break;
 	 	case "mouseout":
 	 	srcObj.style.color="#884455";
 	 	srcObj.style.backgroundColor="#eaead5";
 	 	break;
 	 	case "click":
 	 	document.open(srcObj.URL,'_top','');
 	 	break;
 	 }
 }
function LeftMenuEvent(srcObj,e,strURL,strStatus)
 {
 	strURL = strURL || "";
 	strStatus = strStatus || strURL;
 	e = e || window.event;
 	switch (e.type)
 	 {
 	 	case "mouseover":
 	 	srcObj.style.color="#000000";
 	 	srcObj.style.backgroundColor="#b8ebff";
 	 	srcObj.style.border="#87cefa 1px solid";
                window.status=strStatus;
 	 	break;
 	 	case "mouseout":
 	 	srcObj.style.color="#0082b4";
 	 	srcObj.style.backgroundColor="#d5f7ff";
 	 	srcObj.style.border="#d5f7ff 1px solid";
 	 	window.status="";
 	 	break;
 	 	case "click":
 	 	document.open(strURL,'_top','');
 	 	break;
 	 }
 }
function CheckEnterKey(srcObj,e)
 {
 	e=e || window.event;
 	var keyCode=e.which || e.keyCode;
 	if (keyCode==13) SubmitBasicSearch();
 }
function onStateChange(objId)
 {
 	document.getElementById("City"+(currentState)+"").options.selectedIndex=0;
 	document.getElementById("City"+(currentState)+"").style.display="none"; // Hide Prev State's City List
 	document.getElementById("City"+(objId.value)+"").style.display=""; // Show Current State's City List
 	document.getElementById("City"+(objId.value)+"").options.selectedIndex=0;
 	currentState=objId.value;
 	onCityChange(document.getElementById("City0"));
 }
function onCityChange(objId)
 {
        document.getElementById("Block"+(currentCity)+"").options.selectedIndex=0;
 	document.getElementById("Block"+(currentCity)+"").style.display="none"; // Hide Prev City's Block List
 	document.getElementById("Block"+(objId.value)+"").style.display=""; // Show Current City's Block List
 	document.getElementById("Block"+(objId.value)+"").options.selectedIndex=0;
 	currentCity=objId.value;
 	currentBlock=0;
 	onBlockChange(document.getElementById("Block0"));
 }
function onBlockChange(objId)
 {
 	currentBlock=objId.value;
 }
function SubmitBasicSearch()
 {
 	frmSearchEng.StateID.value=currentState;
 	frmSearchEng.CityID.value=currentCity;
 	frmSearchEng.BlockID.value=currentBlock;
 	frmSearchEng.submit();
 }
function DisplayTable(srcObj,intIndex)
 {
 	var elPrev=document.getElementById("HouseMenuItem"+prevHouseMenuItemIndex);
 	var elCurrent=document.getElementById("HouseMenuItem"+intIndex);
 	var elPrevHouseMenu=document.getElementById("HouseMenu"+prevHouseMenuItemIndex);
 	var elCurrentHouseMenu=document.getElementById("HouseMenu"+intIndex);
 	elPrev.style.display="none";
 	elCurrent.style.display="";

 	elPrevHouseMenu.style.color="#000000";
 	elPrevHouseMenu.style.backgroundColor="#FCD2BE";
 	elPrevHouseMenu.style.fontWeight="normal";

 	elCurrentHouseMenu.style.color="#000000";
 	elCurrentHouseMenu.style.backgroundColor="#FDF9F5";
 	elCurrentHouseMenu.style.fontWeight="bold";
 	prevHouseMenuItemIndex=intIndex;
 }
function BookmarkURL()
 {
	var bookmarkurl = window.location.href;
	var bookmarktitle = document.title;
	if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle);
 }
