function dyniframesize(iframename) {
  var pTar = null;
  if (document.getElementById){
    pTar = document.getElementById(iframename);
  }
  else{
    eval('pTar = ' + iframename + ';');
  }
  if (pTar && !window.opera){
    //begin resizing iframe
    pTar.style.display="block"
    
    if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){
      //ns6 syntax
      pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight; 
    }
    else if (pTar.Document && pTar.Document.body.scrollHeight){
      //ie5+ syntax
      pTar.height = pTar.Document.body.scrollHeight;
    }
  }
}
function toSeries(){
var url= document.forms["serces"].elements["productid"].value;
if (oldtypeid!=url&&url!=''){
location.reload('dataseries.asp?sid='+url);
}
}
function toSeriesPrice(){
var url= document.forms["serces"].elements["productid"].value;
if (oldtypeid!=url&&url!=''){
location.reload('dataseries_price.asp?sid='+url);
}
}

function show_intro(pre, pree, n, select_n, css) {
    for (i = 1; i <= n; i++) {
        var intro = document.getElementById(pre + i);
        var cha = document.getElementById(pree + i);
        intro.style.display = "none";
        cha.className = css + "2";
        if (i == select_n) {
            intro.style.display = "block";
            cha.className = css + "1";
        }
    }
}