function checkUpdateCC() { if( document.updatecc.fname.value == "" ) { alert("Enter First Name."); document.updatecc.fname.focus(); return false; } if( document.updatecc.lname.value == "" ) { alert("Enter Last Name."); document.updatecc.lname.focus(); return false; } if( document.updatecc.address.value == "" ) { alert("Enter Address."); document.updatecc.address.focus(); return false; } if( document.updatecc.city.value == "" ) { alert("Enter City."); document.updatecc.city.focus(); return false; } if( document.updatecc.zipcode.value == "" || isNaN(document.updatecc.zipcode.value) ) { alert("Enter numeric Zip Code."); document.updatecc.zipcode.focus(); return false; } if( document.updatecc.phone.value == "" ) { alert("Enter Phone."); document.updatecc.phone.focus(); return false; } if( document.updatecc.ccnum.value == "" || isNaN(document.updatecc.ccnum.value) ) { alert("Enter numeric Credit Card Number."); document.updatecc.ccnum.focus(); return false; } if( document.updatecc.vnum.value == "" || isNaN(document.updatecc.vnum.value) ) { alert("Enter numeric Verification Number."); document.updatecc.vnum.focus(); return false; } if( document.updatecc.tollfree.value == "" ) { alert("Enter Toll Free Number."); document.updatecc.tollfree.focus(); return false; } if (document.updatecc.ccnum.value != document.updatecc.dbccnum.value) { document.updatecc.changestatus.value = "yes" } document.updatecc.submit(); return true; } function checkUpdateAccount() { if ( document.updateaccount.password1.value == "") { alert("Enter Password."); document.updateaccount.password1.focus(); return false; } if ( document.updateaccount.password2.value == "") { alert("Re-enter Password."); document.updateaccount.password2.focus(); return false; } if ( document.updateaccount.password1.value != document.updateaccount.password2.value) { alert("Your new password entries did not match"); document.updateaccount.password2.focus(); return false; } if( document.updateaccount.fname.value == "" ) { alert("Enter First Name."); document.updateaccount.fname.focus(); return false; } if( document.updateaccount.lname.value == "" ) { alert("Enter Last Name."); document.updateaccount.lname.focus(); return false; } if( document.updateaccount.address.value == "" ) { alert("Enter Address."); document.updateaccount.address.focus(); return false; } if( document.updateaccount.city.value == "" ) { alert("Enter City."); document.updateaccount.city.focus(); return false; } if( document.updateaccount.zipcode.value == "" || isNaN(document.updateaccount.zipcode.value) ) { alert("Enter numeric Zip Code."); document.updateaccount.zipcode.focus(); return false; } if( document.updateaccount.phone.value == "" ) { alert("Enter Phone."); document.updateaccount.phone.focus(); return false; } document.updateaccount.submit(); return true; } function checkCustomerInfo() { if( document.updatecustomerinfo.fname.value == "" ) { alert("Enter First Name."); document.updatecustomerinfo.fname.focus(); return false; } if( document.updatecustomerinfo.lname.value == "" ) { alert("Enter Last Name."); document.updatecustomerinfo.lname.focus(); return false; } if( document.updatecustomerinfo.address.value == "" ) { alert("Enter Address."); document.updatecustomerinfo.address.focus(); return false; } if( document.updatecustomerinfo.city.value == "" ) { alert("Enter City."); document.updatecustomerinfo.city.focus(); return false; } if( document.updatecustomerinfo.zipcode.value == "" || isNaN(document.updatecustomerinfo.zipcode.value) ) { alert("Enter numeric Zip Code."); document.updatecustomerinfo.zipcode.focus(); return false; } if( document.updatecustomerinfo.phone.value == "" ) { alert("Enter Phone."); document.updatecustomerinfo.phone.focus(); return false; } if( document.updatecustomerinfo.status.value == "" ) { alert("Enter Status (verified, pending, void)."); document.updatecustomerinfo.status.focus(); return false; } if( document.updatecustomerinfo.points.value == "" ) { alert("Enter Points."); document.updatecustomerinfo.points.focus(); return false; } if( document.updatecustomerinfo.ccnum.value == "" || isNaN(document.updatecustomerinfo.ccnum.value) ) { alert("Enter numeric Credit Card Number."); document.updatecustomerinfo.ccnum.focus(); return false; } if( document.updatecustomerinfo.vnum.value == "" || isNaN(document.updatecustomerinfo.vnum.value) ) { alert("Enter numeric Verification Number."); document.updatecustomerinfo.vnum.focus(); return false; } if( document.updatecustomerinfo.tollfree.value == "" ) { alert("Enter Toll Free Number."); document.updatecustomerinfo.tollfree.focus(); return false; } if( document.updatecustomerinfo.fname.value == "" ) { alert("Enter First Name."); document.updatecustomerinfo.fname.focus(); return false; } if( document.updatecustomerinfo.lname.value == "" ) { alert("Enter Last Name."); document.updatecustomerinfo.lname.focus(); return false; } if( document.updatecustomerinfo.address.value == "" ) { alert("Enter Address."); document.updatecustomerinfo.address.focus(); return false; } if( document.updatecustomerinfo.city.value == "" ) { alert("Enter City."); document.updatecustomerinfo.city.focus(); return false; } if( document.updatecustomerinfo.zipcode.value == "" || isNaN(document.updatecustomerinfo.zipcode.value) ) { alert("Enter numeric Zip Code."); document.updatecustomerinfo.zipcode.focus(); return false; } if( document.updatecustomerinfo.phone.value == "" ) { alert("Enter Phone."); document.updatecustomerinfo.phone.focus(); return false; } document.updatecustomerinfo.submit(); return true; } function checkSignUp() { if( document.signup.email.value == "" ) { alert("Enter Email."); document.signup.email.focus(); return false; } if ( document.signup.password1.value == "") { alert("Enter Password."); document.signup.password1.focus(); return false; } if ( document.signup.password2.value == "") { alert("Re-enter Password."); document.signup.password2.focus(); return false; } if ( document.signup.password1.value != document.signup.password2.value) { alert("Your new password entries did not match"); document.signup.password2.focus(); return false; } if( document.signup.fname.value == "" ) { alert("Enter First Name."); document.signup.fname.focus(); return false; } if( document.signup.lname.value == "" ) { alert("Enter Last Name."); document.signup.lname.focus(); return false; } if( document.signup.address.value == "" ) { alert("Enter Address."); document.signup.address.focus(); return false; } if( document.signup.city.value == "" ) { alert("Enter City."); document.signup.city.focus(); return false; } if( document.signup.state.selectedIndex == 0 ) { alert("Select State."); document.signup.state.focus(); return false; } if( document.signup.zipcode.value == "" || isNaN(document.signup.zipcode.value) ) { alert("Enter numeric Zip Code."); document.signup.zipcode.focus(); return false; } if( document.signup.phone.value == "" ) { alert("Enter Phone."); document.signup.phone.focus(); return false; } if( document.signup.cctype.selectedIndex == 0 ) { alert("Select Credit Card."); document.signup.cctype.focus(); return false; } if( document.signup.ccnum.value == "" || isNaN(document.signup.ccnum.value) ) { alert("Enter numeric Credit Card Number."); document.signup.ccnum.focus(); return false; } if( document.signup.month.selectedIndex == 0 ) { alert("Select Month."); document.signup.month.focus(); return false; } if( document.signup.year.selectedIndex == 0 ) { alert("Select Year."); document.signup.year.focus(); return false; } if( document.signup.vnum.value == "" || isNaN(document.signup.vnum.value) ) { alert("Enter numeric Verification Number."); document.signup.vnum.focus(); return false; } if( document.signup.tollfree.value == "" ) { alert("Enter Toll Free Number."); document.signup.tollfree.focus(); return false; } document.signup.signupconfirm.value = true; return true; } function pop(location, height, width) { window.open(location, "win_options", "height=" + height + ",width=" + width + ",menubar,status,scrollbars,resizable"); } function submitRating(form) { window.opener.document.custrating.ratingtrue.value = 'true'; window.opener.document.custrating.phonecardid.value = form.id.value; for( var i = 0; i < form.rating.length; i++ ) { if( form.rating[i].checked ) { window.opener.document.custrating.rating.value = form.rating[i].value; } } window.opener.document.custrating.submit(); window.close(); } function checkSelectRate() { if( document.rate.pcid.selectedIndex == 0 ) { alert("Please select phonecard."); document.rate.pcid.focus(); return false; } document.rate.submit(); } function checkCardDetail() { if( document.carddetail.pcid.selectedIndex == 0 ) { alert("Please select phonecard."); document.carddetail.pcid.focus(); return false; } document.carddetail.submit(); } function checkCopyCard() { if( document.addcard.pcid.selectedIndex == 0 ) { alert("Please select phonecard."); document.addcard.pcid.focus(); return false; } document.addcard.submit(); } function checkNewRate() { if( document.newrate.pcid.selectedIndex == 0 ) { alert("Please select phonecard."); document.newrate.pcid.focus(); return false; } if( document.newrate.ratefrom.value == "" ) { alert("Please enter From country."); document.newrate.ratefrom.focus(); return false; } if( document.newrate.rateto.value == "" ) { alert("Please enter To country."); document.newrate.rateto.focus(); return false; } if( document.newrate.mins.value == "" ) { alert("Please enter numeric Mins."); document.newrate.mins.focus(); return false; } if( document.newrate.local_mins.value == "" || isNaN(document.newrate.local_mins.value) ) { alert("Please enter numeric Local Mins."); document.newrate.local_mins.focus(); return false; } document.newrate.submit(); } function checkSelectBatchCode() { if( document.batchcode.pcid.selectedIndex == 0 ) { alert("Please select phonecard."); document.batchcode.pcid.focus(); return false; } document.batchcode.submit(); } function checkNewBatchCode() { if( document.newbatchcode.pcid.selectedIndex == 0 ) { alert("Please select phonecard."); document.newbatchcode.pcid.focus(); return false; } document.newbatchcode.submit(); } function checkCreateBatchCode() { if( document.newbatchcode.pcid.selectedIndex == 0 ) { alert("Please select phonecard."); document.newbatchcode.pcid.focus(); return false; } if( document.newbatchcode.count.value == "" ) { alert("Please enter number batchcode to create."); document.newbatchcode.count.focus(); return false; } document.newbatchcode.submit(); } function checkResale() { if( document.resale.name.value == "" ) { alert("Enter Name."); document.resale.name.focus(); return false; } if( document.resale.address.value == "" ) { alert("Enter Address."); document.resale.address.focus(); return false; } if( document.resale.city.value == "" ) { alert("Enter City."); document.resale.city.focus(); return false; } if( document.resale.state.selectedIndex == 0 ) { alert("Select State."); document.resale.state.focus(); return false; } if( document.resale.zipcode.value == "" || isNaN(document.resale.zipcode.value) ) { alert("Enter numeric Zip Code."); document.resale.zipcode.focus(); return false; } if( document.resale.phone.value == "" ) { alert("Enter Phone."); document.resale.phone.focus(); return false; } if( document.resale.email.value == "" ) { alert("Enter Email."); document.resale.email.focus(); return false; } return true; } function checkOrder() { if( document.checkout.fname.value == "" ) { alert("Enter First Name."); document.checkout.fname.focus(); return false; } if( document.checkout.lname.value == "" ) { alert("Enter Last Name."); document.checkout.lname.focus(); return false; } if( document.checkout.address.value == "" ) { alert("Enter Address."); document.checkout.address.focus(); return false; } if( document.checkout.city.value == "" ) { alert("Enter City."); document.checkout.city.focus(); return false; } if( document.checkout.state.selectedIndex == 0 ) { alert("Select State."); document.checkout.state.focus(); return false; } if( document.checkout.zipcode.value == "" || isNaN(document.checkout.zipcode.value) ) { alert("Enter numeric Zip Code."); document.checkout.zipcode.focus(); return false; } if( document.checkout.phone.value == "" ) { alert("Enter Phone."); document.checkout.phone.focus(); return false; } if( document.checkout.email.value == "" ) { alert("Enter Email."); document.checkout.email.focus(); return false; } if( document.checkout.cc.selectedIndex == 0 ) { alert("Select Credit Card."); document.checkout.cc.focus(); return false; } if( document.checkout.ccnum.value == "" || isNaN(document.checkout.ccnum.value) ) { alert("Enter numeric Credit Card Number."); document.checkout.ccnum.focus(); return false; } if( document.checkout.month.selectedIndex == 0 ) { alert("Select Month."); document.checkout.month.focus(); return false; } if( document.checkout.year.selectedIndex == 0 ) { alert("Select Year."); document.checkout.year.focus(); return false; } if( document.checkout.vnum.value == "" || isNaN(document.checkout.vnum.value) ) { alert("Enter numeric Verification Number."); document.checkout.vnum.focus(); return false; } if( document.checkout.tollfree.value == "" ) { alert("Enter Toll Free Number."); document.checkout.tollfree.focus(); return false; } document.checkout.order.value = "cc"; return true; } function checkContact() { if( document.contactsupport.custname.value == "" ) { alert("Enter Customer Name."); document.contactsupport.custname.focus(); return false; } if( document.contactsupport.email.value == "" ) { alert("Enter Email."); document.contactsupport.email.focus(); return false; } if( document.contactsupport.phonenumber.value == "" ) { alert("Enter Phone Number."); document.contactsupport.phonenumber.focus(); return false; } if( document.contactsupport.orderid.value == "" ) { alert("Enter Order ID."); document.contactsupport.orderid.focus(); return false; } if( document.contactsupport.pinnumber.value == "" ) { alert("Enter Pin Number."); document.contactsupport.pinnumber.focus(); return false; } if( document.contactsupport.controlnumber.value == "" ) { alert("Enter Control Number."); document.contactsupport.controlnumber.focus(); return false; } if( document.contactsupport.comments.value == "" ) { alert("Enter Comments."); document.contactsupport.comments.focus(); return false; } return true; } function FlashInstalled() { result = false; if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) { result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin; } else if (document.all && (navigator.appVersion.indexOf("Mac")==-1)) { // IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try) eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) result = true; xObj = null; } catch (e) {}'); } return result; } function GetFlashHTML(url,width,height) { var htm = ''; htm += ' '; htm += ' '; htm += ' '; return htm; } function BannerMgr_Switch(imageObj,kind,criteria) { var banObj = this.GetBanner(kind,criteria); if (banObj != null) { imageObj.src = banObj.imgSrc; this.SetAnchorRef(imageObj.name+"Ref",banObj.ref); } } function BannerMgr_SetAnchorRef(name,ref) { for (var i=0;i= 0)) { matches = true; } else matches = false; } if (matches) possibles[possibles.length] = banArray[i]; } if (possibles.length > 0) { var choice = Math.floor(Math.random()*possibles.length); result = possibles[choice]; } return result; } function BannerMgr_Add(kind, keywords, imgSrc, imgHt, altText, ref, flashSrc) { var banArray = this.banners[kind]; var banObj = new Object(); banObj.name = "ban" + banArray.length; banObj.keywords = keywords; banObj.imgSrc = imgSrc; banObj.imgHt = imgHt; banObj.altText = altText; banObj.ref = ref; if (arguments.length > 7) banObj.flashSrc = flashSrc; else banObj.flashSrc = null; banArray[banArray.length] = banObj; } function BannerMgr_WriteBanner(kind,criteria) { var htm = this.GetBannerHTML(kind,criteria); document.write(htm); } function BannerMgr_GetBannerHTML(kind,criteria) { var banObj = this.GetBanner(kind,criteria); var wh = this.GetWidthHeight(kind); var htm = ''; if (banObj.flashSrc && FlashInstalled()) { htm = GetFlashHTML(banObj.flashSrc+"?link="+banObj.ref,wh.width,wh.height); } else { htm += ''; htm += ''; // support for airplane banner if (kind==BannerMgr.BAN) { gBannerName = banObj.name; gBannerLinkName = banObj.name; gBannerLinkURL = banObj.ref; } } return htm; } function BannerMgr_GetWidthHeight(kind) { var returnObj = new Object(); switch(kind) { case 0: returnObj.width = 468; returnObj.height = 60; break; case 1: returnObj.width = 88; returnObj.height = 31; break; case 2: returnObj.width = 120; returnObj.height = 60; break; } return returnObj; } function BannerMgr() { this.banners = new Array( new Array(), new Array(),new Array() ); // Methods this.GetWidthHeight = BannerMgr_GetWidthHeight; this.WriteBanner = BannerMgr_WriteBanner; this.Add = BannerMgr_Add; this.GetBanner = BannerMgr_GetBanner; this.SetAnchorRef = BannerMgr_SetAnchorRef; this.Switch = BannerMgr_Switch; this.GetBannerHTML = BannerMgr_GetBannerHTML; } BannerMgr.BAN = 0; BannerMgr.BTN = 1; BannerMgr.BTN2X = 2; var gBannerMgr = new BannerMgr(); // Regular Size Banner Examples gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://www.ephonecard88.com/images/flylogo.gif", "70", "Click here for details", "http://www.flypolaris.com"); gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://fp.buy.com/buy_assets/affiliate/01/0100_123E.gif", "60", "Save more at buy.com", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=37803.10000790&type=4&subid=0"); gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://linkshare.coolvacations.com/images_main/banners/ads/general_dest_banner.jpg", "60", "Continental Vacation", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=28302.10000079&type=4&subid=0"); gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://ad.linksynergy.com/fs-bin/show?id=F1iJ00d4Tuc&bids=24474.10000186&subid=0&type=4", "60", "Hotwire", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=24474.10000186&subid=0&type=4"); gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://ad.doubleclick.net/ad/N2870.or2/B959384.11;sz=468x60", "60", "Orbitz", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=38994.10000010&type=4&subid=0"); gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://ad.linksynergy.com/fs-bin/show?id=F1iJ00d4Tuc&bids=29744.10000157&subid=0&type=4", "60", "Dell Computer", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=29744.10000157&subid=0&type=4"); gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://www.deltavacations.com/resources/banners/en/ddv_delta_bermuda.gif", "60", "Delta Vacation", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=28306.10000126&type=4&subid=0"); gBannerMgr.Add(BannerMgr.BAN, "local,linkshare", "http://ad.linksynergy.com/fs-bin/show?id=F1iJ00d4Tuc&bids=27525.10000028&subid=0&type=4", "60", "ShopAtHome.com Free Catalogs and Magazines", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=27525.10000028&subid=0&type=4"); // Button Size Banner Examples //gBannerMgr.Add(BannerMgr.BTN, "local,linkshare", "http://ad.linksynergy.com/fs-bin/show?id=F1iJ00d4Tuc&bids=31083.10000204&subid=0&type=4", "Chase Credit Card", "http://click.linksynergy.com/fs-bin/click?id=F1iJ00d4Tuc&offerid=31083.10000204&subid=0&type=4"); //gBannerMgr.Add(BannerMgr.BTN, "genealogy", "http://www.ancestry.com/images/small_anc.gif", "Ancestry.com", "http://www.angusog.com/redir.asp?url=http://service.bfast.com/bfast/click?bfmid=5647408&siteid=33161451&bfpage=anc_small"); //gBannerMgr.Add(BannerMgr.BTN, "local,general", "http://www.angusog.com/images/FreeMarklet.gif", "Click here for details", "http://www.angusog.com/redir.asp?url=http://www.angusog.com/marklets/");