function fnArticleArchiveDisplay(nPageID) { szYear = szArticleSearchForm.szArchiveDisplayYear.options[szArticleSearchForm.szArchiveDisplayYear.selectedIndex].value; szMonth = szArticleSearchForm.szArchiveDisplayMonth.options[szArticleSearchForm.szArchiveDisplayMonth.selectedIndex].value; $URL = "index.asp?p=" + nPageID + "&szArticleButtonCommand=Display%20Archive&szArchiveDisplayYear=" + szYear + "&szArchiveDisplayMonth=" + szMonth; document.location = $URL; } function fnArticleArchiveSearch(nPageID) { szSearchWord = szArticleSearchForm.szArticleSearchWord.value; $URL = "index.asp?p=" + nPageID + "&szArticleButtonCommand=Go&szArticleSearchWord=" + szSearchWord; document.location = $URL; } function fnPhotoArchiveDisplay(nPageID) { szYear = szMemberPhotoGallerySearchForm.szGalleryDisplayYear.options[szMemberPhotoGallerySearchForm.szGalleryDisplayYear.selectedIndex].value; szMonth = szMemberPhotoGallerySearchForm.szGalleryDisplayMonth.options[szMemberPhotoGallerySearchForm.szGalleryDisplayMonth.selectedIndex].value; $URL = "index.asp?p=" + nPageID + "&szMemberPhotoGalleryButtonCommand=Display%20Gallery&szGalleryDisplayYear=" + szYear + "&szGalleryDisplayMonth=" + szMonth; document.location = $URL; } function fnPhotoArchiveSearch(nPageID) { szSearchWord = szMemberPhotoGallerySearchForm.szMemberPhotoGallerySearchWord.value; $URL = "index.asp?p=" + nPageID + "&szMemberPhotoGalleryButtonCommand=Go&szMemberPhotoGallerySearchWord=" + szSearchWord; document.location = $URL; } function fnFlyArchiveDisplay(nPageID) { szYear = szMemberFlyGallerySearchForm.szGalleryDisplayYear.options[szMemberFlyGallerySearchForm.szGalleryDisplayYear.selectedIndex].value; szMonth = szMemberFlyGallerySearchForm.szGalleryDisplayMonth.options[szMemberFlyGallerySearchForm.szGalleryDisplayMonth.selectedIndex].value; $URL = "index.asp?p=" + nPageID + "&szMemberFlyGalleryButtonCommand=Display%20Gallery&szGalleryDisplayYear=" + szYear + "&szGalleryDisplayMonth=" + szMonth; document.location = $URL; } function fnFlyArchiveSearch(nPageID) { szSearchWord = szMemberFlyGallerySearchForm.szMemberFlyGallerySearchWord.value; $URL = "index.asp?p=" + nPageID + "&szMemberFlyGalleryButtonCommand=Go&szMemberFlyGallerySearchWord=" + szSearchWord; 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; } } } function IsNumeric(vTestValue) { // put the TEST value into a string object variable var sField = new String(Trim(vTestValue)); // check for a length of 0 - if so, return false if(sField.length==0) { return false; } else if(sField.length==1 && (sField.charAt(0) == '.' || sField.charAt(0) == ',' || (sField.charAt(0) == '-'))) { return false; } // loop through each character of the string for(var x=0; x < sField.length; x++) { // if the character is < 0 or > 9, return false (not a number) if((sField.charAt(x) >= '0' && sField.charAt(x) <= '9') || sField.charAt(x) == '.' || sField.charAt(x) == ',' || (sField.charAt(x) == '-' && x==0)) { /* do nothing */ } else { return false; } } // made it through the loop - we have a number return true; } 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; } oNewWindow=window.open("/player.asp?szVid=" + 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) }