function open_usli(which){open(
	'https://secure.usli.com/RetailQuote/Start.aspx'+
		'?WebProductID='+which+
		'&CustomerID=E2C162F6-62BE-48d8-B658-E0204F8235F5'+
		'&Commission=12&CustomerEmail=joyce_king@jebrown.net'
	,'usli_login'
)}

function open_rater(name, which){
	var where = (which? 'http://www.topains.com': '')+'/rating/';
	var page = open(where+'Display_Frame.htm',(which? '': 'rate__')+name,
		'height='+Math.min(600,screen.availHeight-25)+
		',width='+Math.min(750,screen.availWidth-10)+
		',resizable,scrollbars');
	if (screen.availHeight<625||screen.availWidth<760) page.moveTo(0,0);
}

function check_ar_olreg(){if (confirm(
	'In an effort to provide a better experience and in conjunction with a rate decrease,\n'+
	'American Reliable has changed platforms for online HO-3 rating.\n\n'+
	'1) If you already have a login and password for the current American Reliable online\n'+
	'Mobile Home & Dwelling Fire rater, you can now use that login and website to quote\n'+
	'the new HO-3 rates by selecting "OK".\n\n'+
	'2) If you do not have a login and password for the current online Mobile Home &\n'+
	'Dwelling Fire rater, click "Cancel" and you may request access to the new platform.\n\n'
	)) open_url('https://secure.uwsystems.com/prod-ar/');
	else location= 'am-reliable-reg.aspx';
}

function open_url(which){open(which)}


function cse_pop(which){
	 document.getElementById('poptarget').innerHTML = '<div id="blocker" style="font-size:1.2em;z-index:1000;background:white;border:6px solid red;width:424px;height:200px;padding:32px;position:absolute;margin:-100px 0 0 -250px;top:50%;left:50%;text-align:center"><div style="margin:auto">Are you aware that CSE now has a new online processing system that can Quick Quote, qualify, create applications, request binding, make payments and more?<br><br><br><a href="javascript:;" onclick="window.location=\'/jebweb3.0/regcse.php\';self.close()">Click here to request credentials for the system.</a><br/><br><a href="javascript:;" onclick="document.getElementById(\'blocker\').style.display=\'none\';open_rater(\''+which+'\');return false;">Click here to proceed to Quick Quote.</a></div></div>';
}
function cse_pop2(which){
	 document.getElementById('poptarget').innerHTML = '<div id="blocker" style="font-size:1.2em;z-index:1000;background:white;border:6px solid red;width:424px;height:200px;padding:32px;position:absolute;margin:-100px 0 0 -250px;top:50%;left:50%;text-align:center"><div style="margin:auto">Are you aware that CSE now has a new online processing system that can Quick Quote, qualify, create applications, request binding, make payments and more?<br><br><br><a href="javascript:;" onclick="window.location=\'/jebweb3.0/regcse.php\';self.close()">Click here to request credentials for the system.</a><br/><br><a href="javascript:;" onclick="document.getElementById(\'blocker\').style.display=\'none\';open_url(\''+which+'\');return false;">Click here to proceed to Application.</a></div></div>';
}


