function getshow(showID,winName,fwidth,fheight) 
 {
	fwidth = fwidth + 40
	fheight = fheight + 40
	window.open(showID,winName,"width="+fwidth+",height="+fheight+",resizable=yes,scrollbars=yes")
 }

function getfloor(floorID,winName,fwidth,fheight) 
 {
	fwidth = fwidth + 40
	fheight = fheight + 40
	window.open(floorID,winName,"width="+fwidth+",height="+fheight+",resizable=yes,scrollbars=yes")
 }

function winpopup(url,ht,wd,tb,st,sc,rz,tp,lf) 
{
	if (url == null)return(false);
	if (ht == null)ht = 400;  // Height
	if (wd == null)wd = 600;  // Width
	if (tb == null)tb = 0;    // Toolbar
	if (st == null)st = 0;    // Status bar
	if (sc == null)sc = 1;    // Scrollbars
	if (rz == null)rz = 1;    // Resizebale
	if (tp == null)tp = 0;    // Top
	if (lf == null)lf = 0;    // Left

	window.open(url,"","width="+wd+",height="+ht+",toolbar="+tb+",status="+st+",scrollbars="+sc+",resizable="+rz+",top="+tp+",left="+lf);
	return(false);
}

function baytour() 
 {
    window.open("baytour.htm","baytour","width=250,height=250,resizable=yes,scrollbars=yes,left=590,top=0") 
 }

function factsheet() 
 {
    window.open("pdf/factsheet.pdf","factsheet","width=600,height=600,resizable=yes,scrollbars=yes,left=0,top=0") 
 }

function baysale() 
 {
    window.open("baysale.htm","condosale","width=580,height=495,resizable=yes,scrollbars=yes,left=0,top=0")
 }

function suite1107() 
 {
    window.open("suite1107show.htm","suite1107","width=770,height=590,resizable=yes,scrollbars=yes,left=0,top=0")
 }

function suite1105() 
 {
    window.open("suite1105show.htm","suite1105","width=370,height=340,resizable=yes,scrollbars=yes,left=340,top=235")
 }

function makeDate() 
{
        var date = new Date()
        var month = date.getMonth()
        var day = date.getDate()
        var year = date.getYear()
        monthName = new Array(12)
        date = null
        month++
        day += ""
        if (navigator.appName == "Netscape") year = 1900+year
        year += ""              
        var typedate = ""
      for(var i=0;i<12;++i)
         {
         monthName[0] = "January"
         monthName[1] = "February"
         monthName[2] = "March"
         monthName[3] = "April"
         monthName[4] = "May"
         monthName[5] = "June"
         monthName[6] = "July"
         monthName[7] = "August"
         monthName[8] = "September"
         monthName[9] = "October"
         monthName[10] = "November"
         monthName[11] = "December"
         } 
      typedate = monthName[month-1]+" "+day+", "+year+""
      // typedate = "<FONT COLOR='#4400ff' FACE='GEORGIA,ARIAL' SIZE=1>"+monthName[month-1]+" "+day+", "+year+""
      return typedate
   }

function nospam(rep,web,dom)
{
	if (rep == null) return(false);
	if (web == null || web == '') web = "middlefield";
	if (dom == null || dom == '') dom = ".com";
	var sym = new Array('@','lto',':','mai');
	var retval = sym[3] + sym[1] + sym[2] + rep + sym[0] + web + dom;
	 window.open(retval.toString(),"","width=10,height=10,resizable=no,scrollbars=no,left=0,top=0");
	return true;
}

