var checkOperation="None";
var checkReplace=0;
var checkSelect=0;
var checkPic=0;
var smallWin=null;


function CheckFeature() {
   alert("This feature is not currently available.");
   return false
}
function CheckPage() {
   alert("HTML page needed.");
   return false
}
function CheckSee(stuff) {
     if (stuff.checked==true) {
         document.CheckJoin2.ChkSee.value="Yes";
     } 
     if (stuff.checked==false) {
         document.CheckJoin2.ChkSee.value="No";
     }
}
function CheckSelectRecords(stuff) {
   if (stuff.checked==true) {
       checkSelect++;
       checkPic=stuff.value;
   }
   if (stuff.checked==false) {
       checkSelect--;
   }
}
function CheckSub(stuff) {
     if (stuff.checked==true) {
         document.CheckJoin.ChkSubscribe.value="Yes";
     } 
     if (stuff.checked==false) {
         document.CheckJoin.ChkSubscribe.value="No";
     }
}
function CheckSubscribe() {
     if (checkOperation=="None" || checkOperation==0) {
         alert("Please Click a Button!");
         return false
     }
     var valEM1=document.CheckMain.SubEmail.value;
     var theLenEM1=StripEmpty(" ",valEM1).length

     if (theLenEM1==0) {
         alert("Email is required.");
         document.CheckMain.SubEmail.focus();
         return false
     }
     if (valEM1.indexOf("@",0) < 0 || valEM1.indexOf(".")<0) {
         alert("Invalid Email Address!");
         document.CheckMain.SubEmail.focus();
         return false
     }

     return true
}
function CheckTerms(stuff) {
     if (stuff.checked==true) {
         document.CheckCustomer.ChkTerms.value="Yes";
     } 
     if (stuff.checked==false) {
         document.CheckCustomer.ChkTerms.value="No";
     }
}
function findCardID() {
   openSmallWin('member_payment_help.asp', 'smallWin', 433, 390);
}
function findCardID2() {
   openSmallWin('seminar_payment_help.asp', 'smallWin', 445, 475);
}
function findOperation(form) {
   checkOperation=form.value;
}
function findSLFF() {
   openSmallWin('forgot_pwd.asp', 'smallWin', 625, 350);
}
function MM_jumpMenu(targ,selObj,restore) {
   eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
   if (restore) selObj.selectedIndex=0;
}
function MM_jumpMenuTop(targ,selObj,restore,chklist,intList) {

       if (chklist) {

       } else {
           if (intList==1 || intList==2 || intList>=6) {
              parent.frames.Right.location='buzz_news.asp';
           }
           if (intList==3) {
              parent.frames.Right.location='buzz_news.asp';
           }
           if (intList==4) {
              parent.frames.Right.location='buzz_donations.asp';
           }
           if (intList==5) {
              parent.frames.Right.location='buzz_events.asp';
           }
           if (intList==6) {
              parent.frames.Right.location='buzz_keyart.asp';
           }
           if (intList==7) {
              parent.frames.Right.location='buzz_messages.asp';
           }
           if (intList==8) {
              parent.frames.Right.location='buzz_finance.asp';
           }
       }
}
function PWordCheck() {
     var valEM1=document.CheckPWord.pword.value;
     var theLenEM1=StripEmpty(" ",valEM1).length

     if (theLenEM1==0) {
         alert("Username or email address is required.");
         document.CheckPWord.pword.focus();
         return false
     }
     return true
}
function openSmallWin(URL, windowName, windowWidth, windowHeight, scrollbars) {
   var xposition = 325; 
   var yposition = 210;

   if (!scrollbars) var scrollbars = 0;
   var args="width=" + windowWidth + "," + "height=" + windowHeight + "," + "location=0," + "menubar=0," + "scrollbars=" + scrollbars + "," + "status=0," + "titlebar=0," + "hotkeys=0," + "screenx=" + xposition + "," + "screeny=" + yposition + "," + "left=" + xposition + "," + "top=" + yposition;
   if (smallWin != null && !smallWin.closed) {
       smallWin.close();
   }
   smallWin = window.open(URL, windowName, args);
   smallWin.focus();
}
function StripEmpty(theFilter,theString) {
   var strOut,i,curChar
   strOut=""
   for (i=0;i < theString.length; i++) {		
        curChar=theString.charAt(i)
        if (theFilter.indexOf(curChar) < 0)
            strOut += curChar		
   }	
   return strOut
}