function enviaz8tf(form)
{

var ALERT_TITLE = "Amaszonas";
var ALERT_BUTTON_TEXT = "OK";

// over-ride the alert method only if this a newer browser.
// Older browser will see standard alerts
if(document.getElementById) {
	window.alert = function(txt) {
		createCustomAlert(txt);
	}
}

function createCustomAlert(txt) {
	// shortcut reference to the document object
	d = document;

	// if the modalContainer object already exists in the DOM, bail out.
	if(d.getElementById("modalContainer")) return;

	// create the modalContainer div as a child of the BODY element
	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainer";
	 // make sure its as tall as it needs to be to overlay all the content on the page
	mObj.style.height = document.documentElement.scrollHeight + "px";

	// create the DIV that will be the alert 
	alertObj = mObj.appendChild(d.createElement("div"));
	alertObj.id = "alertBox";
	// MSIE doesnt treat position:fixed correctly, so this compensates for positioning the alert
//	if(d.all && !window.opera) 
alertObj.style.top = document.documentElement.scrollTop/2 +  alertObj.offsetTop*3.5 + "px";
	// center the alert box  - alertObj.offsetWidth
	alertObj.style.left = d.documentElement.scrollWidth /2 - alertObj.offsetWidth/4 + "px";

	// create an H1 element as the title bar
	h1 = alertObj.appendChild(d.createElement("h1"));
	h1.appendChild(d.createTextNode(ALERT_TITLE));

	// create a paragraph element to contain the txt argument
	msg = alertObj.appendChild(d.createElement("p"));
	msg.appendChild(d.createTextNode(txt));

	// create an anchor element to use as the confirmation button.
	btn = alertObj.appendChild(d.createElement("a"));
	btn.id = "closeBtn";
	btn.appendChild(d.createTextNode(ALERT_BUTTON_TEXT));
	btn.href = "#";
	// set up the onclick event to remove the alert when the anchor is clicked
	btn.onclick = function() { removeCustomAlert();return false; }

	
}

// removes the custom alert from the DOM
function removeCustomAlert() {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
}
//     1 lpb - 2srz - 3cbb - 4tdd - 5cij - 6rib - 7gya - 8rbq - 9srj - 10yacuiba-tarija
var px=new Array();
for ( iy = 0; iy<35; iy ++ ) px[iy] = new Array(); 
px[1][2]=806; px[1][3]=1105; px[1][4]=535; px[1][5]=1265; px[1][6]=1235; px[1][7]=1235; px[1][8]=525; px[1][9]=641; px[1][10]=1830; 
px[2][1]=806; px[2][3]=1105; px[2][4]=535; px[2][5]=1265; px[2][6]=1235; px[2][7]=1235; px[2][8]=1060; px[2][9]=855; px[2][10]=761; px[2][11]=661; 
px[3][2]=1105; px[3][1]=1105; px[3][4]=570; px[3][5]=1265; px[3][6]=1271; px[3][7]=1271; px[3][8]=1095; px[3][9]=890; px[3][10]=1866; 
px[4][2]=535; px[4][3]=570; px[4][1]=535; px[4][5]=835; px[4][6]=700; px[4][7]=700; px[4][8]=525; px[4][9]=320; px[4][10]=1295; px[4][11]=1196; 
px[5][2]=1265; px[5][3]=1265; px[5][4]=835; px[5][1]=1265; px[5][6]=1182; px[5][7]=1182; px[5][8]=1360; px[5][9]=1155; px[5][10]=2050; px[5][11]=1731; 
px[6][2]=1235; px[6][3]=1271; px[6][4]=700; px[6][5]=1182; px[6][1]=1235; px[6][8]=1225; px[6][9]=1020; px[6][10]=1995; px[6][11]=1833; 
px[7][2]=1235; px[7][3]=1271; px[7][4]=700; px[7][5]=1182; px[7][1]=1235; px[7][8]=1225; px[7][9]=1020; px[7][10]=1995; px[7][11]=1833; 
px[8][2]=1060; px[8][3]=1095; px[8][4]=525; px[8][5]=1360; px[8][6]=1225; px[8][7]=1225; px[8][1]=525; px[8][9]=150; px[8][10]=1820; px[8][11]=1721; 
px[9][2]=855; px[9][3]=890; px[9][4]=320; px[9][5]=1155; px[9][6]=1020; px[9][7]=1020; px[9][8]=150; px[9][1]=641; px[9][10]=1615; px[9][11]=1516; 
px[10][2]=761; px[10][3]=1866; px[10][4]=1295; px[10][5]=2050; px[10][6]=1995; px[10][7]=1995; px[10][8]=1820; px[10][9]=1615; px[10][1]=1830; px[10][11]=1462; 
px[11][2]=661; px[11][4]=1196; px[11][5]=1731; px[11][6]=1833; px[11][7]=1833; px[11][8]=1721; px[11][9]=1516;

px[1][22]=1612; px[1][23]=2209; px[1][24]=1072; px[1][25]=2529; px[1][26]=2469; px[1][27]=2469; px[1][28]=1050; px[1][29]=1281; px[1][30]=3660; 
px[2][21]=1612; px[2][23]=2209; px[2][24]=1072; px[2][25]=2529; px[2][26]=2469; px[2][27]=2469; px[2][28]=2122; px[2][29]=1709; px[2][30]=1072; px[2][31]=1321; 
px[3][22]=2209; px[3][21]=2209; px[3][24]=1141; px[3][25]=2529; px[3][26]=2540; px[3][27]=2540; px[3][28]=2191; px[3][29]=1781; px[3][30]=1141; 
px[4][22]=1072; px[4][23]=1141; px[4][21]=1072; px[4][25]=1671; px[4][26]=1400; px[4][27]=1400; px[4][28]=1050; px[4][29]=641; px[4][30]=2591; px[4][31]=2393; 
px[5][22]=2529; px[5][23]=2529; px[5][24]=1671; px[5][21]=2529; px[5][26]=2364; px[5][27]=2364; px[5][28]=2722; px[5][29]=2309; px[5][30]=4100; px[5][31]=3462; 
px[6][22]=2469; px[6][23]=2540; px[6][24]=1400; px[6][25]=2364; px[6][21]=2469; px[6][28]=2450; px[6][29]=2040; px[6][30]=3991; px[6][31]=3667; 
px[7][22]=2469; px[7][23]=2540; px[7][24]=1400; px[7][25]=2364; px[7][21]=2469; px[7][28]=2450; px[7][29]=2040; px[7][30]=3991; px[7][31]=3667; 
px[8][22]=2122; px[8][23]=2191; px[8][24]=1050; px[8][25]=2722; px[8][26]=2450; px[8][27]=2450; px[8][21]=1050; px[8][29]=300; px[8][30]=3641; px[8][31]=3443; 
px[9][22]=1709; px[9][23]=1781; px[9][24]=641; px[9][25]=2309; px[9][26]=2040; px[9][27]=2040; px[9][28]=300; px[9][21]=1281; px[9][30]=3230; px[9][31]=3033; 
px[10][22]=1521; px[10][23]=3731; px[10][24]=2591; px[10][25]=4100; px[10][26]=3991; px[10][27]=3991; px[10][28]=3641; px[10][29]=3230; px[10][21]=3660; px[10][31]=2924; 
px[11][22]=1321; px[11][24]=2393; px[11][25]=3462; px[11][26]=3667; px[11][27]=3667; px[11][28]=3443; px[11][29]=3033;
var costo;
var rt;
var gt;
var lista1= form.origenz;
var eleg1=lista1.options[lista1.selectedIndex];
var lista2= form.destinoz;
var eleg2=lista2.options[lista2.selectedIndex];
if (eleg1.value==eleg2.value) 
{alert("S’il vous plaît choisissez une destination... ");}
     else 
     if   (((eleg1.value==6) && (eleg2.value==7)) ||  ((eleg2.value==6) && (eleg1.value==7)))
	{alert("Non disponible... ");}
                  else {
	costo=px[eleg1.value][eleg2.value];
	if (eleg2.value==10) gt=30;
	else 
	if (eleg2.value==11) gt=31;
		else 
		gt=2+eleg2.value;
	rt=px[eleg1.value][gt];
	alert("Un moyen est Bs "+costo+".- . . . . Aller-retour est Bs "+ rt+".-");
	       }
}


