
var help = 0;

/* Begin Help Menu Popup */
function helpMenu(helpRequestURL){
  help = window.open(helpRequestURL,"helpWindow","toolbar=no,width=417,height=500,status=no,scrollbars=yes,resize=no,menubar=no");
}
// End Help Menu Popup

/* Begin Order Popup */
function orderPopup(helpRequestURL){
  help = window.open(helpRequestURL,"helpWindow","toolbar=no,width=680,height=600,status=no,scrollbars=yes,resize=no,menubar=yes");
}
// End Order Popup

/* Begin Close Help Menu */
function closeHelp() {
  if (help != 0 && !help.closed) {
      help.close();
    }
}
// End Close Help Menu

/* Begin Image Popup JavaScript */
var popup = 0;

function ImagePopup(helpRequestURL){
  popup = window.open(helpRequestURL,"Image","toolbar=no,width=570,height=530,status=no,scrollbars=yes,resizable=yes,menubar=no");
}

function closePopup() {
  if (popup != 0 && !popup.closed) {
      popup.close();
    }
}
// End Image Popup JavaScript


/* Begin Site Search */
var submitcount=0;

// BEGIN VALIDATION
/* This validates the keyword search form on the hunting side */
function isReadyBGSSF(form){
  
  if(form.SearchPhrase.value.length<=1){
    submitcount=0;
		alert("Please enter the word or words you'd like to search.");
		form.SearchPhrase.focus();
		return false;
	}
  
  if(form.SearchPhrase.value==' - Enter a phrase -'){
    submitcount=0;
		alert("Please enter the word or words you'd like to search.");
		form.SearchPhrase.focus();
		return false;
	}
  
  if(form.SearchSection.value==0){
    submitcount=0;
		alert("Please select a section of the Hunting side of our website you'd like to search.");
		form.SearchSection.focus();
		return false;
	}

if (submitcount == 0){
  submitcount++;
  return true;
  } else {
    //alert("This form has already been submitted. Thanks!");
    return false;
  }
}

/* This validates the keyword search form on the fishing side */
function isReadyBWSSF(form){
  
  if(form.SearchPhrase.value.length<=1){
    submitcount=0;
		alert("Please enter the word or words you'd like to search.");
		form.SearchPhrase.focus();
		return false;
	}
  
  if(form.SearchPhrase.value==' - Enter a phrase -'){
    submitcount=0;
		alert("Please enter the word or words you'd like to search.");
		form.SearchPhrase.focus();
		return false;
	}
  
  if(form.SearchSection.value==0){
    submitcount=0;
		alert("Please select a section of the Fishing side of our website you'd like to search.");
		form.SearchSection.focus();
		return false;
	}

if (submitcount == 0){
  submitcount++;
  return true;
  } else {
    //alert("This form has already been submitted. Thanks!");
    return false;
  }
}
/* End Site Search */
