//=====================================================================||
//       NOP Design JavaScript Shopping Cart Language Pack             ||
//                                                                     ||
//                      Language Strings                               ||
//                     ------------------                              ||
// Strings displayed to end users, in language specific encoding.      ||
// only modify these strings if you wish to change language specific   ||
// wording for your site.  If you add a new language, please send it   ||
// back to NOP Design (http://www.nopdesign.com/forum) so we can add   ||
// it to the distribution.                                             ||
//---------------------------------------------------------------------||
strSorry  = "I'm Sorry, your basket is full, please proceed to checkout.";
strAdded  = " added to your shopping basket.";
strRemove = "Click 'Ok' to remove this product from your shopping basket.";
strILabel = "id";
strDLabel = "name/description";
strQLabel = "qty";
strPLabel = "price";
strSLabel = "shipping";
strRLabel = "remove from basket";
strRButton= "remove";
strSUB    = "subtotal";
strSHIP   = "shipping";
strTAX    = "TAX";
strTOT    = "total";
strErrQty = "Invalid quantity.";
strNewQty = 'Please enter new quantity:';

Language = 'en';
bLanguageDefined = true;

//pop up windows for products code
// -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
function AddOneOfManyToCart(formToUpdate) 
{ 
   selectedObj = formToUpdate.PRODUCTSELECTOR[formToUpdate.PRODUCTSELECTOR.selectedIndex]; 

   nameVal = selectedObj.getAttribute("name"); 
   if (nameVal == "NOTHING") { 
      alert('Please select a product'); 
      return false; 
   } 

   formToUpdate.NAME.value = nameVal; 

   costVal = selectedObj.getAttribute("cost"); 
   formToUpdate.PRICE.value = costVal; 

   id_numVal = selectedObj.getAttribute("id_num"); 
   formToUpdate.ID_NUM.value = id_numVal; 

   switch( formToUpdate.PRODUCTSELECTOR[formToUpdate.PRODUCTSELECTOR.selectedIndex].value ) { 
   } 
   AddToCart(formToUpdate); 
} 
//-->

//function to refresh current page basket without going to the cart
function refresh()
{
    window.location.reload( false );
}
//pop up code for size chart
function popup(image,width,height) 
{ 
window.open(image,'popup','width='+width+',height='+height+''); 
}
