
isNN4 = document.layers;
isDOM = document.getElementById;

function printing() {
  if(isNN4 || isDOM) {
    window.print();
  }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// openwindow for member reward referral email
function openwindow1()
{
window.open("rewardemail.asp","Reffer_member","screenX=5 ,screenY=5, top=50, left=150, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes, titlebar=no, copyhistory=no, width=725, height=500")
}

// openwindow for PPL's legal services
function openwindow2()
{
window.open("preventative.htm","prevent_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindow3()
{
window.open("banking.htm","banking","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindow4()
{
window.open("land.htm","land_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindow5()
{
window.open("motor.htm","motor_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindow6()
{
window.open("familylaw.htm","family_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindow7()
{
window.open("income.htm","income_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindow8()
{
window.open("court.htm","court_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindow9()
{
window.open("employment.htm","employment_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindowA()
{
window.open("dental.htm","dental_law","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

function openwindowB()
{
window.open("legal.htm","legal_shield","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=300")
}

//openwindow for AIM critical issues
function openwindowC()
{
window.open("makingmoney.htm","make_money","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=200")
}

function openwindowD()
{
window.open("keepingit.htm","keep_it","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=200")
}

function openwindowE()
{
window.open("growingit.htm","grow_it","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=200")
}

function openwindowF()
{
window.open("protectingit.htm","protect_it","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=200")
}

function openwindowG()
{
window.open("tranferringit.htm","transfer_it","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=600, height=200")
}

//openwindow for other services
function openwindowH()
{
window.open("legalview.htm","legal_services","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=300")
}

function openwindowI()
{
window.open("financeview.htm","fin_services","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=300")
}

function openwindowJ()
{
window.open("accsolview.htm","acc_services","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=300")
}

function openwindowK()
{
window.open("commview.htm","comm_services","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=300")
}

function openwindowL()
{
window.open("clubcardview.htm","card_services","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=300")
}

function openwindowM1()
{
window.open("shopview.htm","shop_services","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=300")
}

function openwindowM2()
{
window.open("fastconnect.htm","Fast_Connect","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=300")
}

function openwindowN()
{
window.open("joinandwin.htm","Join_and_win","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=650, height=235")
}

function openwindowM()
{
window.open("responseform.asp","Response_Form","screenX=5 ,screenY=5, top=200, left=200, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no, titlebar=no, copyhistory=no, width=634, height=400")
}

function openwindowQ()
{
window.open("advantageemailform.asp","Fact_Finder","screenX=5 ,screenY=5, top=100, left=100, toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes, titlebar=no, copyhistory=no, width=700, height=500")
}

//radio buttons checked for reward referral
function disabler1() {
	if(document.rewardselect.reward1.checked) {
		document.rewardselect.reward2.checked=false
		document.rewardselect.reward3.checked=false
		document.rewardselect.reward4.checked=false
	}
}	
function disabler2() {
	if(document.rewardselect.reward2.checked) {
		document.rewardselect.reward1.checked=false
		document.rewardselect.reward3.checked=false
		document.rewardselect.reward4.checked=false
	}
}
function disabler3() {
	if(document.rewardselect.reward3.checked) {
		document.rewardselect.reward1.checked=false
		document.rewardselect.reward2.checked=false
		document.rewardselect.reward4.checked=false
	}
}	
function disabler4() {
	if(document.rewardselect.reward4.checked) {
		document.rewardselect.reward2.checked=false
		document.rewardselect.reward3.checked=false
		document.rewardselect.reward1.checked=false
	}
}

