function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
var memberchartX = (screen.width/2)-310;
var memberchartY = (screen.height/2)-130;
var pos = "left="+memberchartX+",top="+memberchartY;

function memberchart(){
memberchartWindow = window.open("membership_chart.cfm","memberchart","width=620,height=260,"+pos);
}

var contactX = (screen.width/2)-260;
var contactY = (screen.height/2)-130;
var pos = "left="+contactX+",top="+contactY;

function contact(){
contactWindow = window.open("contact_member.cfm","contact","width=520,height=262,"+pos);
}

window.name="contactwindow";		
function OpenContactWindow(file)
{
window.open(file, 'Contact', 'width=520,height=262,resizable=1,scrollbars=0');
}

window.name="notewindow";		
function OpenNotesWindow(file)
{
window.open(file, 'Notes', 'width=520,height=365,resizable=1,scrollbars=0');
}

var gpolicyX = (screen.width/2)-260;
var gpolicyY = (screen.height/2)-97;
var pos = "left="+gpolicyX+",top="+gpolicyY;

function gpolicy(){
gpolicyWindow = window.open("rated_g_policy_explained.cfm","gpolicy","width=520,height=194,"+pos);
}


window.name="portfolio";		
function Portfolio(file)
{
window.open(file, 'Portfolio', 'width=335,height=400,resizable=1,scrollbars=1');
}		
function SetImage(ImagePath) {
	document.Forum_Message.Portfolio_Image.value = ImagePath;
}
function InsertPortfolioImage(ImageURL) {
	window.opener.SetImage(ImageURL);
	parent.window.close();
}

window.name="imagewindow";		
function OpenImageWindow(file, width, height)
{
var theTop = (screen.height/2) - (height/2);
var theLeft = (screen.width/2) - (width/2);
window.open(file, 'ImageViewer', 'top=' + theTop + ',left=' + theLeft + ',width=' + width + ',height=' + height + ',resizable=0,scrollbars=0,toolbar=0');
}	

// **********************************************************
// Populates Text Box With Customer ID Clicked On
// **********************************************************
function GetCustomerID(FormID, LinkOTSID) {
	opener.document.forms[FormID].elements['Link_OTS_ID'].value = LinkOTSID;
	window.close();
}
