﻿function setIframeHeight(iframeName) {
  var iframeEl = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null;
  if (iframeEl) {
    iframeEl.style.height = "auto";
    var h = alertSize();
    var new_h = (h-148);
    iframeEl.style.height = new_h + "px";
  }
}

function alertSize() {
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    myHeight = document.body.clientHeight;
  }
  return myHeight;
}

function lm_selectprice(intLmId) {
    var pricelist = document.getElementsByClassName('pricelist');
    for(i=0; i<pricelist[0].options.length; i++) {
        if(pricelist[0].options[i].value == intLmId) {
            pricelist[0].options[i].selected = true;
        }
    }
}