function enviaz8te(form)
{
//     1 lpb - 2srz - 3cbb - 4tdd - 5cij - 6rib - 7gya - 8rbq - 9srj - 10sta ana
var ALERT_TITLE = "Amaszonas";
var ALERT_BUTTON_TEXT = "OK";

// over-ride the alert method only if this a newer browser.
// Older browser will see standard alerts
if(document.getElementById) {
	window.alert = function(txt) {
		createCustomAlert(txt);
	}
}

function createCustomAlert(txt) {
	// shortcut reference to the document object
	d = document;

	// if the modalContainer object already exists in the DOM, bail out.
	if(d.getElementById("modalContainer")) return;

	// create the modalContainer div as a child of the BODY element
	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainer";
	 // make sure its as tall as it needs to be to overlay all the content on the page
	mObj.style.height = document.documentElement.scrollHeight + "px";

	// create the DIV that will be the alert 
	alertObj = mObj.appendChild(d.createElement("div"));
	alertObj.id = "alertBox";
	// MSIE doesnt treat position:fixed correctly, so this compensates for positioning the alert
//	if(d.all && !window.opera) 
alertObj.style.top = document.documentElement.scrollTop/2 +  alertObj.offsetTop*3.5 + "px";
	// center the alert box  - alertObj.offsetWidth
	alertObj.style.left = d.documentElement.scrollWidth /2 - alertObj.offsetWidth/4 + "px";

	// create an H1 element as the title bar
	h1 = alertObj.appendChild(d.createElement("h1"));
	h1.appendChild(d.createTextNode(ALERT_TITLE));

	// create a paragraph element to contain the txt argument
	msg = alertObj.appendChild(d.createElement("p"));
	msg.appendChild(d.createTextNode(txt));

	// create an anchor element to use as the confirmation button.
	btn = alertObj.appendChild(d.createElement("a"));
	btn.id = "closeBtn";
	btn.appendChild(d.createTextNode(ALERT_BUTTON_TEXT));
	btn.href = "#";
	// set up the onclick event to remove the alert when the anchor is clicked
	btn.onclick = function() { removeCustomAlert();return false; }

	
}

// removes the custom alert from the DOM
function removeCustomAlert() {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
}
var px=new Array();
for ( iy = 0; iy<35; iy ++ ) px[iy] = new Array(); 
px[1][2]=806; px[1][3]=1105; px[1][4]=535; px[1][5]=1265; px[1][6]=1235; px[1][7]=1235; px[1][8]=525; px[1][9]=641; px[1][10]=1830; 
px[2][1]=806; px[2][3]=1105; px[2][4]=535; px[2][5]=1265; px[2][6]=1235; px[2][7]=1235; px[2][8]=1060; px[2][9]=855; px[2][10]=761; px[2][11]=661; 
px[3][2]=1105; px[3][1]=1105; px[3][4]=570; px[3][5]=1265; px[3][6]=1271; px[3][7]=1271; px[3][8]=1095; px[3][9]=890; px[3][10]=1866; 
px[4][2]=535; px[4][3]=570; px[4][1]=535; px[4][5]=835; px[4][6]=700; px[4][7]=700; px[4][8]=525; px[4][9]=320; px[4][10]=1295; px[4][11]=1196; 
px[5][2]=1265; px[5][3]=1265; px[5][4]=835; px[5][1]=1265; px[5][6]=1182; px[5][7]=1182; px[5][8]=1360; px[5][9]=1155; px[5][10]=2050; px[5][11]=1731; 
px[6][2]=1235; px[6][3]=1271; px[6][4]=700; px[6][5]=1182; px[6][1]=1235; px[6][8]=1225; px[6][9]=1020; px[6][10]=1995; px[6][11]=1833; 
px[7][2]=1235; px[7][3]=1271; px[7][4]=700; px[7][5]=1182; px[7][1]=1235; px[7][8]=1225; px[7][9]=1020; px[7][10]=1995; px[7][11]=1833; 
px[8][2]=1060; px[8][3]=1095; px[8][4]=525; px[8][5]=1360; px[8][6]=1225; px[8][7]=1225; px[8][1]=525; px[8][9]=150; px[8][10]=1820; px[8][11]=1721; 
px[9][2]=855; px[9][3]=890; px[9][4]=320; px[9][5]=1155; px[9][6]=1020; px[9][7]=1020; px[9][8]=150; px[9][1]=641; px[9][10]=1615; px[9][11]=1516; 
px[10][2]=761; px[10][3]=1866; px[10][4]=1295; px[10][5]=2050; px[10][6]=1995; px[10][7]=1995; px[10][8]=1820; px[10][9]=1615; px[10][1]=1830; px[10][11]=1462; 
px[11][2]=661; px[11][4]=1196; px[11][5]=1731; px[11][6]=1833; px[11][7]=1833; px[11][8]=1721; px[11][9]=1516;

px[1][22]=1612; px[1][23]=2209; px[1][24]=1072; px[1][25]=2529; px[1][26]=2469; px[1][27]=2469; px[1][28]=1050; px[1][29]=1281; px[1][30]=3660; 
px[2][21]=1612; px[2][23]=2209; px[2][24]=1072; px[2][25]=2529; px[2][26]=2469; px[2][27]=2469; px[2][28]=2122; px[2][29]=1709; px[2][30]=1072; px[2][31]=1321; 
px[3][22]=2209; px[3][21]=2209; px[3][24]=1141; px[3][25]=2529; px[3][26]=2540; px[3][27]=2540; px[3][28]=2191; px[3][29]=1781; px[3][30]=1141; 
px[4][22]=1072; px[4][23]=1141; px[4][21]=1072; px[4][25]=1671; px[4][26]=1400; px[4][27]=1400; px[4][28]=1050; px[4][29]=641; px[4][30]=2591; px[4][31]=2393; 
px[5][22]=2529; px[5][23]=2529; px[5][24]=1671; px[5][21]=2529; px[5][26]=2364; px[5][27]=2364; px[5][28]=2722; px[5][29]=2309; px[5][30]=4100; px[5][31]=3462; 
px[6][22]=2469; px[6][23]=2540; px[6][24]=1400; px[6][25]=2364; px[6][21]=2469; px[6][28]=2450; px[6][29]=2040; px[6][30]=3991; px[6][31]=3667; 
px[7][22]=2469; px[7][23]=2540; px[7][24]=1400; px[7][25]=2364; px[7][21]=2469; px[7][28]=2450; px[7][29]=2040; px[7][30]=3991; px[7][31]=3667; 
px[8][22]=2122; px[8][23]=2191; px[8][24]=1050; px[8][25]=2722; px[8][26]=2450; px[8][27]=2450; px[8][21]=1050; px[8][29]=300; px[8][30]=3641; px[8][31]=3443; 
px[9][22]=1709; px[9][23]=1781; px[9][24]=641; px[9][25]=2309; px[9][26]=2040; px[9][27]=2040; px[9][28]=300; px[9][21]=1281; px[9][30]=3230; px[9][31]=3033; 
px[10][22]=1521; px[10][23]=3731; px[10][24]=2591; px[10][25]=4100; px[10][26]=3991; px[10][27]=3991; px[10][28]=3641; px[10][29]=3230; px[10][21]=3660; px[10][31]=2924; 
px[11][22]=1321; px[11][24]=2393; px[11][25]=3462; px[11][26]=3667; px[11][27]=3667; px[11][28]=3443; px[11][29]=3033;
var costo;
var rt;
var gt;
var lista1= form.origenz;
var eleg1=lista1.options[lista1.selectedIndex];
var lista2= form.destinoz;
var eleg2=lista2.options[lista2.selectedIndex];
if (eleg1.value==eleg2.value) 
{alert("Por favor cambiar destino... ");}
     else 
     if   (((eleg1.value==6) && (eleg2.value==7)) ||  ((eleg2.value==6) && (eleg1.value==7)))
	{alert("Vuelo no disponible... ");}
                  else {
	costo=px[eleg1.value][eleg2.value];
	if (eleg2.value==10) gt=30;
	else 
	if (eleg2.value==11) gt=31;
		else 
		gt=2+eleg2.value;
	rt=px[eleg1.value][gt];
	alert("Solo Ida Bs "+costo+".- . . . . Ida y Vuelta Bs "+ rt+".-");
	       }
}

