
//useage: <a href="javascript:show_warning('http://www.hotmail.com');">Test Link</a>
//needs images button_continue and button_cancel in the ../images folder (buttons are 109X28) 
function show_warning(URL)
{

	//page variables
	var page_bgcolor="#EFEFF7";
	var border_color="#5271AD";
	var table_bgcolor="#EFEFF7";
	var time_visible=30000; //automatically closes after this time

	//content creation
	var content=""
	content+='<html>';
	content+='<head>';
	content+='<title>3rd Party Disclaimer</title>';
	content+='</head>';
	content+='<body bgcolor="' + page_bgcolor + '" onload=javascript:setTimeout(\'self.close()\','  + time_visible + ')>';
	content+='<table bgcolor="' + border_color + '" align="center" width="300" cellspacing="2" cellpadding="0" border="0">';
	content+='	<tr>';
	content+='	    <td>';
	content+='		<table bgcolor="' + table_bgcolor +'" align="center" width="100%" cellspacing="1" cellpadding="6" border="0">';
	content+='			<tr>';
	content+='	    		<td><font face="Arial,Verdana,Helvetica" size="-1"><b>IMPORTANT NOTICE</b><br><br>You are leaving the Belmont Savings Bank website.  The bank does not endorse or guarantee the products, information, or recommendations provided by linked sites and the Bank is not liable for any products or services advertised on these sites.  Each third party may have a privacy policy that differs from the Bank.  Any linked site may provide less security than the Bank\'s website.';                            
	content+='				<br><br>';
	content+='				<br><br>';
	content+='				 <div align="center"><a href="'+URL+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)">I Accept</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:self.close();">I Decline</a></div>';	
	content+='				</td>';
	content+='			</tr>';
	content+='		</table>';
	content+='		</td>';
	content+='	</tr>';
	content+='</table>';
	content+='</body>';
	content+='</html>';

	//actual centering popup code
	outsideURL=URL;
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 295) / 2);
     newwin = window.open("","newwin", "width=340,height=295,left="+pWidth+",top="+pHeight+", scrollbars=1");
 	newwin.document.open();
	newwin.document.write(content);
	newwin.document.close();
}	

//-->
