function WLSearch() { $Words = szKeyWords.value; $URL = "/cgi-bin/htsearch?method=and&sort=score&restrict=/&words=" + $Words; document.location = $URL; } function Link($URL) { document.location = $URL; } function Linkout($URL) { if ($URL.substring(0,7) == "http://") MM_openBrWindow($URL,'','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes') else document.location = $URL; } function fnDelete(szURL,nID) { var bDelete; var szMessage; if (nID > 0) { szURL = szURL + nID; //alert(szURL); szMessage = "Are you sure you want to delete?\nThis will remove all associations in the database."; bDelete = confirm(szMessage); if (bDelete) { Link(szURL); } } } function fnAlert(szMessage,szURL,nID) { var bDelete; if (nID > 0) { szURL = szURL + nID; //alert(szURL); bDelete = confirm(szMessage); if (bDelete) { Link(szURL); } } } function fnFinalizeSpecial() { var szMessage = "Are you sure you want to finalize?\nYou will not be able to make changes after."; bDelete = confirm(szMessage); if (bDelete) { SupplierSpecialsForm.frmcmd2.value="finalize"; SupplierSpecialsForm.submit(); } } function MM_findObj(n, d) { //v3.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'; break; case 1: oCell.innerHTML = ''; break; case 2: szHTML = ''; szHTML = '\n'; oCell.innerHTML = szHTML; break; } oCell = trNewRow.insertCell(); oCell.innerHTML = ''; } function fnDeleteSpecialsSpecialField(nID) { for (curr_row = 0; curr_row < tbExistingSpecial.rows.length; curr_row++) { oRow = tbExistingSpecial.rows[curr_row]; if (oRow.id == nID) { tbExistingSpecial.deleteRow(oRow.rowIndex); break; } } } function fnAddSpecialsShipping() { var szDate = new Date(); szDate = szDate.getTime() + Math.random(); trNewRow = tbExistingShipping.insertRow(); trNewRow.id = szDate; oCell = trNewRow.insertCell(); szHTML = ''; szHTML = SupplierSpecialsForm.szShippingType.options[SupplierSpecialsForm.szShippingType.selectedIndex].value.replace(/\|/g,''); szHTML += '\n'; oCell.innerHTML = szHTML; oCell = trNewRow.insertCell(); oCell.innerHTML = SupplierSpecialsForm.szShippingAmount.value.replace(/\|/g,''); oCell = trNewRow.insertCell(); szHTML = ''; szHTML += '\n'; szHTML += '\n'; szHTML += '\n'; szHTML += '\n'; szHTML += '
#Amount
'; szHTML += SupplierSpecialsForm.szQuantityDiscountQuantity.value.replace(/\|/g,''); szHTML += ''; szHTML += SupplierSpecialsForm.szQuantityDiscountPrice.value.replace(/\|/g,''); szHTML += '
\n'; oCell.innerHTML = szHTML; oCell = trNewRow.insertCell(); szHTML = ''; szHTML += '\n'; szHTML += '\n'; szHTML += '\n'; szHTML += '\n'; szHTML += '
$Amount
'; szHTML += SupplierSpecialsForm.szPriceDiscountAmount.value.replace(/\|/g,''); szHTML += ''; szHTML += SupplierSpecialsForm.szPriceDiscountPrice.value.replace(/\|/g,''); szHTML += '
\n'; oCell.innerHTML = szHTML; oCell = trNewRow.insertCell(); oCell.innerHTML = ''; } function fnDeleteSpecialsShipping(nID) { for (curr_row = 0; curr_row < tbExistingShipping.rows.length; curr_row++) { oRow = tbExistingShipping.rows[curr_row]; if (oRow.id == nID) { tbExistingShipping.deleteRow(oRow.rowIndex); break; } } } /* a function that opens a centered window. */ var newWin; function cWin(url,winname,w,h) { windowleft = (screen.width - w)/2; windowtop = (screen.height - h)/2; settings = '"toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,status=no,width='+w+',height='+h+ ',left='+windowleft+',top='+windowtop+'"'; closeWindow(); newWin = window.open(url,winname,settings); newWin.focus(); } function closeWindow() { if (newWin && !newWin.closed) { newWin.close();} } function fnOpenVideo(szID,szVideo) { var nHeight = 360 //Set height var nWidth = 480 //Set width var szName = "video" //Set window name var nTop=(screen.height/2)-(nHeight/2); var nLeft=(screen.width/2)-(nWidth/2); if (szVideo == undefined) { szVideo = szID; szID = 0; } //alert(szVideo.substr(szVideo.length-3,3)); if (szVideo.substr(szVideo.length-3,3) == "wmv") oNewWindow=window.open("/files/video/"+szID+"/"+szVideo, szName, "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + nWidth + ",height=" + nHeight + ",left=" + nLeft + ",top=" + nTop) else oNewWindow=window.open("/player.asp?cryp=y&szVidD=" + szID + "&szVid="+szVideo, szName, "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + nWidth + ",height=" + nHeight + ",left=" + nLeft + ",top=" + nTop) } function flashResize(ele, height, width) { var uploader = document.getElementById(ele); if(height != 0) uploader.style.height = height+"px"; if(width != 0) uploader.style.width = width+"px"; } function canResizeFlash() { var ua = navigator.userAgent.toLowerCase(); var opera = ua.indexOf("opera"); if( document.getElementById ) { if(opera == -1) return true; else if(parseInt(ua.substr(opera+6, 1)) >= 7) return true; } return false; } function fnGetDate() { Stamp = new Date(); var rgDay = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var rgMonth = new Array("Jan.","Feb.","Mar.","Apr.","May","June","Jul.","Aug.","Sept.","Oct.","Nov.","Dec."); document.write(rgDay[Stamp.getDay()]+", "+rgMonth[Stamp.getMonth()] +" "+Stamp.getDate() + ' '); //+ " "+Stamp.getFullYear() + ' '); } function fnGetTime() { var Hours; var Mins; var Time; Hours = Stamp.getHours(); if (Hours >= 12) { Time = " P.M."; } else { Time = " A.M."; } if (Hours > 12) { Hours -= 12; } if (Hours == 0) { Hours = 12; } Mins = Stamp.getMinutes(); if (Mins < 10) { Mins = "0" + Mins; } document.write(Hours + ":" + Mins + Time); } function fnFontSize(nPageID,nFontSize) { var szURL = "index.asp?p=" + nPageID + "&userfontsize=" + nFontSize; Link(szURL); } function fnSetNavHeight() { var oFooter = document.getElementById("UniversalFooterBar"); if (typeof(oFooter) == "undefined") oFooter = document.getElementById("FooterBarTemplate"); if (oFooter == null) return; rgCoords = findPos(oFooter); nTop = rgCoords[1]; //alert (nTop); var sidebarDom = document.getElementById("LeftNav"); if (sidebarDom == null) return; rgCoords = findPos(sidebarDom); nTopNav = rgCoords[1]; sidebarDom.style.height = nTop - nTopNav; var oPageContent = document.getElementById("PageContent"); if (oPageContent == null) return; rgCoords = findPos(oPageContent); nTopNav = rgCoords[1]; oPageContent.style.height = sidebarDom.style.height; //fnGetHeaderPosition(); } function findPos(obj) { var curleft = curtop = 0; if (obj == null) return [0,0]; if (obj.offsetParent) { do { curleft += obj.offsetLeft; curtop += obj.offsetTop; } while (obj = obj.offsetParent); } return [curleft,curtop]; } function fnShowInfoBox(nBoxNumber) { if (nBoxNumber == nInfoBoxCurrent) return; var strDIV = "InfoBox" + nBoxNumber; oDiv = document.getElementById(strDIV); strDIV = "InfoBox" + nInfoBoxCurrent; oDiv2 = document.getElementById(strDIV); oDiv.className = "InfoBox1"; oDiv2.className = "InfoBox1Hidden"; oDiv.className = "InfoBox1"; oDiv2.className = "InfoBox1Hidden"; strDIV = "InfoBoxButton" + nBoxNumber; oDiv = document.getElementById(strDIV); strDIV = "InfoBoxButton" + nInfoBoxCurrent; oDiv2 = document.getElementById(strDIV); oDiv2.className = "InfoBoxButton"; oDiv.className = "InfoBoxButtonCurrent"; nInfoBoxCurrent = nBoxNumber; } function fnSponsorLink(szID) { var oHidden = document.getElementById(szID); var szValue = "http://www.yellowfishroad.org/index.asp?cmd=sponsorclick&s=" + oHidden.value; if (oHidden.value != "" && oHidden.value != "undefined" && oHidden.value != "0") Linkout(szValue); } function BecomeaMemberSubmit() { var chkamount; var chktype; var chkchapter; var chkfirstname; var chklastname; var chkaddress; var chkcity; var chkprov; var chkpostalcode; var chktel; var chkemail; chkamount = CheckField(document.memberForm.charge_total.value); chktype = CheckField(document.memberForm.rvar1.value); chkchapter = CheckField(document.memberForm.rvar2.value); chkfirstname = CheckField(document.memberForm.bill_first_name.value); chklastname = CheckField(document.memberForm.bill_last_name.value); chkaddress = CheckField(document.memberForm.bill_address_one.value); chkcity = CheckField(document.memberForm.bill_city.value); chkprov = CheckField(document.memberForm.bill_state_or_province.value); chkpostalcode = CheckField(document.memberForm.bill_postal_code.value); chktel = CheckField(document.memberForm.bill_phone.value); chkemail = CheckField(document.memberForm.email.value); if (chkamount && chktype && chkchapter && chkfirstname && chklastname && chkaddress && chkcity && chkprov && chkpostalcode && chktel && chkemail) { return true; } else { if (chkamount == false) { alert("Please select a membership type."); return false; } if (chktype == false) { alert("Please indicate if this is a new mebership or a renewal."); return false; } if (chkchapter == false) { alert("Please select a local chapter membership."); return false; } if (chkfirstname == false) { alert("Please fill in your first name."); document.memberForm.bill_first_name.focus(); return false; } if (chklastname == false) { alert("Please fill in your last name."); document.memberForm.bill_last_name.focus(); return false; } if (chkaddress == false) { alert("Please fill in your street address."); document.memberForm.bill_address_one.focus(); return false; } if (chkcity == false) { alert("Please fill in city."); document.memberForm.bill_city.focus(); return false; } if (chkprov == false) { alert("Please fill in Province."); document.memberForm.bill_state_or_province.focus(); return false; } if (chkpostalcode == false) { alert("Please fill in your postal code."); document.memberForm.bill_postal_code.focus(); return false; } if (chktel == false) { alert("Please fill in your home telephone number."); document.memberForm.bill_phone.focus(); return false; } if (chkemail == false) { alert("Please fill in your email address."); document.memberForm.email.focus(); return false; } } } function CheckField(field) { if (eval(field == "")) { return false; } else { return true; } } /* This script is Copyright (c) Paul McFedries and Logophilia Limited (http://www.mcfedries.com/). Permission is granted to use this script as long as this Copyright notice remains in place.*/ function CalculateTotalTickets(frm) { var order_total = 0 // Run through all the form fields for (var i=0; i < frm.elements.length; ++i) { // Get the current field form_field = frm.elements[i] // Get the field's name form_name = form_field.name // Is it a "product" field? if (form_name == "quantity1") { // If so, extract the price from the name item_price = "35.00" // Get the quantity item_quantity = parseInt(form_field.value) // Update the order total if (item_quantity >= 0) { order_total += item_quantity * item_price } } } // Display the total rounded to two decimal places frm.charge_total.value = round_decimals(order_total, 2) } function round_decimals(original_number, decimals) { var result1 = original_number * Math.pow(10, decimals) var result2 = Math.round(result1) var result3 = result2 / Math.pow(10, decimals) return pad_with_zeros(result3, decimals) } function pad_with_zeros(rounded_value, decimal_places) { // Convert the number to a string var value_string = rounded_value.toString() // Locate the decimal point var decimal_location = value_string.indexOf(".") // Is there a decimal point? if (decimal_location == -1) { // If no, then all decimal places will be padded with 0s decimal_part_length = 0 // If decimal_places is greater than zero, tack on a decimal point value_string += decimal_places > 0 ? "." : "" } else { // If yes, then only the extra decimal places will be padded with 0s decimal_part_length = value_string.length - decimal_location - 1 } // Calculate the number of decimal places that need to be padded with 0s var pad_total = decimal_places - decimal_part_length if (pad_total > 0) { // Pad the string with 0s for (var counter = 1; counter <= pad_total; counter++) value_string += "0" } return value_string } function fnAdoptaTroutForm() { var chkquantity; var chkfirstname; var chklastname; var chkaddress; var chkcity; var chkprov; var chkpostalcode; var chktel; var chkemail; chkquantity = CheckField(document.ticketForm.quantity1.value); chkfirstname = CheckField(document.ticketForm.bill_first_name.value); chklastname = CheckField(document.ticketForm.bill_last_name.value); chkaddress = CheckField(document.ticketForm.bill_address_one.value); chkcity = CheckField(document.ticketForm.bill_city.value); chkprov = CheckField(document.ticketForm.bill_state_or_province.value); chkpostalcode = CheckField(document.ticketForm.bill_postal_code.value); chktel = CheckField(document.ticketForm.bill_phone.value); chkemail = CheckField(document.ticketForm.email.value); if (chkquantity && chkfirstname && chklastname && chkaddress && chkcity && chkprov && chkpostalcode && chktel && chkemail) { return true; } else { if (chkquantity == false) { alert("Please select a quantity."); document.ticketForm.quantity1.focus(); return false; } if (chkfirstname == false) { alert("Please fill in your first name."); document.ticketForm.bill_first_name.focus(); return false; } if (chklastname == false) { alert("Please fill in your last name."); document.ticketForm.bill_last_name.focus(); return false; } if (chkaddress == false) { alert("Please fill in your street address."); document.ticketForm.bill_address_one.focus(); return false; } if (chkcity == false) { alert("Please fill in city."); document.ticketForm.bill_city.focus(); return false; } if (chkprov == false) { alert("Please enter your province."); document.ticketForm.bill_state_or_province.focus(); return false; } if (chkpostalcode == false) { alert("Please fill in your postal code."); document.ticketForm.bill_postal_code.focus(); return false; } if (chktel == false) { alert("Please fill in your home telephone number."); document.ticketForm.bill_phone.focus(); return false; } if (chkemail == false) { alert("Please fill in your email address."); document.ticketForm.email.focus(); return false; } } } function fnShowHeaderSearchForm() { var oShowSearchPlacer = document.getElementById("HeaderShowSearchPlacer"); var oShowSearch = document.getElementById("HeaderShowSearch"); var oSearch = document.getElementById("HeaderSearchForm"); if (oSearch != null && oShowSearch != null && oShowSearchPlacer != null) { if (oShowSearchPlacer.value == "1") { oShowSearch.style.backgroundImage="url(/images/icons/eup.png)"; oShowSearchPlacer.value = "0"; oSearch.style.visibility = "visible"; oSearch.style.display = "block"; } else { oShowSearch.style.backgroundImage="url(/images/icons/edown.png)" oShowSearchPlacer.value = "1"; oSearch.style.visibility = "hidden"; oSearch.style.display = "none"; } } } function fnDonationsetValue() { if(eval("document.donateForm.donation[0].checked") == true) { document.donateForm.price1.value='25.00'; document.donateForm.subtotal1.value='25.00'; document.donateForm.charge_total.value='25.00'; } if(eval("document.donateForm.donation[1].checked") == true) { document.donateForm.price1.value='50.00'; document.donateForm.subtotal1.value='50.00'; document.donateForm.charge_total.value='50.00'; } if(eval("document.donateForm.donation[2].checked") == true) { document.donateForm.price1.value='100.00'; document.donateForm.subtotal1.value='100.00'; document.donateForm.charge_total.value='100.00'; } if(eval("document.donateForm.donation[3].checked") == true) { document.donateForm.price1.value='200.00'; document.donateForm.subtotal1.value='200.00'; document.donateForm.charge_total.value='200.00'; } if(eval("document.donateForm.donation[4].checked") == true) { document.donateForm.price1.value='500.00'; document.donateForm.subtotal1.value='500.00'; document.donateForm.charge_total.value='500.00'; } if(eval("document.donateForm.donation[5].checked") == true) { document.donateForm.price1.value=document.donateForm.othervalue.value; document.donateForm.subtotal1.value=document.donateForm.othervalue.value; document.donateForm.charge_total.value=document.donateForm.othervalue.value; } } function fnDonationsubmitIt() { var chkamount; var chkfirstname; var chklastname; var chkaddress; var chkcity; var chkprov; var chkpostalcode; var chktel; var chkemail; chkamount = CheckField(document.donateForm.charge_total.value); chkfirstname = CheckField(document.donateForm.bill_first_name.value); chklastname = CheckField(document.donateForm.bill_last_name.value); chkaddress = CheckField(document.donateForm.bill_address_one.value); chkcity = CheckField(document.donateForm.bill_city.value); chkprov = CheckField(document.donateForm.bill_state_or_province.value); chkpostalcode = CheckField(document.donateForm.bill_postal_code.value); chktel = CheckField(document.donateForm.bill_phone.value); chkemail = CheckField(document.donateForm.email.value); if (chkamount && chkfirstname && chklastname && chkaddress && chkcity && chkprov && chkpostalcode && chktel && chkemail) { return true; } else { if (chkamount == false) { alert("Please select or enter your donation amount."); return false; } if (chkfirstname == false) { alert("Please fill in your first name."); document.donateForm.bill_first_name.focus(); return false; } if (chklastname == false) { alert("Please fill in your last name."); document.donateForm.bill_last_name.focus(); return false; } if (chkaddress == false) { alert("Please fill in your street address."); document.donateForm.bill_address_one.focus(); return false; } if (chkcity == false) { alert("Please fill in city."); document.donateForm.bill_city.focus(); return false; } if (chkprov == false) { alert("Please fill in Province."); document.donateForm.bill_state_or_province.focus(); return false; } if (chkpostalcode == false) { alert("Please fill in your postal code."); document.donateForm.bill_postal_code.focus(); return false; } if (chktel == false) { alert("Please fill in your home telephone number."); document.donateForm.bill_phone.focus(); return false; } if (chkemail == false) { alert("Please fill in your email address."); document.donateForm.email.focus(); return false; } } } function CheckFieldRadio(oRadio) { var bChecked = false; for ( var i = 0; i < oRadio.length; i++) { if(oRadio[i].checked) { bChecked = true; } } return bChecked; } function fnCDinnersubmitIt() { var chkamount; var chkfirstname; var chklastname; var chkaddress; var chkcity; var chkprov; var chkpostalcode; var chktel; var chkemail; var chkticket; chkamount = CheckField(document.donateForm.charge_total.value); chkfirstname = CheckField(document.donateForm.bill_first_name.value); chklastname = CheckField(document.donateForm.bill_last_name.value); chkaddress = CheckField(document.donateForm.bill_address_one.value); chkcity = CheckField(document.donateForm.bill_city.value); chkprov = CheckField(document.donateForm.bill_state_or_province.value); chkpostalcode = CheckField(document.donateForm.bill_postal_code.value); chktel = CheckField(document.donateForm.bill_phone.value); chkemail = CheckField(document.donateForm.email.value); chkticket = true;//CheckFieldRadio(document.donateForm.donation); not using if (chkamount && chkfirstname && chklastname && chkaddress && chkcity && chkprov && chkpostalcode && chktel && chkemail) { return true; } else { if (chkticket == false) { alert("Please select a ticket."); return false; } if (chkamount == false) { alert("Please select or enter your donation amount."); return false; } if (chkfirstname == false) { alert("Please fill in your first name."); document.donateForm.bill_first_name.focus(); return false; } if (chklastname == false) { alert("Please fill in your last name."); document.donateForm.bill_last_name.focus(); return false; } if (chkaddress == false) { alert("Please fill in your street address."); document.donateForm.bill_address_one.focus(); return false; } if (chkcity == false) { alert("Please fill in city."); document.donateForm.bill_city.focus(); return false; } if (chkprov == false) { alert("Please fill in Province."); document.donateForm.bill_state_or_province.focus(); return false; } if (chkpostalcode == false) { alert("Please fill in your postal code."); document.donateForm.bill_postal_code.focus(); return false; } if (chktel == false) { alert("Please fill in your home telephone number."); document.donateForm.bill_phone.focus(); return false; } if (chkemail == false) { alert("Please fill in your email address."); document.donateForm.email.focus(); return false; } } } function fnQuantityChange(nType) { document.donateForm.donation[0].checked = true; fnCDinnersetValue(nType); } function fnQuantityChange2() { document.donateForm.donation[0].checked = true; fnEDinnersetValue(); } function fnQuantityChange3() { document.donateForm.donation[0].checked = true; fnTDinnersetValue(); } function fnCDinnersetValue(nType) { var nTotal = 0; if(eval("document.donateForm.donation[0].checked") == true) { document.donateForm.price1.value='300.00'; document.donateForm.subtotal1.value='300.00'; document.donateForm.charge_total.value='300.00'; nTotal = 300.00; } if (document.donateForm.ticketquantity != undefined) { if (document.donateForm.ticketquantity.value > 1) { nTotal = nTotal * document.donateForm.ticketquantity.value; document.donateForm.quantity1.value = document.donateForm.ticketquantity.value; } } if(eval("document.donateForm.donation[1].checked") == true && nType == 2) { document.donateForm.price1.value='2500.00'; document.donateForm.subtotal1.value='2500.00'; document.donateForm.charge_total.value='2500.00'; nTotal = 2500.00; } else if(eval("document.donateForm.donation[1].checked") == true) { document.donateForm.price1.value='3000.00'; document.donateForm.subtotal1.value='3000.00'; document.donateForm.charge_total.value='3000.00'; nTotal = 3000.00; } if(eval("document.donateForm.donation2[0].checked") == true) { document.donateForm.price2.value='100.00'; document.donateForm.subtotal2.value='100.00'; nTotal = nTotal + 100.00; } if(eval("document.donateForm.donation2[1].checked") == true) { document.donateForm.price2.value='200.00'; document.donateForm.subtotal2.value='200.00'; nTotal = nTotal + 200.00; } if(eval("document.donateForm.donation2[2].checked") == true) { document.donateForm.price2.value='500.00'; document.donateForm.subtotal2.value='500.00'; nTotal = nTotal + 500.00; } if(eval("document.donateForm.donation2[3].checked") == true) { document.donateForm.price2.value='1000.00'; document.donateForm.subtotal2.value='1000.00'; nTotal = nTotal + 1000.00; } if(eval("document.donateForm.donation2[4].checked") == true) { document.donateForm.price2.value=document.donateForm.othervalue2.value; document.donateForm.subtotal2.value=document.donateForm.othervalue2.value; nTotal = nTotal + (document.donateForm.othervalue2.value * 1); } if (document.donateForm.donation3 != undefined) { //sponsor if(eval("document.donateForm.donation3[0].checked") == true) { document.donateForm.price3.value='20000.00'; document.donateForm.subtotal3.value='20000.00'; nTotal = nTotal + 20000.00; } if(eval("document.donateForm.donation3[1].checked") == true) { document.donateForm.price3.value='15000.00'; document.donateForm.subtotal3.value='15000.00'; nTotal = nTotal + 15000.00; } if(eval("document.donateForm.donation3[2].checked") == true) { document.donateForm.price3.value='1000.00'; document.donateForm.subtotal3.value='1000.00'; nTotal = nTotal + 1000.00; } if(eval("document.donateForm.donation3[3].checked") == true) { document.donateForm.price3.value='5000.00'; document.donateForm.subtotal3.value='5000.00'; nTotal = nTotal + 5000.00; } if(eval("document.donateForm.donation3[4].checked") == true) { document.donateForm.price3.value=document.donateForm.othervalue3.value; document.donateForm.subtotal3.value=document.donateForm.othervalue3.value; nTotal = nTotal + (document.donateForm.othervalue3.value * 1); } } nTotal = nTotal.toFixed(2); document.donateForm.charge_total.value=nTotal; } function fnEDinnersetValue() { var nTotal = 0; if(eval("document.donateForm.donation[0].checked") == true) { document.donateForm.price1.value='200.00'; document.donateForm.subtotal1.value='200.00'; document.donateForm.charge_total.value='200.00'; nTotal = 200.00; } if (document.donateForm.ticketquantity != undefined) { if (document.donateForm.ticketquantity.value > 1) { nTotal = nTotal * document.donateForm.ticketquantity.value; document.donateForm.quantity1.value = document.donateForm.ticketquantity.value; } } if(eval("document.donateForm.donation[1].checked") == true) { document.donateForm.price1.value='1600.00'; document.donateForm.subtotal1.value='1600.00'; document.donateForm.charge_total.value='1600.00'; nTotal = 1600.00; } if(eval("document.donateForm.donation[2].checked") == true) { document.donateForm.price1.value='2000.00'; document.donateForm.subtotal1.value='2000.00'; document.donateForm.charge_total.value='2000.00'; nTotal = 2000.00; } if(eval("document.donateForm.donation2[0].checked") == true) { document.donateForm.price2.value='100.00'; document.donateForm.subtotal2.value='100.00'; nTotal = nTotal + 100.00; } if(eval("document.donateForm.donation2[1].checked") == true) { document.donateForm.price2.value='200.00'; document.donateForm.subtotal2.value='200.00'; nTotal = nTotal + 200.00; } if(eval("document.donateForm.donation2[2].checked") == true) { document.donateForm.price2.value='500.00'; document.donateForm.subtotal2.value='500.00'; nTotal = nTotal + 500.00; } if(eval("document.donateForm.donation2[3].checked") == true) { document.donateForm.price2.value='1000.00'; document.donateForm.subtotal2.value='1000.00'; nTotal = nTotal + 1000.00; } if(eval("document.donateForm.donation2[4].checked") == true) { document.donateForm.price2.value=document.donateForm.othervalue.value; document.donateForm.subtotal2.value=document.donateForm.othervalue.value; nTotal = nTotal + (document.donateForm.othervalue.value * 1); } nTotal = nTotal.toFixed(2); document.donateForm.charge_total.value=nTotal; } function fnTDinnersetValue(nType) { var nTotal = 0; if(eval("document.donateForm.donation[0].checked") == true) { document.donateForm.price1.value='180.00'; document.donateForm.subtotal1.value='180.00'; document.donateForm.charge_total.value='180.00'; nTotal = 180.00; } if (document.donateForm.ticketquantity != undefined) { if (document.donateForm.ticketquantity.value > 1) { nTotal = nTotal * document.donateForm.ticketquantity.value; document.donateForm.quantity1.value = document.donateForm.ticketquantity.value; } } if(eval("document.donateForm.donation[1].checked") == true && nType == 2) { document.donateForm.price1.value='1800.00'; document.donateForm.subtotal1.value='1800.00'; document.donateForm.charge_total.value='1800.00'; nTotal = 1800.00; } else if(eval("document.donateForm.donation[1].checked") == true) { document.donateForm.price1.value='3000.00'; document.donateForm.subtotal1.value='3000.00'; document.donateForm.charge_total.value='3000.00'; nTotal = 3000.00; } if(eval("document.donateForm.donation2[0].checked") == true) { document.donateForm.price2.value='100.00'; document.donateForm.subtotal2.value='100.00'; nTotal = nTotal + 100.00; } if(eval("document.donateForm.donation2[1].checked") == true) { document.donateForm.price2.value='200.00'; document.donateForm.subtotal2.value='200.00'; nTotal = nTotal + 200.00; } if(eval("document.donateForm.donation2[2].checked") == true) { document.donateForm.price2.value='500.00'; document.donateForm.subtotal2.value='500.00'; nTotal = nTotal + 500.00; } if(eval("document.donateForm.donation2[3].checked") == true) { document.donateForm.price2.value='1000.00'; document.donateForm.subtotal2.value='1000.00'; nTotal = nTotal + 1000.00; } if(eval("document.donateForm.donation2[4].checked") == true) { document.donateForm.price2.value=document.donateForm.othervalue2.value; document.donateForm.subtotal2.value=document.donateForm.othervalue2.value; nTotal = nTotal + (document.donateForm.othervalue2.value * 1); } if (document.donateForm.donation3 != undefined) { //sponsor if(eval("document.donateForm.donation3[0].checked") == true) { document.donateForm.price3.value='20000.00'; document.donateForm.subtotal3.value='20000.00'; nTotal = nTotal + 20000.00; } if(eval("document.donateForm.donation3[1].checked") == true) { document.donateForm.price3.value='15000.00'; document.donateForm.subtotal3.value='15000.00'; nTotal = nTotal + 15000.00; } if(eval("document.donateForm.donation3[2].checked") == true) { document.donateForm.price3.value='1000.00'; document.donateForm.subtotal3.value='1000.00'; nTotal = nTotal + 1000.00; } if(eval("document.donateForm.donation3[3].checked") == true) { document.donateForm.price3.value='5000.00'; document.donateForm.subtotal3.value='5000.00'; nTotal = nTotal + 5000.00; } if(eval("document.donateForm.donation3[4].checked") == true) { document.donateForm.price3.value=document.donateForm.othervalue3.value; document.donateForm.subtotal3.value=document.donateForm.othervalue3.value; nTotal = nTotal + (document.donateForm.othervalue3.value * 1); } } nTotal = nTotal.toFixed(2); document.donateForm.charge_total.value=nTotal; } var nInfoBoxCurrent = 1; e = canResizeFlash();