function enviaz8ti(form)
{
//     1 lpb - 2srz - 3cbb - 4tdd - 5cij - 6rib - 7gya - 8rbq - 9srj - 10sta ana
var ALERT_TITLE = "Amaszonas";
var ALERT_BUTTON_TEXT = "OK";

// over-ride the alert method only if this a newer browser.
// Older browser will see standard alerts
if(document.getElementById) {
	window.alert = function(txt) {
		createCustomAlert(txt);
	}
}

function createCustomAlert(txt) {
	// shortcut reference to the document object
	d = document;

	// if the modalContainer object already exists in the DOM, bail out.
	if(d.getElementById("modalContainer")) return;

	// create the modalContainer div as a child of the BODY element
	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainer";
	 // make sure its as tall as it needs to be to overlay all the content on the page
	mObj.style.height = document.documentElement.scrollHeight + "px";

	// create the DIV that will be the alert 
	alertObj = mObj.appendChild(d.createElement("div"));
	alertObj.id = "alertBox";
	// MSIE doesnt treat position:fixed correctly, so this compensates for positioning the alert
//	if(d.all && !window.opera) 
alertObj.style.top = document.documentElement.scrollTop/2 +  alertObj.offsetTop*3.5 + "px";
	// center the alert box  - alertObj.offsetWidth
	alertObj.style.left = d.documentElement.scrollWidth /2 - alertObj.offsetWidth/4 + "px";

	// create an H1 element as the title bar
	h1 = alertObj.appendChild(d.createElement("h1"));
	h1.appendChild(d.createTextNode(ALERT_TITLE));

	// create a paragraph element to contain the txt argument
	msg = alertObj.appendChild(d.createElement("p"));
	msg.appendChild(d.createTextNode(txt));

	// create an anchor element to use as the confirmation button.
	btn = alertObj.appendChild(d.createElement("a"));
	btn.id = "closeBtn";
	btn.appendChild(d.createTextNode(ALERT_BUTTON_TEXT));
	btn.href = "#";
	// set up the onclick event to remove the alert when the anchor is clicked
	btn.onclick = function() { removeCustomAlert();return false; }

	
}

// removes the custom alert from the DOM
function removeCustomAlert() {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
}
var px=new Array();
for ( iy = 0; iy<35; iy ++ ) px[iy] = new Array(); 
px[1][2]=806; px[1][3]=1105; px[1][4]=535; px[1][5]=1265; px[1][6]=1235; px[1][7]=1235; px[1][8]=525; px[1][9]=641; px[1][10]=1830; 
px[2][1]=806; px[2][3]=1105; px[2][4]=535; px[2][5]=1265; px[2][6]=1235; px[2][7]=1235; px[2][8]=1060; px[2][9]=855; px[2][10]=761; px[2][11]=661; 
px[3][2]=1105; px[3][1]=1105; px[3][4]=570; px[3][5]=1265; px[3][6]=1271; px[3][7]=1271; px[3][8]=1095; px[3][9]=890; px[3][10]=1866; 
px[4][2]=535; px[4][3]=570; px[4][1]=535; px[4][5]=835; px[4][6]=700; px[4][7]=700; px[4][8]=525; px[4][9]=320; px[4][10]=1295; px[4][11]=1196; 
px[5][2]=1265; px[5][3]=1265; px[5][4]=835; px[5][1]=1265; px[5][6]=1182; px[5][7]=1182; px[5][8]=1360; px[5][9]=1155; px[5][10]=2050; px[5][11]=1731; 
px[6][2]=1235; px[6][3]=1271; px[6][4]=700; px[6][5]=1182; px[6][1]=1235; px[6][8]=1225; px[6][9]=1020; px[6][10]=1995; px[6][11]=1833; 
px[7][2]=1235; px[7][3]=1271; px[7][4]=700; px[7][5]=1182; px[7][1]=1235; px[7][8]=1225; px[7][9]=1020; px[7][10]=1995; px[7][11]=1833; 
px[8][2]=1060; px[8][3]=1095; px[8][4]=525; px[8][5]=1360; px[8][6]=1225; px[8][7]=1225; px[8][1]=525; px[8][9]=150; px[8][10]=1820; px[8][11]=1721; 
px[9][2]=855; px[9][3]=890; px[9][4]=320; px[9][5]=1155; px[9][6]=1020; px[9][7]=1020; px[9][8]=150; px[9][1]=641; px[9][10]=1615; px[9][11]=1516; 
px[10][2]=761; px[10][3]=1866; px[10][4]=1295; px[10][5]=2050; px[10][6]=1995; px[10][7]=1995; px[10][8]=1820; px[10][9]=1615; px[10][1]=1830; px[10][11]=1462; 
px[11][2]=661; px[11][4]=1196; px[11][5]=1731; px[11][6]=1833; px[11][7]=1833; px[11][8]=1721; px[11][9]=1516;

px[1][22]=1612; px[1][23]=2209; px[1][24]=1072; px[1][25]=2529; px[1][26]=2469; px[1][27]=2469; px[1][28]=1050; px[1][29]=1281; px[1][30]=3660; 
px[2][21]=1612; px[2][23]=2209; px[2][24]=1072; px[2][25]=2529; px[2][26]=2469; px[2][27]=2469; px[2][28]=2122; px[2][29]=1709; px[2][30]=1072; px[2][31]=1321; 
px[3][22]=2209; px[3][21]=2209; px[3][24]=1141; px[3][25]=2529; px[3][26]=2540; px[3][27]=2540; px[3][28]=2191; px[3][29]=1781; px[3][30]=1141; 
px[4][22]=1072; px[4][23]=1141; px[4][21]=1072; px[4][25]=1671; px[4][26]=1400; px[4][27]=1400; px[4][28]=1050; px[4][29]=641; px[4][30]=2591; px[4][31]=2393; 
px[5][22]=2529; px[5][23]=2529; px[5][24]=1671; px[5][21]=2529; px[5][26]=2364; px[5][27]=2364; px[5][28]=2722; px[5][29]=2309; px[5][30]=4100; px[5][31]=3462; 
px[6][22]=2469; px[6][23]=2540; px[6][24]=1400; px[6][25]=2364; px[6][21]=2469; px[6][28]=2450; px[6][29]=2040; px[6][30]=3991; px[6][31]=3667; 
px[7][22]=2469; px[7][23]=2540; px[7][24]=1400; px[7][25]=2364; px[7][21]=2469; px[7][28]=2450; px[7][29]=2040; px[7][30]=3991; px[7][31]=3667; 
px[8][22]=2122; px[8][23]=2191; px[8][24]=1050; px[8][25]=2722; px[8][26]=2450; px[8][27]=2450; px[8][21]=1050; px[8][29]=300; px[8][30]=3641; px[8][31]=3443; 
px[9][22]=1709; px[9][23]=1781; px[9][24]=641; px[9][25]=2309; px[9][26]=2040; px[9][27]=2040; px[9][28]=300; px[9][21]=1281; px[9][30]=3230; px[9][31]=3033; 
px[10][22]=1521; px[10][23]=3731; px[10][24]=2591; px[10][25]=4100; px[10][26]=3991; px[10][27]=3991; px[10][28]=3641; px[10][29]=3230; px[10][21]=3660; px[10][31]=2924; 
px[11][22]=1321; px[11][24]=2393; px[11][25]=3462; px[11][26]=3667; px[11][27]=3667; px[11][28]=3443; px[11][29]=3033;
var costo;
var rt;
var gt;
var lista1= form.origenz;
var eleg1=lista1.options[lista1.selectedIndex];
var lista2= form.destinoz;
var eleg2=lista2.options[lista2.selectedIndex];
if (eleg1.value==eleg2.value) 
{alert("Please choose a destination... ");}
     else 
     if   (((eleg1.value==6) && (eleg2.value==7)) ||  ((eleg2.value==6) && (eleg1.value==7)))
	{alert("Not available... ");}
                  else {
	costo=px[eleg1.value][eleg2.value];
                   if (eleg2.value==10) gt=30;
	else 
	if (eleg2.value==11) gt=31;
		else 
		gt=2+eleg2.value;
	rt=px[eleg1.value][gt];
	alert("One Way Bs "+costo+".- . . . . Round Trip Bs "+ rt+".-");
	       }
}

