function fbs_click(t) {
	u=location.href;
	if(t) {
		t=t;
	} else {
		t=document.title;
	}
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}


function viewExistingMailout(mailoutID) {
	var span = document.getElementById('viewList');
	var spanLink = document.getElementById('viewListLink');
	if(mailoutID) {
		span.style.display="visible";
		var URL = "/admin/crm/mailoutList.php?mailoutID=" + mailoutID;
		var caption = "asdsadsa";
		//span.spanLink="/admin/crm/mailoutList.php?mailoutID=" + mailoutID;
		//span.innerHTML= '<a href="/admin/crm/mailoutList.php?mailoutID=' + mailoutID + '" rel="gb_page_center[500, 250]"><img src="/img/icons/small/vcard.png"></a>';
		span.innerHTML= '<a onclick=\'GB_showCenter("","' + URL + '",500,520);\'><img src="/img/icons/small/vcard.png"></a>';

	}
}

function taf(id) {

     var URL = "/tellafriend.php?id=" + id;

      var features =
        'width='        + '400' +
        ',height='      + '400' +
        ',directories=' + 'no' +
        ',location='    + 'no' +
        ',menubar='     + 'no' +
        ',scrollbars='  + 'yes' +
        ',status='      + 'yes' +
        ',toolbar='     + 'no' +
        ',Resizable='  + 'yes';
      info = window.open (URL, "taf", features);
}  


function showImage(pid,file) {
    var URL = "/showImage.php?pid=" + pid + "&file=" + file;
     var features =
       'width='        + '850' +
       ',height='      + '730' +
       ',directories=' + 'no' +
       ',location='    + 'no' +
       ',menubar='     + 'no' +
       ',scrollbars='  + 'yes' +
       ',status='      + 'yes' +
       ',toolbar='     + 'no' +
       ',Resizable='  + 'yes';
     info = window.open (URL, "showImage", features);
}


function playerAudio(aFile,aTitle,aID) {
    var URL = "/playAudio.php?audioFile=" + aFile + "&audioTitle=" + aTitle + "&audioID=" + aID;
     var features =
       'width='        + '550' +
       ',height='      + '220' +
       ',directories=' + 'no' +
       ',location='    + 'no' +
       ',menubar='     + 'no' +
       ',scrollbars='  + 'yes' +
       ',status='      + 'yes' +
       ',toolbar='     + 'no' +
       ',Resizable='  + 'yes';
     info = window.open (URL, "showImage", features);
}


function sendAudioToAFriend(aTitle) {
    var URL = "/sendAudio.php?audioTitle=" + aTitle;
     var features =
       'width='        + '550' +
       ',height='      + '500' +
       ',directories=' + 'no' +
       ',location='    + 'no' +
       ',menubar='     + 'no' +
       ',scrollbars='  + 'yes' +
       ',status='      + 'yes' +
       ',toolbar='     + 'no' +
       ',Resizable='  + 'yes';
     info = window.open (URL, "showImage", features);
}

function contact(id) {

     var URL = "/propertyContact.php?id=" + id + "&type=lease";

      var features =
        'width='        + '400' +
        ',height='      + '400' +
        ',directories=' + 'no' +
        ',location='    + 'no' +
        ',menubar='     + 'no' +
        ',scrollbars='  + 'yes' +
        ',status='      + 'yes' +
        ',toolbar='     + 'no' +
        ',Resizable='  + 'yes';
      info = window.open (URL, "contact", features);
}

<!--

var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
//--> 

