function popUp ( helptitle, helptext, height, company, full )
{

	if (height == undefined)
		height=260;
	var newwin = window.open('','reqhelp','resizable=no,width=387,height=' + height + ',top=200,left=200');
	var reWork = new RegExp('object','gi');	// Regular expression
	if(!reWork.test(String(newwin))) {
		alert('Warning: A pop-up blocker is enabled for this site!');
		newwin.close();
		return;
		}
	
	newwin.document.write ( '<html>\n<head><title>' + helptitle + '</title>\n<link rel="stylesheet" type="text/css" src="sblistyle.css" href="sblistyle.css">\n</head>\n<body style="background-color:#ffffff">\n<div style="padding:15px;"><img src="images/' + company + '_popup_top_mid.gif"><br>\n<p><b>' + helptitle + '</b><p>' + helptext + '<p align="center"><hr size="1"><span class="footer">Copyright &copy; 2009 ' + full + '</span></div></body>\n</html>');
	newwin.document.close();
	if (window.focus) newwin.focus();
	

}
	
function popUp2 ( helptitle, helptext1, helptext2, company, full )
{

	var newwin = window.open('','needhelp','resizable=no,width=387,height=550,top=200,left=200');
	var reWork = new RegExp('object','gi');	// Regular expression

	if(!reWork.test(String(newwin))) {
		alert('Warning: A pop-up blocker is enabled for this site!');
		return;
		}
	newwin.document.write ( '<html>\n<head><title>' + helptitle + '</title>\n<link rel="stylesheet" type="text/css" src="sblistyle.css" href="sblistyle.css">\n</head>\n<body style="background-color:#ffffff">\n<div style="padding:15px;"><img src="images/' + company + '_popup_top_mid.gif"><br>\n<p><b>' + helptitle + '</b><p><i>' + helptext1 + '</i><p>' + helptext2 + '<p align="center"><hr size="1"><span class="footer">Copyright &copy; 2009 ' + full + '</span></div></body>\n</html>');
	newwin.document.close();
	if (window.focus) newwin.focus()
	

}

function statesPop()
{
	var reWork = new RegExp('object','gi');	// Regular expression	
	var stateswin = window.open('popup.aspx','states','width=360,height=400,top=200,left=200');
	if(!reWork.test(String(stateswin))) {

		alert('Warning: A pop-up blocker is enabled for this site.');
		return;
		}

	if (window.focus) stateswin.focus();
}
function statesPopAnnuity ()
{
	var reWork = new RegExp('object','gi');	// Regular expression	
	var stateswin = window.open('popup.aspx?p=a','states','width=360,height=400,top=200,left=200');
	if(!reWork.test(String(stateswin))) {

		alert('Warning: A pop-up blocker is enabled for this site.');
		return;
		}

	if (window.focus) stateswin.focus();
}

function popHTML ( filename, height, width, company, full )
{

	if (height == undefined)
		height=260;
	if (width == undefined )
		width=600;
	var newwin = window.open( filename ,'popfile','resizable=yes,width='+ width + ',height=' + height + ',top=200,left=200,scrollbars');
	var reWork = new RegExp('object','gi');	// Regular expression
	if(!reWork.test(String(newwin))) {
		alert('Warning: A pop-up blocker is enabled for this site!');
		newwin.close();
		return;
		}
	
	if (window.focus) newwin.focus();


}