function enviaz8ta(form)
{
//     1 lpb - 2srz - 3cbb - 4tdd - 5cij - 6rib - 7gya - 8rbq - 9srj - 10sta ana
var ALERT_TITLE = "Amaszonas";
var ALERT_BUTTON_TEXT = "OK";

// over-ride the alert method only if this a newer browser.
// Older browser will see standard alerts
if(document.getElementById) {
	window.alert = function(txt) {
		createCustomAlert(txt);
	}
}

function createCustomAlert(txt) {
	// shortcut reference to the document object
	d = document;

	// if the modalContainer object already exists in the DOM, bail out.
	if(d.getElementById("modalContainer")) return;

	// create the modalContainer div as a child of the BODY element
	mObj = d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));
	mObj.id = "modalContainer";
	 // make sure its as tall as it needs to be to overlay all the content on the page
	mObj.style.height = document.documentElement.scrollHeight + "px";

	// create the DIV that will be the alert 
	alertObj = mObj.appendChild(d.createElement("div"));
	alertObj.id = "alertBox";
	// MSIE doesnt treat position:fixed correctly, so this compensates for positioning the alert
//	if(d.all && !window.opera) 
alertObj.style.top = document.documentElement.scrollTop/2 +  alertObj.offsetTop*3.5 + "px";
	// center the alert box  - alertObj.offsetWidth
	alertObj.style.left = d.documentElement.scrollWidth /2 - alertObj.offsetWidth/4 + "px";

	// create an H1 element as the title bar
	h1 = alertObj.appendChild(d.createElement("h1"));
	h1.appendChild(d.createTextNode(ALERT_TITLE));

	// create a paragraph element to contain the txt argument
	msg = alertObj.appendChild(d.createElement("p"));
	msg.appendChild(d.createTextNode(txt));

	// create an anchor element to use as the confirmation button.
	btn = alertObj.appendChild(d.createElement("a"));
	btn.id = "closeBtn";
	btn.appendChild(d.createTextNode(ALERT_BUTTON_TEXT));
	btn.href = "#";
	// set up the onclick event to remove the alert when the anchor is clicked
	btn.onclick = function() { removeCustomAlert();return false; }

	
}

