//
function setOpacity(obj,val) {
document.getElementById(obj).filters.alpha.opacity = val;
}
var curPopupWindow = null;
var helpWindow = null;
var width = "10";
var border = "3";
offsety = -100;
offsetx = 10;
var x,y,snow,sw,cnt;
var dir = 1;
var tr = 1;
var over = document.overDiv;
document.captureEvents(Event.MOUSEMOVE);function ListIconInfo(text, title) {dtc(text,title);}
function ListInfo(text, title) {
//alert ("test");
dtc(text,title);}
function ListOut() {hideObject(over);}
function dtc(text, title) {
if (text.length > 0) {
txt = "
";
txt += "| ";
txt += ""+title+"";
txt += " | ";
txt += " ";
txt += "";
txt += "";
txt += "| ";
txt += ""+text+"";
txt += " | ";
txt += " |
";
} else {
txt = "";
txt += "| ";
txt += ""+title+"";
txt += " | ";
txt += " ";
txt += " |
";
}
layerWrite(txt);
disp();
}
function disp() {
//alert("x: " + x + " offset:" + offsetx);
moveTo(over,x+offsetx+(width/6),y+offsety+70);hideObject(over);showObject(over);}
function mouseMove(e) {}
function layerWrite(txt) {}
function showObject(obj) {}
function hideObject(obj) {}
function moveTo(obj,xL,yL) {obj.left = xL;obj.top = yL;}
function AllMatchComp(cid) {
document.details.action = "SearchResults.asp?Cid=" + cid;
document.details.target = "_blank";
document.details.submit();
}
function LookAtNextPage(ThisPage) {
var myPage = ThisPage;
document.TheNextPage.ThisPage.value = myPage;
document.TheNextPage.submit();
}
function ReSortListings(Sort) {
document.TheNextPage.Sort.value = Sort;
document.TheNextPage.IsNewSort.value = "Yes";
document.TheNextPage.ThisPage.value = "";
document.TheNextPage.submit();
}
function LookDetails(lc,lid,ct) {
document.details.Lid.value = lid;
document.details.LIndex.value = ct;
document.details.action = "Listing.asp?lid=" + lid;
document.details.submit();
}
function backToSearchResults() {
document.details.action = "SearchResults.asp";
document.details.submit();
}
function LookListingDetail(lc,lid,ct,origin) {
document.details.Lid.value = lid;
document.details.LIndex.value = ct;
if (origin == "S") {
document.details.action = "../Sales/Listing.asp?lid=" + lid;
}
if (origin == "R") {
document.details.action = "../Rentals/Listing.asp?lid=" + lid;
}
if (origin == "U") {
document.details.action = "../NewHomes/Listing.asp?lid=" + lid;
}
if (origin == "M") {
document.details.action = "../Rentals/Listing.asp?lid=" + lid + "&CType=M";
}
document.details.submit();
}
function ViewFProperty(CompId, LId, URL) {
document.FProperty.CompId.value = CompId;
document.FProperty.LId.value = LId;
document.FProperty.URL.value = URL;
document.FProperty.submit();
}
function closePopup() {
if (curPopupWindow != null) {
if (!curPopupWindow.closed) { curPopupWindow.close(); }
curPopupWindow = null;
}
}
var oFeatures = ",toolbar=no,status=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,left=0,top=0";
function openMail(baseURL) { closePopup();curPopupWindow = window.open(baseURL, "Contact", "width=300,height=475" + oFeatures); }
function openPhoto(baseURL) {
closePopup();
curPopupWindow = window.open(baseURL, "Photo", "width=400,height=450" + oFeatures);
curPopupWindow.moveTo(0,0);
}
function openFloorPlan(baseURL) { closePopup();curPopupWindow = window.open(baseURL, "Floorplan", "width=600,height=400" + oFeatures); }
function openVirtualTour(baseURL) { closePopup();curPopupWindow = window.open(baseURL, "Virtualtour", "width=790,height=590" + oFeatures); }
function openMap(baseURL) { closePopup();curPopupWindow = window.open(baseURL, "Virtualtour", "width=600,height=480" + oFeatures); }
function openSchedular(baseURL) { closePopup();curPopupWindow = window.open(baseURL, "Contact", "width=300,height=525" + oFeatures); }
function sendCell(baseURL) { closePopup();curPopupWindow = window.open(baseURL, "Contact", "width=375,height=400" + oFeatures); }
function Print_Listing(baseURL) { closePopup();curPopupWindow = window.open(baseURL, "Contact", "width=790,height=500" + oFeatures); }
function SaveSelect(num, Lid,LOrigin) {
//alert("KJs:made it to save listing");
//alert("::" + "");
var res = "";
if (res != null && res !=""){
var lis = document.savedlistings.listings;
var currentListings = parseInt(lis.value,10);
if (num==0){
document.getElementById("iconswitch" + num).innerHTML='
';
document.getElementById("linkswitch" + num).innerHTML='Delete This Listing
';
currentListings = currentListings +1;
document.savedlistings.listings.value = currentListings;
document.getElementById("savedfavorites").innerHTML='Saved Favorites (' + currentListings + ') ';
} else {
document.getElementById("iconswitch" + num).innerHTML='
';
currentListings = currentListings +1;
document.savedlistings.listings.value = currentListings;
document.getElementById("savedfavorites").innerHTML='Saved Favorites (' + currentListings + ') ';
}
} else {
ContactInfo('listings');
}
}
function DeleteSelect(num, Lid,LOrigin) {
//alert("KJs:delete!!!!!");
var lis = document.savedlistings.listings;
var currentListings = parseInt(lis.value,10)
var res = "";
if (res != null && res !=""){
if (num==0){
document.getElementById("iconswitch" + num).innerHTML='
';
document.getElementById("linkswitch" + num).innerHTML='Save This Listing
';
currentListings = currentListings - 1;
document.savedlistings.listings.value = currentListings;
document.getElementById("savedfavorites").innerHTML='Saved Favorites (' + currentListings + ') ';
} else {
document.getElementById("iconswitch" + num).innerHTML='
';
currentListings = currentListings - 1;
document.savedlistings.listings.value = currentListings;
document.getElementById("savedfavorites").innerHTML='Saved Favorites (' + currentListings + ') ';
}
} else {
ContactInfo('listings');
}
}
function ChangeUser(loc)
{
var tw = 288;
var th = 180;
var nsX = (800 - tw) / 2;
var nsY = (600 - th) / 2;
URL = "../Members/MyPortfolio.SignIn.asp?loc="+loc+"&RoS=&HomePath=&sendText=listings";
window.open(URL,"","width="+tw+",height="+th+",top="+nsX+",left="+nsY+",resizable=yes");
}
function ContactInfo(sendtext)
{
var Email = '';
URL = "../Members/User_Info.asp?Email="+Email+"&flag=L&HomePath=&loc=l&sendtext=" + sendtext + "";
window.open(URL,"myPortFolio","width=350,height=535,left=0,top=0,resizable=yes,scrollbars=no");
}
function getCookie(Name) {
var search = Name + "=";
if (document.cookie.length > 0) { // if there are any cookies
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length ; // set index of beginning of value
end = document.cookie.indexOf(";", offset); // set index of end of cookie value
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(offset, end));
}
}
}
function backToResults() {
document.saveDeleteListingForm.action = "SearchResults.asp";
document.saveDeleteListingForm.submit();
}
function refineSearch(mySort)
{
if(mySort && mySort=="K")
mySort="SearchIndex.asp";
//else mySort="SearchCriteria.asp";
//KJS:09.28.05 Added this line so that if someone cuts and pastes a link, then
//we dont get a database error message because mySort is undefined
else if(mySort=="")
mySort="SearchIndex.asp";
else mySort="SearchCriteria.asp";
document.details.action=mySort;
document.details.submit();
}
function filterCompany(CType)
{ document.passValuesForm.CType.value=CType;
document.passValuesForm.action="SearchResults.asp";
for (x=0;x 0)
{ document.passValuesForm.elements[x].value = "";
}
if (thisElementName.indexOf("page") > 0)
{ document.passValuesForm.elements[x].value = "";
}
}
document.passValuesForm.submit();
}
function filterCompanyX(CID) {
alert(CID);
document.passValuesForm.CID.value = CID;
document.passValuesForm.action = "SearchResults.asp";
for (x=0;x 0) {
//alert("found!");
document.passValuesForm.elements[x].value = "";
}
if (thisElementName.indexOf("page") > 0) {
//alert("found!");
document.passValuesForm.elements[x].value = "";
}
}
document.passValuesForm.submit();
}
function showPhone(num,obj,cid,ListingId,UserEmail,ReportSection,CampaignId,AgentId)
{var str=num,objFiled;
if(!document.getElementById("imgTemp"))
{ objField=document.createElement('IMG');
objField.setAttribute('id',"imgTemp");
objField.setAttribute('height','0');
objField.setAttribute('Width','0');
document.body.appendChild(objField);
}
document.getElementById("imgTemp").src="../components/Listing.CallForDetails.AJAXtracking.asp?cid="+cid+"&anticache="+Math.floor(Math.random()*5000)+"&ListingId="+ListingId+"&UserEmail="+UserEmail+"&ReportSection="+ReportSection+"&CampaignId="+CampaignId+"&AgentId="+AgentId;
if(document.getElementById(obj)) document.getElementById(obj).innerHTML=str;
}
//