var to = null;
var subject = null;
var bodytxt =null;
var doc=null;	
var lcbodytxt=null;
var lcmsgtxt=null;
function mailit(to,lcbldg) {
	lcmsgtxt= "Regarding: "+lcbldg+" Space Availabilities"
	lcbodytxt="I would like more information about available space at "+lcbldg
  	doc = "mailto:" + to + 
    "?subject=" + escape(lcmsgtxt) + 
    "&body=" + escape(lcbodytxt); 
    window.location = doc;
}

var sendwin;
function sendspace() {
      if (sendwin && sendwin.open && !sendwin.closed) {                
                  sendwin.close();
      }               
      sendwin = window.open("","sendwin",
      'resizable=yes,menubar=no,toolbar=yes,scrollbars=yes,width=400,height=430,location=no,copyhistory=no,screenY=100,screenX=0');
      sendwin.focus();
      return true;
}

var pixwin=null;
function pixwinopen(){
        if (pixwin && pixwin.open && !pixwin.closed) {          
                pixwin.close();
        }
        var pixwin = null 
        pixwin = window.open("",'pixwin','resizable=yes,menubar=no,toolbar=yes,scrollbars=yes,width=740,height=500,location=no,copyhistory=no');
        pixwin.focus()
        return true
}


function MROISwap(ref) { //v1.0 ;
   if(document.getElementById){
	var a,asrc_on,b,i,j;
	j=ref.childNodes.length;
	a=ref.childNodes;
	for (i=0; i<j; i++){ 
		if (ref.childNodes[i].nodeType==1){ 
		if (a[i].src.indexOf("gif")!=-1){a[i].src=a[i].src.replace(".gif","_on.gif")};
		if (a[i].src.indexOf("jpg")!=-1){a[i].src=a[i].src.replace(".jpg","_on.jpg")};
		}
 	}	
   }		
}

function MROIRestore(ref) { //v1.0
    if(document.getElementById){
      var a,i,j;
	j=ref.childNodes.length;
	a=ref.childNodes;
	for (i=0; i<j; i++){ 
		if (ref.childNodes[i].nodeType==1){ 		
 		a=ref.childNodes;
		if (a[i].src.indexOf("_on")!=-1){a[i].src=a[i].src.replace("_on","")};
		}
 	}	
    }
}