// removes the custom alert from the DOM
function removeCustomAlert() {
	document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));
}
var px=new Array();
for ( iy = 0; iy<35; iy ++ ) px[iy] = new Array(); 
px[1][2]=806; px[1][3]=1105; px[1][4]=535; px[1][5]=1265; px[1][6]=1235; px[1][7]=1235; px[1][8]=525; px[1][9]=641; px[1][10]=1830; 
px[2][1]=806; px[2][3]=1105; px[2][4]=535; px[2][5]=1265; px[2][6]=1235; px[2][7]=1235; px[2][8]=1060; px[2][9]=855; px[2][10]=761; px[2][11]=661; 
px[3][2]=1105; px[3][1]=1105; px[3][4]=570; px[3][5]=1265; px[3][6]=1271; px[3][7]=1271; px[3][8]=1095; px[3][9]=890; px[3][10]=1866; 
px[4][2]=535; px[4][3]=570; px[4][1]=535; px[4][5]=835; px[4][6]=700; px[4][7]=700; px[4][8]=525; px[4][9]=320; px[4][10]=1295; px[4][11]=1196; 
px[5][2]=1265; px[5][3]=1265; px[5][4]=835; px[5][1]=1265; px[5][6]=1182; px[5][7]=1182; px[5][8]=1360; px[5][9]=1155; px[5][10]=2050; px[5][11]=1731; 
px[6][2]=1235; px[6][3]=1271; px[6][4]=700; px[6][5]=1182; px[6][1]=1235; px[6][8]=1225; px[6][9]=1020; px[6][10]=1995; px[6][11]=1833; 
px[7][2]=1235; px[7][3]=1271; px[7][4]=700; px[7][5]=1182; px[7][1]=1235; px[7][8]=1225; px[7][9]=1020; px[7][10]=1995; px[7][11]=1833; 
px[8][2]=1060; px[8][3]=1095; px[8][4]=525; px[8][5]=1360; px[8][6]=1225; px[8][7]=1225; px[8][1]=525; px[8][9]=150; px[8][10]=1820; px[8][11]=1721; 
px[9][2]=855; px[9][3]=890; px[9][4]=320; px[9][5]=1155; px[9][6]=1020; px[9][7]=1020; px[9][8]=150; px[9][1]=641; px[9][10]=1615; px[9][11]=1516; 
px[10][2]=761; px[10][3]=1866; px[10][4]=1295; px[10][5]=2050; px[10][6]=1995; px[10][7]=1995; px[10][8]=1820; px[10][9]=1615; px[10][1]=1830; px[10][11]=1462; 
px[11][2]=661; px[11][4]=1196; px[11][5]=1731; px[11][6]=1833; px[11][7]=1833; px[11][8]=1721; px[11][9]=1516;

