function Dosubmit(f)
{
  f.submit();
}

function GotoHtml()
{
  sellectPoz = document.forms[0].S1.selectedIndex;
  if (sellectPoz == 1) {window.open('/info/BRAVO','_top');};
  if (sellectPoz == 2) {window.open('/info/PANDA','_top');};
  if (sellectPoz == 3) {window.open('/info/PANDA_4_x_4','_top');};
  if (sellectPoz == 4) {window.open('/info/LINEA','_top');};
  if (sellectPoz == 5) {window.open('/info/GRANDE_ACTUAL','_top');};
  if (sellectPoz == 6) {window.open('/info/ALBEA','_top');};
  if (sellectPoz == 7) {window.open('/info/CROMA','_top');};
  if (sellectPoz == 8) {window.open('/info/DOBLO_PANORAMA','_top');};
  if (sellectPoz == 9) {window.open('/info/DOBLO_CARGO','_top');};
  if (sellectPoz == 10) {window.open('/info/DUCATO','_top');};
  if (sellectPoz == 11) {window.open('/info/Sedici','_top');};
  if (sellectPoz == 12) {window.open('/info/500','_top');};
  window.status='';
}



function relPosX(which) 
{
 if(document.getElementById) {
   var elem = document.getElementById(which); 
   var pos = elem.offsetLeft;
   while (elem.offsetParent != null) {
      elem = elem.offsetParent;
      pos += elem.offsetLeft;
      if (elem.tagName == 'BODY') break;
   } 
 }
 return pos;
}


function relPosY(which) 
{
 if(document.getElementById) {
    var elem = document.getElementById(which);
    var pos = elem.offsetTop;
    while (elem.offsetParent != null) {
      elem = elem.offsetParent;
      pos += elem.offsetTop;
      if (elem.tagName == 'BODY') break;
    }
 }
    return pos;
}


function moveSub2(id) {
  if(document.getElementById) {
    left1=relPosX('sub'+id);
    top1=relPosY('sub'+id);
//    window.status='left1='+left1;
//    window.status+='top1='+top1;
    width1=document.getElementById('sub'+id).offsetWidth;
    height1=document.getElementById('sub'+id).offsetHeight;
    document.getElementById('ssub' + id).style.display = '';
    width_own=document.getElementById('ssub'+id).offsetWidth;
    if(left1<400) {
     left2=left1;
    } else {
     left2=left1+width1-width_own;
    }
//    top2=top1+height1+3;
    top2=106;
    document.getElementById('ssub' + id).style.top = top2;
    document.getElementById('ssub' + id).style.left = left2;
//    document.getElementById('ssub' + id).style.width = width1;
  }
 }


function change_mod(index)
{
  switch(index)
  {
    case 1: document.getElementById('gpic').style.backgroundImage = "url('img/500_.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_10";
            document.getElementById('link_2').href = "info/500";
            break;
    case 2: document.getElementById('gpic').style.backgroundImage = "url('img/panda.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_1";
            document.getElementById('link_2').href = "info/PANDA";
            break;
    case 3: document.getElementById('gpic').style.backgroundImage = "url('img/panda1.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_2";
            document.getElementById('link_2').href = "info/PANDA_4_x_4";
            break;
    case 4: document.getElementById('gpic').style.backgroundImage = "url('img/grand3.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_4";
            document.getElementById('link_2').href = "info/GRANDE_ACTUAL";
            break;
    case 5: document.getElementById('gpic').style.backgroundImage = "url('img/albea.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_5";
            document.getElementById('link_2').href = "info/ALBEA";
            break;
    case 6: document.getElementById('gpic').style.backgroundImage = "url('img/bravo1.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni";
            document.getElementById('link_2').href = "info/BRAVO";
            break;
    case 7: document.getElementById('gpic').style.backgroundImage = "url('img/sidici_.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_11";
            document.getElementById('link_2').href = "info/Sedici";
            break;
    case 8: document.getElementById('gpic').style.backgroundImage = "url('img/croma2.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_6";
            document.getElementById('link_2').href = "info/CROMA";
            break;
    case 9: document.getElementById('gpic').style.backgroundImage = "url('img/dolbo_p.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_7";
            document.getElementById('link_2').href = "info/DOBLO_PANORAMA";
            break;
    case 10: document.getElementById('gpic').style.backgroundImage = "url('img/cargo.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_8";
            document.getElementById('link_2').href = "info/DOBLO_CARGO";
            break;
    case 11: document.getElementById('gpic').style.backgroundImage = "url('img/duc.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_9";
            document.getElementById('link_2').href = "info/DUCATO";
            break;
    case 12: document.getElementById('gpic').style.backgroundImage = "url('img/linea.jpg')";
            document.getElementById('link_1').href = "info/komplektaciya_i_ceni_12";
            document.getElementById('link_2').href = "info/LINEA";
            break;
  }
}






