function PrintPage() {
	window.print();  
}
	
function PopUpNotes(mcID) {
	SX = Math.round((screen.availWidth - 400) / 2);
	SY = Math.round((screen.availHeight - 400) / 2);
	n=open('/mms/member_notes_popup.asp?mcID='+mcID,'vodka','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=400,height=400,screenX='+SX+',left='+SX+',screenY='+SY+',top='+SY);
}	

function PopWin(w, h, url) {
	SX = Math.round((screen.availWidth - w) / 2);
	SY = Math.round((screen.availHeight - h) / 2);
	var n=open(url,'newwin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width='+w+',height='+h+',screenX='+SX+',left='+SX+',screenY='+SY+',top='+SY);
	if (n.focus) {	
		n.focus();
	}
	return false;
}	

function FoGal(w, h, ver, path, displaydiv, xmlfile) 
{
	var bannerObj = document.getElementById(displaydiv);
	var fj = new Array();
	fj.push("<object type=\"application/x-shockwave-flash\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ver+",0,0,0\" width='"+w+"' height='"+h+"'>");
	fj.push("<param name=movie value='" + path + "' />"); 
  	fj.push("<param name=menu value=false />"); 
	fj.push("<param name=FlashVars value=xml="+xmlfile+" />");
 	fj.push("<param name=quality value=best />"); 
	fj.push("<param name=scale value=exactfit />");
	fj.push("<param name=wmode value=transparent />");
 	fj.push("<embed src='" + path + "' menu=false flashvars=xml="+xmlfile+" wmode=transparent quality=best scale=exactfit pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width='"+w+"' height='"+h+"'></embed></object>"); //wmode=transparent 
	var writefj = fj.join('');
	bannerObj.innerHTML=writefj;
};


//Format Email Addresses
function FormatE(name, domain, text)
{
	var strE = "<";
	strE += "a";
	strE += " href=";
	strE += "mail";
	strE += "to:";
	strE += name + "@" + domain + ">" + text + "</a>";
	document.write(strE);
}	

function KeywordSearch() {
	var obj = document.getElementById('keywordsearch');
	if (obj) {
		obj.onclick = function () {
			obj.value = "";
			obj.style.color = "#000";
			obj.style.fontWeight = "bold";
		}
	}
};

function load() {
	KeywordSearch();
};

window.onload = load;