var arProducts = [
  ['M13 CF 4<br>Corner Frame','M13CF','1-1/2"=1`-0"','M13CF4','M0133000','Weight (concrete) ±12'],
  ['M13 C 11-5/8<br>Corner','M13C','1-1/2"=1`-0"','M13C11.6','M0132600','Weight (concrete) ±20'],
  ['M13 S 23-5/8<br>Stretcher','M13S','1-1/2"=1`-0"','M13S23.6','M0135800','Weight (concrete) ±17'],
  ['M13 T 23-5/8<br>Terminal','M13T','1-1/2"=1`-0"','M13T23.6','M0137000','Weight (concrete) ±18'],
  ['M13 TD 29-5/8<br>Terminal Double','M13TD','1-1/2"=1`-0"','M13TD29.6','M0138800','Weight (concrete) ±37'],
  ['M13 Rad.34<br>Radial','M13Rad','1-1/2"=1`-0"','M13RAD.34','M13Rad34','Weight (concrete) ±20'],
  ['M13 Rad.n33<br>Intrados(concave)','M13Radn','1-1/2"=1`-0"','M13RAD.N33','M13Rad.n33','Weight (concrete) ±20'],
  ['M13 Rad.t 55-1/2<br>Extrado (convex)','M13Radt','1-1/2"=1`-0"','M13RAD.T55-1/2','M13Radt55-1-2','Weight (concrete) ±20'],
  ['M40 R 26-1/8 R<br>Return Right','M40RR','1-1/2"=1`-0"','M40R26.1R','M0402210','Weight (concrete) ±32'],
  ['M40 R 26-1/8 L<br>Return Left','M40RL','1-1/2"=1`-0"','M40R26.1L','M0402200','Weight (concrete) ±32'],
  ['M40 RD 16-3/8<br>Return Double','M40RD','1-1/2"=1`-0"','M40RD16.3','M0404400','Weight (concrete) ±24']
]

function getParameter(str, name) {
  var res = "";
  if (str.indexOf("?")!=-1) {
    str = str.substring(str.indexOf("?")+1, str.length);
    if (str.indexOf(name)!=-1) {
      if (str.indexOf("&"+name, str.indexOf(name)+name.length)!=-1)
        res = str.substring(str.indexOf("&"+name)+name.length+1, str.indexOf("&"+name))
   	  else
        res = str.substring(str.indexOf(name)+name.length+1, str.length);
      if (res.indexOf("&")!=-1)
        res = res.substring(0,res.indexOf("&"));
   	}
  }
  return res;
}

