HuntingNet.com Forums - View Single Post - Anyone use this bullet
View Single Post
Old 12-20-2005 | 09:19 AM
  #1  
Strutter
Spike
 
Joined: Feb 2003
Posts: 88
Likes: 0
From: Central KY USA
Default Anyone use this bullet













function decodeQuote(str)
{
var re;
var ret = str;
if(str != null){
if ((str.match("&")) != null){
re = new RegExp ('&', 'gi') ;
ret =str.replace(re, '&') ;
}
if ((str.match(""")) != null){
re = new RegExp ('"', 'gi') ;
ret =str.replace(re, '"') ;
}
}
return ret;
}
function lTrim(str)
{
if(str != null){
for (var i=0; str.charAt(i)==" "; i++);
return str.substring(i,str.length);
}
}
function rTrim(str)
{
if(str != null){
for (var i=str.length-1; str.charAt(i)==" "; i--);
return str.substring(0,i+1);
}
}
function trim(str)
{
if(str != null)return lTrim(rTrim(str));
}
function checkSelection()
{
if(!canContinue())
return false;
if(document.addtocart == null)
return;
form = 'document.addtocart.elements';
for(var i = 0; options.length > i; i++)
{
selectElement = eval(form + '["' + optionNames[i] + '"]');
if(selectElement == null)
return;
formElement = eval(selectElement).options[eval(selectElement).selectedIndex].text;
if(formElement == options[i])
{
alert("We're sorry, we need more information to perform this action. Please make sure you have selected an option for each of the available choices and then try again. Thank You.");
return false;
}
}
return true;
}
function buildProductOptions(optionSelected, optionSelectedIndex, optionValue, optionIndex)
{
if(document.addtocart == null)
return;
if(options == null)
return;
if(choices == null)
return;
if(choices.length k; k++)
{
selectElement = eval("document.addtocart.elements" + '["'+ optionNames[k] + '"]');
eval(selectElement).options.length = 1;
if(options[k] != null){
eval(selectElement).options[0].text = decodeQuote(options[k]);
}
}
return;
}
if(choices == null || choices.length j; j++)
{
re = new RegExp ('~', 'gi') ;
for(i=0; i i; i++)
{
select = new Array();
selectKeys = new Array();
selectPrices = new Array();
selectHold = new Array();
select[0] = options[i];
selectKeys[0] = " ";
selectHold[0] = " ";
var l = 1;
var j = 0;
var bAdded = false;
if(i == 0)
{
while(choices.length > j)
{
for(var k=0; select.length > k; k++)
{
bAdded = false;
if(eval("choices["+ j + "].option" + i ) == select[k])
{
bAdded = true;
break;
}
}
if(bAdded == false)
{
selectHold[l] = eval("choices[" + j + "].option" + i );
if (selectHold[l] != null) {
intIndex = selectHold[l].indexOf("amp;");
intAmp = selectHold[l].indexOf("&");
} else {
intAmp = -1;
}
if (intAmp >= 0) {
firstSub = selectHold[l].substring(0,intIndex);
incrementor = selectHold[l].indexOf(";");
incrementor = incrementor + 1;
secondSub = selectHold[l].substring(incrementor,selectHold[l].length);
newString = (firstSub + secondSub);
select[l] = newString;
selectKeys[l] = eval("choiceKeys[" + j + "].option" + i);
} else {
select[l] = eval("choices[" + j + "].option" + i );
selectKeys[l] = eval("choiceKeys[" + j + "].option" + i);
}
l++;
}
j++;
}
}
else
{
choicesMatched = choices;
choiceKeysMatched = choiceKeys;
skipMatch = false;
for(var j=0; j optionIndex && optionIndex != 0)
{
formElement = options[j];
}
else
{
selectElement = eval(form + '["' + optionNames[j] + '"]');
formElement = eval(selectElement).options[eval(selectElement).selectedIndex].text;
formElement = trim(formElement);
}
if(formElement == options[j])
{
skipMatch = true;
}
else
{
skipMatch = false;
}
var m = 0;
var n = 0;
showChoices = new Array();
showChoiceKeys = new Array();
while(choicesMatched.length > m)
{
if(((trim(eval("choicesMatched[" + m + "].option" + j))) || skipMatch) != null){
if(trim(formElement) == decodeQuote(trim(eval("choicesMatched[" + m + "].option" + j))) || skipMatch)
{
showChoices[n] = choicesMatched[m];
showChoiceKeys[n] = choiceKeysMatched[m];
n++;
}
m++;
}
}
choicesMatched = showChoices;
choiceKeysMatched = showChoiceKeys;
}
m = 0;
while(choicesMatched.length > m)
{
bAdded = false;
for(var k=0; select.length > k; k++)
{
if(eval("choicesMatched["+ m + "]" + ".option" + i) == select[k])
{
bAdded = true;
break;
}
}
if(bAdded == false)
{
select[l] = eval("choicesMatched[" + m + "]" + ".option" + i);
selectKeys[l] = eval("choiceKeysMatched[" + m + "]" + ".option" + i);
l++;
}
m++;
}
}
for(var j=0; j k; k++)
{
if(select[k] != null){
eval(selectElement).options[k].text = decodeQuote(select[k]);
}
eval(selectElement).options[k].value = selectKeys[k];
if(trim(eval(selectElement).options[k].text).length == trim(curSelectionText).length)
{
if(trim(eval(selectElement).options[k].text) == trim(curSelectionText))
{
eval(selectElement).options[k].selected = true;
bEarlierSelectionFound = true;
}
}
}
if((bEarlierSelectionFound == false) && (optionSelected != null) && (i > optionIndex))
{
selectElement.options[0].selected = true;
}
}
}
}
























Hornady Great Plains Bullets



Item:
IF-210219

Price:
$7.99 - $8.99
Please use the chart below to find your product and add it to cart

SOME RESTRICTIONS MAY APPLY








buildProductOptions()








More Product Information






[*]Compare Black Powder Bullets






Anyone have any luck with these type bullets? Not sure if pic will show but they are Hornady 385 gr. Great Plains bullets.



Strutter is offline  
Reply