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 - 10tarija- 11yacuiba(no esta en menu)
var px=new Array();
for ( iy = 0; iy<35; iy ++ ) px[iy] = new Array(); 
px[1][2]=809; px[1][3]=1240; px[1][4]=651; px[1][5]=1290; px[1][6]=1409; px[1][7]=1410; px[1][8]=550; px[1][9]=725; px[1][10]=2060; 
px[2][1]=810; px[2][3]=1240; px[2][4]=650; px[2][5]=1290; px[2][6]=1410; px[2][7]=1410; px[2][8]=1230; px[2][9]=1030; px[2][10]=760; px[2][11]=800; 
px[3][2]=1240; px[3][1]=1240; px[3][4]=590; px[3][5]=1290; px[3][6]=1350; px[3][7]=1350; px[3][8]=1170; px[3][9]=970; px[3][10]=2000; 
px[4][2]=650; px[4][3]=590; px[4][1]=650; px[4][5]=890; px[4][6]=760; px[4][7]=760; px[4][8]=580; px[4][9]=380; px[4][10]=1410; px[4][11]=1450; 
px[5][2]=1290; px[5][3]=1290; px[5][4]=890; px[5][1]=1290; px[5][6]=700; px[5][7]=1270; px[5][8]=1470; px[5][9]=1270; px[5][10]=2110; px[5][11]=2150; 
px[6][2]=1410; px[6][3]=1350; px[6][4]=760; px[6][5]=700; px[6][1]=1410; px[6][8]=1340; px[6][9]=1140; px[6][10]=2170; px[6][11]=2210; 
px[7][2]=1410; px[7][3]=1350; px[7][4]=760; px[7][5]=1270; px[7][1]=1410; px[7][8]=1340; px[7][9]=1140; px[7][10]=2170; px[7][11]=2210; 
px[8][2]=1230; px[8][3]=1170; px[8][4]=580; px[8][5]=1470; px[8][6]=1340; px[8][7]=1340; px[8][1]=550; px[8][9]=200; px[8][10]=1990; px[8][11]=2031; 
px[9][2]=1030; px[9][3]=970; px[9][4]=380; px[9][5]=1270; px[9][6]=1140; px[9][7]=1140; px[9][8]=200; px[9][1]=725; px[9][10]=1790; px[9][11]=1831; 
px[10][2]=760; px[10][3]=2000; px[10][4]=1410; px[10][5]=2110; px[10][6]=2170; px[10][7]=2170; px[10][8]=1990; px[10][9]=1790; px[10][1]=2060; px[10][11]=450; 
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]=1620; px[1][23]=2480; px[1][24]=1300; px[1][25]=2580; px[1][26]=2820; px[1][27]=2820; px[1][28]=1100; px[1][29]=1451; px[1][30]=4120; 
px[2][21]=1620; px[2][23]=2480; px[2][24]=1300; px[2][25]=2580; px[2][26]=2820; px[2][27]=2820; px[2][28]=2460; px[2][29]=2060; px[2][30]=1520; px[2][31]=1600; 
px[3][22]=2480; px[3][21]=2480; px[3][24]=1180; px[3][25]=2580; px[3][26]=2700; px[3][27]=2700; px[3][28]=2340; px[3][29]=1940; px[3][30]=4000; 
px[4][22]=1300; px[4][23]=1180; px[4][21]=1300; px[4][25]=1780; px[4][26]=1520; px[4][27]=1520; px[4][28]=1162; px[4][29]=762; px[4][30]=2820; px[4][31]=2900; 
px[5][22]=2580; px[5][23]=2580; px[5][24]=1780; px[5][21]=2580; px[5][26]=1400; px[5][27]=2940; px[5][28]=2540; px[5][29]=2420; px[5][30]=4220; px[5][31]=4300; 
px[6][22]=2820; px[6][23]=2700; px[6][24]=1520; px[6][25]=1400; px[6][21]=2820; px[6][28]=2682; px[6][29]=2282; px[6][30]=4340; px[6][31]=4420; 
px[7][22]=2820; px[7][23]=2700; px[7][24]=1520; px[7][25]=2540; px[7][21]=2820; px[7][28]=2682; px[7][29]=2282; px[7][30]=4340; px[7][31]=4420; 
px[8][22]=2460; px[8][23]=2340; px[8][24]=1162; px[8][25]=2940; px[8][26]=2682; px[8][27]=2682; px[8][21]=1100; px[8][29]=400; px[8][30]=3979; px[8][31]=4062; 
px[9][22]=2060; px[9][23]=1940; px[9][24]=762; px[9][25]=2540; px[9][26]=2282; px[9][27]=2282; px[9][28]=400; px[9][21]=1451; px[9][30]=3579; px[9][31]=4341; 
px[10][22]=1520; px[10][23]=4000; px[10][24]=2820; px[10][25]=4220; px[10][26]=4340; px[10][27]=4340; px[10][28]=3979; px[10][29]=3579; px[10][21]=4120; px[10][31]=900; 
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]=809; px[1][3]=1240; px[1][4]=651; px[1][5]=1290; px[1][6]=1409; px[1][7]=1410; px[1][8]=550; px[1][9]=725; px[1][10]=2060; 
px[2][1]=810; px[2][3]=1240; px[2][4]=650; px[2][5]=1290; px[2][6]=1410; px[2][7]=1410; px[2][8]=1230; px[2][9]=1030; px[2][10]=760; px[2][11]=800; 
px[3][2]=1240; px[3][1]=1240; px[3][4]=590; px[3][5]=1290; px[3][6]=1350; px[3][7]=1350; px[3][8]=1170; px[3][9]=970; px[3][10]=2000; 
px[4][2]=650; px[4][3]=590; px[4][1]=650; px[4][5]=890; px[4][6]=760; px[4][7]=760; px[4][8]=580; px[4][9]=380; px[4][10]=1410; px[4][11]=1450; 
px[5][2]=1290; px[5][3]=1290; px[5][4]=890; px[5][1]=1290; px[5][6]=700; px[5][7]=1270; px[5][8]=1470; px[5][9]=1270; px[5][10]=2110; px[5][11]=2150; 
px[6][2]=1410; px[6][3]=1350; px[6][4]=760; px[6][5]=700; px[6][1]=1410; px[6][8]=1340; px[6][9]=1140; px[6][10]=2170; px[6][11]=2210; 
px[7][2]=1410; px[7][3]=1350; px[7][4]=760; px[7][5]=1270; px[7][1]=1410; px[7][8]=1340; px[7][9]=1140; px[7][10]=2170; px[7][11]=2210; 
px[8][2]=1230; px[8][3]=1170; px[8][4]=580; px[8][5]=1470; px[8][6]=1340; px[8][7]=1340; px[8][1]=550; px[8][9]=200; px[8][10]=1990; px[8][11]=2031; 
px[9][2]=1030; px[9][3]=970; px[9][4]=380; px[9][5]=1270; px[9][6]=1140; px[9][7]=1140; px[9][8]=200; px[9][1]=725; px[9][10]=1790; px[9][11]=1831; 
px[10][2]=760; px[10][3]=2000; px[10][4]=1410; px[10][5]=2110; px[10][6]=2170; px[10][7]=2170; px[10][8]=1990; px[10][9]=1790; px[10][1]=2060; px[10][11]=450; 
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]=1620; px[1][23]=2480; px[1][24]=1300; px[1][25]=2580; px[1][26]=2820; px[1][27]=2820; px[1][28]=1100; px[1][29]=1451; px[1][30]=4120; 
px[2][21]=1620; px[2][23]=2480; px[2][24]=1300; px[2][25]=2580; px[2][26]=2820; px[2][27]=2820; px[2][28]=2460; px[2][29]=2060; px[2][30]=1520; px[2][31]=1600; 
px[3][22]=2480; px[3][21]=2480; px[3][24]=1180; px[3][25]=2580; px[3][26]=2700; px[3][27]=2700; px[3][28]=2340; px[3][29]=1940; px[3][30]=4000; 
px[4][22]=1300; px[4][23]=1180; px[4][21]=1300; px[4][25]=1780; px[4][26]=1520; px[4][27]=1520; px[4][28]=1162; px[4][29]=762; px[4][30]=2820; px[4][31]=2900; 
px[5][22]=2580; px[5][23]=2580; px[5][24]=1780; px[5][21]=2580; px[5][26]=1400; px[5][27]=2940; px[5][28]=2540; px[5][29]=2420; px[5][30]=4220; px[5][31]=4300; 
px[6][22]=2820; px[6][23]=2700; px[6][24]=1520; px[6][25]=1400; px[6][21]=2820; px[6][28]=2682; px[6][29]=2282; px[6][30]=4340; px[6][31]=4420; 
px[7][22]=2820; px[7][23]=2700; px[7][24]=1520; px[7][25]=2540; px[7][21]=2820; px[7][28]=2682; px[7][29]=2282; px[7][30]=4340; px[7][31]=4420; 
px[8][22]=2460; px[8][23]=2340; px[8][24]=1162; px[8][25]=2940; px[8][26]=2682; px[8][27]=2682; px[8][21]=1100; px[8][29]=400; px[8][30]=3979; px[8][31]=4062; 
px[9][22]=2060; px[9][23]=1940; px[9][24]=762; px[9][25]=2540; px[9][26]=2282; px[9][27]=2282; px[9][28]=400; px[9][21]=1451; px[9][30]=3579; px[9][31]=4341; 
px[10][22]=1520; px[10][23]=4000; px[10][24]=2820; px[10][25]=4220; px[10][26]=4340; px[10][27]=4340; px[10][28]=3979; px[10][29]=3579; px[10][21]=4120; px[10][31]=900; 
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]=809; px[1][3]=1240; px[1][4]=651; px[1][5]=1290; px[1][6]=1409; px[1][7]=1410; px[1][8]=550; px[1][9]=725; px[1][10]=2060; 
px[2][1]=810; px[2][3]=1240; px[2][4]=650; px[2][5]=1290; px[2][6]=1410; px[2][7]=1410; px[2][8]=1230; px[2][9]=1030; px[2][10]=760; px[2][11]=800; 
px[3][2]=1240; px[3][1]=1240; px[3][4]=590; px[3][5]=1290; px[3][6]=1350; px[3][7]=1350; px[3][8]=1170; px[3][9]=970; px[3][10]=2000; 
px[4][2]=650; px[4][3]=590; px[4][1]=650; px[4][5]=890; px[4][6]=760; px[4][7]=760; px[4][8]=580; px[4][9]=380; px[4][10]=1410; px[4][11]=1450; 
px[5][2]=1290; px[5][3]=1290; px[5][4]=890; px[5][1]=1290; px[5][6]=700; px[5][7]=1270; px[5][8]=1470; px[5][9]=1270; px[5][10]=2110; px[5][11]=2150; 
px[6][2]=1410; px[6][3]=1350; px[6][4]=760; px[6][5]=700; px[6][1]=1410; px[6][8]=1340; px[6][9]=1140; px[6][10]=2170; px[6][11]=2210; 
px[7][2]=1410; px[7][3]=1350; px[7][4]=760; px[7][5]=1270; px[7][1]=1410; px[7][8]=1340; px[7][9]=1140; px[7][10]=2170; px[7][11]=2210; 
px[8][2]=1230; px[8][3]=1170; px[8][4]=580; px[8][5]=1470; px[8][6]=1340; px[8][7]=1340; px[8][1]=550; px[8][9]=200; px[8][10]=1990; px[8][11]=2031; 
px[9][2]=1030; px[9][3]=970; px[9][4]=380; px[9][5]=1270; px[9][6]=1140; px[9][7]=1140; px[9][8]=200; px[9][1]=725; px[9][10]=1790; px[9][11]=1831; 
px[10][2]=760; px[10][3]=2000; px[10][4]=1410; px[10][5]=2110; px[10][6]=2170; px[10][7]=2170; px[10][8]=1990; px[10][9]=1790; px[10][1]=2060; px[10][11]=450; 
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]=1620; px[1][23]=2480; px[1][24]=1300; px[1][25]=2580; px[1][26]=2820; px[1][27]=2820; px[1][28]=1100; px[1][29]=1451; px[1][30]=4120; 
px[2][21]=1620; px[2][23]=2480; px[2][24]=1300; px[2][25]=2580; px[2][26]=2820; px[2][27]=2820; px[2][28]=2460; px[2][29]=2060; px[2][30]=1520; px[2][31]=1600; 
px[3][22]=2480; px[3][21]=2480; px[3][24]=1180; px[3][25]=2580; px[3][26]=2700; px[3][27]=2700; px[3][28]=2340; px[3][29]=1940; px[3][30]=4000; 
px[4][22]=1300; px[4][23]=1180; px[4][21]=1300; px[4][25]=1780; px[4][26]=1520; px[4][27]=1520; px[4][28]=1162; px[4][29]=762; px[4][30]=2820; px[4][31]=2900; 
px[5][22]=2580; px[5][23]=2580; px[5][24]=1780; px[5][21]=2580; px[5][26]=1400; px[5][27]=2940; px[5][28]=2540; px[5][29]=2420; px[5][30]=4220; px[5][31]=4300; 
px[6][22]=2820; px[6][23]=2700; px[6][24]=1520; px[6][25]=1400; px[6][21]=2820; px[6][28]=2682; px[6][29]=2282; px[6][30]=4340; px[6][31]=4420; 
px[7][22]=2820; px[7][23]=2700; px[7][24]=1520; px[7][25]=2540; px[7][21]=2820; px[7][28]=2682; px[7][29]=2282; px[7][30]=4340; px[7][31]=4420; 
px[8][22]=2460; px[8][23]=2340; px[8][24]=1162; px[8][25]=2940; px[8][26]=2682; px[8][27]=2682; px[8][21]=1100; px[8][29]=400; px[8][30]=3979; px[8][31]=4062; 
px[9][22]=2060; px[9][23]=1940; px[9][24]=762; px[9][25]=2540; px[9][26]=2282; px[9][27]=2282; px[9][28]=400; px[9][21]=1451; px[9][30]=3579; px[9][31]=4341; 
px[10][22]=1520; px[10][23]=4000; px[10][24]=2820; px[10][25]=4220; px[10][26]=4340; px[10][27]=4340; px[10][28]=3979; px[10][29]=3579; px[10][21]=4120; px[10][31]=900; 
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]=809; px[1][3]=1240; px[1][4]=651; px[1][5]=1290; px[1][6]=1409; px[1][7]=1410; px[1][8]=550; px[1][9]=725; px[1][10]=2060; 
px[2][1]=810; px[2][3]=1240; px[2][4]=650; px[2][5]=1290; px[2][6]=1410; px[2][7]=1410; px[2][8]=1230; px[2][9]=1030; px[2][10]=760; px[2][11]=800; 
px[3][2]=1240; px[3][1]=1240; px[3][4]=590; px[3][5]=1290; px[3][6]=1350; px[3][7]=1350; px[3][8]=1170; px[3][9]=970; px[3][10]=2000; 
px[4][2]=650; px[4][3]=590; px[4][1]=650; px[4][5]=890; px[4][6]=760; px[4][7]=760; px[4][8]=580; px[4][9]=380; px[4][10]=1410; px[4][11]=1450; 
px[5][2]=1290; px[5][3]=1290; px[5][4]=890; px[5][1]=1290; px[5][6]=700; px[5][7]=1270; px[5][8]=1470; px[5][9]=1270; px[5][10]=2110; px[5][11]=2150; 
px[6][2]=1410; px[6][3]=1350; px[6][4]=760; px[6][5]=700; px[6][1]=1410; px[6][8]=1340; px[6][9]=1140; px[6][10]=2170; px[6][11]=2210; 
px[7][2]=1410; px[7][3]=1350; px[7][4]=760; px[7][5]=1270; px[7][1]=1410; px[7][8]=1340; px[7][9]=1140; px[7][10]=2170; px[7][11]=2210; 
px[8][2]=1230; px[8][3]=1170; px[8][4]=580; px[8][5]=1470; px[8][6]=1340; px[8][7]=1340; px[8][1]=550; px[8][9]=200; px[8][10]=1990; px[8][11]=2031; 
px[9][2]=1030; px[9][3]=970; px[9][4]=380; px[9][5]=1270; px[9][6]=1140; px[9][7]=1140; px[9][8]=200; px[9][1]=725; px[9][10]=1790; px[9][11]=1831; 
px[10][2]=760; px[10][3]=2000; px[10][4]=1410; px[10][5]=2110; px[10][6]=2170; px[10][7]=2170; px[10][8]=1990; px[10][9]=1790; px[10][1]=2060; px[10][11]=450; 
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]=1620; px[1][23]=2480; px[1][24]=1300; px[1][25]=2580; px[1][26]=2820; px[1][27]=2820; px[1][28]=1100; px[1][29]=1451; px[1][30]=4120; 
px[2][21]=1620; px[2][23]=2480; px[2][24]=1300; px[2][25]=2580; px[2][26]=2820; px[2][27]=2820; px[2][28]=2460; px[2][29]=2060; px[2][30]=1520; px[2][31]=1600; 
px[3][22]=2480; px[3][21]=2480; px[3][24]=1180; px[3][25]=2580; px[3][26]=2700; px[3][27]=2700; px[3][28]=2340; px[3][29]=1940; px[3][30]=4000; 
px[4][22]=1300; px[4][23]=1180; px[4][21]=1300; px[4][25]=1780; px[4][26]=1520; px[4][27]=1520; px[4][28]=1162; px[4][29]=762; px[4][30]=2820; px[4][31]=2900; 
px[5][22]=2580; px[5][23]=2580; px[5][24]=1780; px[5][21]=2580; px[5][26]=1400; px[5][27]=2940; px[5][28]=2540; px[5][29]=2420; px[5][30]=4220; px[5][31]=4300; 
px[6][22]=2820; px[6][23]=2700; px[6][24]=1520; px[6][25]=1400; px[6][21]=2820; px[6][28]=2682; px[6][29]=2282; px[6][30]=4340; px[6][31]=4420; 
px[7][22]=2820; px[7][23]=2700; px[7][24]=1520; px[7][25]=2540; px[7][21]=2820; px[7][28]=2682; px[7][29]=2282; px[7][30]=4340; px[7][31]=4420; 
px[8][22]=2460; px[8][23]=2340; px[8][24]=1162; px[8][25]=2940; px[8][26]=2682; px[8][27]=2682; px[8][21]=1100; px[8][29]=400; px[8][30]=3979; px[8][31]=4062; 
px[9][22]=2060; px[9][23]=1940; px[9][24]=762; px[9][25]=2540; px[9][26]=2282; px[9][27]=2282; px[9][28]=400; px[9][21]=1451; px[9][30]=3579; px[9][31]=4341; 
px[10][22]=1520; px[10][23]=4000; px[10][24]=2820; px[10][25]=4220; px[10][26]=4340; px[10][27]=4340; px[10][28]=3979; px[10][29]=3579; px[10][21]=4120; px[10][31]=900; 
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+".-");
	       }
}

