function subPageLoad(pID)  {
    var urlIndex="http://www.baywrite.com/index.htm?pid=home";
    window.onload = frameResize;
	//alert("parent=" + (window.parent == window));
	//alert("pid=" + pID);
	//alert("parent=" + window.parent.parent.location);
	//test if this page has been loaded outside the preferred frame in index.htm
	if (window.name != "wBaywriteLinks" && window.parent == window)  {
		if (document.domain == "localhost")  {
			urlIndex = "http://localhost/baywrite/index.htm?pid=" + pID;
		}  else  {
			urlIndex = "http://www.baywrite.com/index.htm?pid=" + pID;
		}
		window.location = urlIndex;
	}
}
function frameResize() {
	var fwidth, url;	//alert("Resize");
	if (top.window.frames.length != 0) {
		//alert("Resizing----");
		top.window.document.getElementById("fBody").height = (top.window.document.body.clientHeight - 80) //+ "px"; 
		
		if (document.body.attributes["framesize"])   {
			if (document.body.attributes["framesize"].value == "max")  {
				fwidth = (top.window.document.body.clientWidth - 165);
			}  else  {  fwidth = 540;  }
		}  else  {  fwidth = 540;  }
		if(document.all)  {//detect the type of DOM model
			fwidth = fwidth + 5;
		}
		top.window.document.getElementById("fBody").width = fwidth;
	}	//alert("Resized=====" + window.frames[0].document.location);//body.clientWidth);
}

function hello(b,a)  {
    //alert(a);
    var d = "&#6" + "4;"
    var e = "'m" + "a" + "i" + "&#108;&#116;"  +  "o" + ":"
    var c = a + d + b;
    document.write("<A HREF=" + e + c + "' >" + c + "</A>");
}