function oninitchooseprofilecc(){}
function onshowchooseprofilecc(){var a=getBG();document.getElementById("alwayschooseprofilecc").checked=a.lpGetPref("alwayschooseprofilecc",0)==1;for(var e=1;e<=2;e++){var c;switch(e){case 1:c="profile";break;case 2:c="cc"}var d=a.lpGetPref(c+"ffid",0),g=false,f=document.getElementById(c).contentWindow.document,h='<link rel="stylesheet" type="text/css" href="general.css"><form id="radioform"><table cellspacing="2">',b;for(b in a.g_formfills)if(a.check_ident_ffid(a.g_formfills[b].ffid))if(e==1&&a.g_formfills[b].profiletype==
0||e==2&&a.g_formfills[b].ccnum!=""){var i;if(a.g_formfills[b].ffid==d){i=" checked";g=true}else i="";h+='<tr><td valign="middle"><input type="radio" id="'+c+a.g_formfills[b].ffid+'" name="'+c+'" value="'+a.g_formfills[b].ffid+'"'+i+'></td><td style="color: #123272;"><label for="'+c+a.g_formfills[b].ffid+'">'+of(a.g_formfills[b].decprofilename)+"</label></td></tr>"}h+="</table></form>";f.body.style.paddingLeft=0;f.body.style.marginLeft=0;f.body.innerHTML=h;if(!g)f.getElementsByName(c)[0].checked=
true;d=f.getElementsByName(c);for(b=0;b<d.length;b++)if(d[b].checked){d[b].focus();break}}}function onhidechooseprofilecc(){}
function dochooseprofilecc(){for(var a=getBG(),e=[],c=1;c<=2;c++){var d;switch(c){case 1:d="profile";break;case 2:d="cc"}for(var g=document.getElementById(d).contentWindow.document.getElementsByName(d),f=0;f<g.length;f++)if(g[f].checked){e[d]=g[f].value;break}a.lpPutUserPref(d+"ffid",e[d])}a.lpPutUserPref("alwayschooseprofilecc",document.getElementById("alwayschooseprofilecc").checked?1:0);a.lpWriteAllPrefs();if(g_issafari||g_isopera)a.update_prefs("chooseprofilecc");a.fillform(e.profile,false,g_tabid,
e.cc);closemole()};