px[1][22]=1612; px[1][23]=2209; px[1][24]=1072; px[1][25]=2529; px[1][26]=2469; px[1][27]=2469; px[1][28]=1050; px[1][29]=1281; px[1][30]=3660; 
px[2][21]=1612; px[2][23]=2209; px[2][24]=1072; px[2][25]=2529; px[2][26]=2469; px[2][27]=2469; px[2][28]=2122; px[2][29]=1709; px[2][30]=1072; px[2][31]=1321; 
px[3][22]=2209; px[3][21]=2209; px[3][24]=1141; px[3][25]=2529; px[3][26]=2540; px[3][27]=2540; px[3][28]=2191; px[3][29]=1781; px[3][30]=1141; 
px[4][22]=1072; px[4][23]=1141; px[4][21]=1072; px[4][25]=1671; px[4][26]=1400; px[4][27]=1400; px[4][28]=1050; px[4][29]=641; px[4][30]=2591; px[4][31]=2393; 
px[5][22]=2529; px[5][23]=2529; px[5][24]=1671; px[5][21]=2529; px[5][26]=2364; px[5][27]=2364; px[5][28]=2722; px[5][29]=2309; px[5][30]=4100; px[5][31]=3462; 
px[6][22]=2469; px[6][23]=2540; px[6][24]=1400; px[6][25]=2364; px[6][21]=2469; px[6][28]=2450; px[6][29]=2040; px[6][30]=3991; px[6][31]=3667; 
px[7][22]=2469; px[7][23]=2540; px[7][24]=1400; px[7][25]=2364; px[7][21]=2469; px[7][28]=2450; px[7][29]=2040; px[7][30]=3991; px[7][31]=3667; 
px[8][22]=2122; px[8][23]=2191; px[8][24]=1050; px[8][25]=2722; px[8][26]=2450; px[8][27]=2450; px[8][21]=1050; px[8][29]=300; px[8][30]=3641; px[8][31]=3443; 
px[9][22]=1709; px[9][23]=1781; px[9][24]=641; px[9][25]=2309; px[9][26]=2040; px[9][27]=2040; px[9][28]=300; px[9][21]=1281; px[9][30]=3230; px[9][31]=3033; 
px[10][22]=1521; px[10][23]=3731; px[10][24]=2591; px[10][25]=4100; px[10][26]=3991; px[10][27]=3991; px[10][28]=3641; px[10][29]=3230; px[10][21]=3660; px[10][31]=2924; 
px[11][22]=1321; px[11][24]=2393; px[11][25]=3462; px[11][26]=3667; px[11][27]=3667; px[11][28]=3443; px[11][29]=3033;
var costo;
var rt;
var gt;
var lista1= form.origenz;
var eleg1=lista1.options[lista1.selectedIndex];
var lista2= form.destinoz;
var eleg2=lista2.options[lista2.selectedIndex];
if (eleg1.value==eleg2.value) 
{alert("Bitte wählen Sie einen Zielort ... ");}
     else 
     if   (((eleg1.value==6) && (eleg2.value==7)) ||  ((eleg2.value==6) && (eleg1.value==7)))
	{alert("Nicht verfügbar... ");}
                  else {
	costo=px[eleg1.value][eleg2.value];
	if (eleg2.value==10) gt=30;
	else 
	if (eleg2.value==11) gt=31;
		else 
		gt=2+eleg2.value;
	rt=px[eleg1.value][gt];
	alert("Ein Weg Bs "+costo+".- . . . . Hin-und Rückfahrt Bs "+ rt+".-");
	       }
}

