var varPath = 'http://localhost/surtrek/';
//var varPath = 'http://www.surtrek.com/';
var txtEnvio="yes";
window.onload = function(){

if (window.document.mymovie) {
		//set page variable in _root timeline of Flash movie
		window.document.mymovie.SetVariable("varJAVA", txtEnvio);
		var varFlash = window.document.mymovie.GetVariable("varJAVA")
	}
}
function borrar_campo(camp){
//alert(document.frmBuscar.txtBuscar.value);
var strInput = 'document.frmBuscar.txtBuscar.value=""';
eval (strInput);
} 


function f_abrir_Popup(name, url, left, top, width, height, toolbar, 
menubar, statusbar, scrollbar, resizable){
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+', menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	}

function balido()
{
    var error_string = "";
    if (window.document.contacto.nombre.value == "")
    {
        error_string += "Name-Nombre,\n";
    }
	
	
	if (window.document.contacto.asunto.value == "")
    {
        error_string += "Issue-Asunto,\n";
    }
	if (window.document.contacto.sugerencia.value == "")
    {
        error_string += "Detail-Detalle.\n";
    }
    
    if (error_string == "")
    {
	window.document.contacto.submit()
	alert("Gracias por contactarnos.");
       return true;
    } else {
        error_string = "Faltan: \n" + error_string;
        alert(error_string);
        return false;
    } 
}
function balido2()
{
    var error_string = "";
    if (window.document.contacto.nombre.value == "")
    {
        error_string += "Nombres,\n";
    }
	
	
	if (window.document.contacto.pais.selectedIndex == "")
    {
        error_string += "País,\n";
    }
	if (window.document.contacto.mensaje.value == "")
    {
        error_string += "Mensaje.\n";
    }
    
    if (error_string == "")
    {
	window.document.contacto.submit()
       return true;
    } else {
        error_string = "Faltan: \n" + error_string;
        alert(error_string);
        return false;
    } 
}
function balid2()
{
    var error_string = "";
    if (window.document.contacto.nombre.value == "")
    {
        error_string += "Name,\n";
    }
	
	
	if (window.document.contacto.pais.selectedIndex == "")
    {
        error_string += "Country,\n";
    }
	if (window.document.contacto.mensaje.value == "")
    {
        error_string += "Message,\n";
    }
    
    if (error_string == "")
    {
	window.document.contacto.submit()
       return true;
    } else {
        error_string =  error_string + "are missing.";
        alert(error_string);
        return false;
    } 
}





