
var
	wnd;
/*function msol_DoFSCommand(command,args)
{
	alert(command);
	wnd=window.open(command,"wndsol","menubar=0,toolbar=0,width=700,height=400,scrollbars=1");
	return true;
}
function primercuadro_DoFSCommand(command, args) {
  //var primercuadroObj = InternetExplorer ? primercuadro : document.primercuadro;
  //
  wnd=window.open(command,"wndgsm","menubar=0,toolbar=0,width=730,height=500,scrollbars=1");
  //
}

function SEMobile_DoFSCommand(command, args) 
{
  //var primercuadroObj = InternetExplorer ? primercuadro : document.primercuadro;
  //
  alert(command);
  wnd=window.open(command,"wndgsm","menubar=0,toolbar=0,width=730,height=500,scrollbars=1");
  //
}
*/
function PopUp(capa)
{
	var orden="";
	orden=capa+".style.visibility='visible';";
	eval(orden);
	return true;
}

function PopDown(capa)
{
	var orden="";
	orden=capa+".style.visibility='hidden';";
	eval(orden);
	return true;
}

function mouseover(capa,l)
{
	var orden="";
	orden=capa+".style.background='#000099';";
	orden+=capa+".style.color='white';";	
	eval(orden);
   return true;
}

function mouseout(capa, l)
{
	var orden="";
	orden=capa+".style.background='#FFFFFF';";
	orden+=capa+".style.color='blue';";
	eval(orden);
	return true;
}
	 

function PopUp(capa)
{
	var orden="";
	orden=capa+".style.visibility='visible';";
	eval(orden);
	return true;
}

function PopDown(capa)
{
	var orden="";
	orden=capa+".style.visibility='hidden';";
	eval(orden);
	return true;
}
function VaPagina()
{
	var imagenurl = new Array()
	var cadena = new String(equipo.options[equipo.selectedIndex].value)
	imagenurl=cadena.split(",");
	if (equipo.options[equipo.selectedIndex].value=="SYMBOL" || equipo.options[equipo.selectedIndex].value=='INTERMEC' || 
		equipo.options[equipo.selectedIndex].value == 'SEPARADOR' || equipo.options[equipo.selectedIndex].value == 'ZEBRA')
		return;
	window.location= imagenurl[1];
}
function CambiaImagen(forma)
{	
	var imagenurl = new Array()
	var Caracteristicas = new Array();
	var i=0;y=0;
	var html;
	var cadena = new String(forma.options[forma.selectedIndex].value)	
	imagenurl=cadena.split(",");
//	alert(cadena);
	if (forma.options[forma.selectedIndex].value=="SYMBOL" || forma.options[forma.selectedIndex].value=='INTERMEC' || 
		forma.options[forma.selectedIndex].value == 'SEPARADOR' || forma.options[forma.selectedIndex].value == 'ZEBRA')
		return;
	document.imagen.src=imagenurl[0];
	document.imagen.alt=forma.options[forma.selectedIndex].name;
	T11.innerText=imagenurl[2];
	
	cadena="";	
	html='<Table border=0 width=100%><TD><UL class=unord>';
	Caracteristicas=arrCar[forma.selectedIndex].split(",");
	for(i=0;i<Caracteristicas.length;i++)
	{		
		if (Caracteristicas[i]!='undefined' && Caracteristicas[i]!='')
			html=html +'<LI>'+ Caracteristicas[i] +'</LI>'
	}
	html=html+'</UL></td></table>';
	T22.innerHTML=html;
	casosexito.location="casos.asp?MODELO="+imagenurl[3];
	//alert(casosexito.location);
	return;
}

//Agrega un elemento a un objeto Select
function appendOptionLast(Objeto,valor0,valor1, valor2, valor3,valor4)
	{
		var elOptNew = document.createElement('option');
		elOptNew.text = valor0
		elOptNew.value = valor1+","+valor2+","+valor3+","+valor4;
		var elSel = document.getElementById(Objeto);

		try {
			elSel.add(elOptNew, null); // standards compliant; doesn't work in IE
		}
		catch(ex) {
			elSel.add(elOptNew); // IE only
		}
	}
	
function MuestraInfo()
{
	window.status="prueba";
}


function GoNewUrl(url,name)
{
	
	wnd=window.open(url,name,"menubar=0,toolbar=0,width=650,height=500,scrollbars=1");
	
}
function GoSymbol(Terminal)
{
	switch(Terminal)
	{
		case 'PPT8800':
			wnd=window.open("http://www.symbol.com/products/mobile_computers/mobile_ppt8800.html","PPT8800","menubar=0,toolbar=0,width=650,height=500,scrollbars=1");
		break;
		case 'PDT8100':
			wnd=window.open("http://www.symbol.com/products/mobile_computers/mobile_pdt8100.html","PDT8100","menubar=0,toolbar=0,width=650,height=500,scrollbars=1");
		break;
		case 'PDT68XX':
			wnd=window.open("http://www.symbol.com/products/mobile_computers/mobile_kb_pdt_6800.html","PDT8100","menubar=0,toolbar=0,width=650,height=500,scrollbars=1");
		break;
		case 'SPT18XX':
			wnd=window.open("http://www.symbol.com/products/mobile_computers/mobile_palm_spt1800.html","SPT18XX","menubar=0,toolbar=0,width=650,height=500,scrollbars=1");
		break;
		case 'MK1000':
			wnd=window.open("http://www.symbol.com/products/barcode_scanners/barcode_hf_mk1000.html","MK1000","menubar=0,toolbar=0,width=650,height=500,scrollbars=1");
		break;
		case 'INT700': case 'INT600': 
			wnd=window.open("http://home.intermec.com/eprise/main/Intermec/Content/Products/Products_ListProducts?section=Products&Category=CMPTR&Family=CMPTR2","SPT18XX","menubar=0,toolbar=0,width=750,height=500,scrollbars=1");
		break;
		case 'INT2415': case 'INT2425': case 'INT2485':
			wnd=window.open("http://www.intermec.com/eprise/main/Intermec/Content/Products/Products_ListProducts?section=Products&Category=CMPTR&Family=CMPTR1","INTERMEC","menubar=0,toolbar=0,width=750,height=500,scrollbars=1");
		break;
		case 'INTC4':
			wnd=window.open("http://www.intermec.com/eprise/main/Intermec/Content/Products/Products_ShowDetail?section=Products&Product=PRTRC4&Category=PRTR&Family=GENTAGPRTR","INTERMEC","menubar=0,toolbar=0,width=750,height=500,scrollbars=1");
		break;
		case 'INTE4':
			wnd=window.open("http://www.intermec.com/eprise/main/Intermec/Content/Products/Products_ShowDetail?section=Products&Product=PRTRC4&Category=PRTR&Family=GENTAGPRTR","INTERMEC","menubar=0,toolbar=0,width=750,height=500,scrollbars=1");
		break;
	}
	
}

function Esmail(Dato){
		CadenaNumeros = new String('@');
		CadenaNumeros1 = new String('.');
		var punto;
		var arroba;
		cadena = new String(Dato);
		for (var i=0; i < cadena.length; i++) {
		if (CadenaNumeros.indexOf(cadena.charAt(i)) != -1) {
		arroba="true";}
		if (CadenaNumeros1.indexOf(cadena.charAt(i)) != -1) {
		punto="true";}
		}
		if (arroba=="true" && punto=="true") 
			{return true
			}
		return;
		}

function ValidaCampos()
{
	if ((document.forma.name.value=="") || (document.forma.mail.value=="") || (document.forma.telefono.value==""))
	{
		alert("Datos incorrrectos, por favor corriga");
		document.forma.cia.focus();
		return(false);
	}
	else
	{
		if(Esmail(document.forma.mail.value))
		{
			return true;
		}
		else
		{
		//	document.forma.method="get";
			alert("No es una direccion de e-mail correcta");
			document.forma.mail.focus();
		//	document.forma.action="";
			return (false);
		}
		
	}
	return(true);
}

function validacion(form)
{
	nombre=document.forms[0].nombre.value;
	email_solicitante=document.forms[0].email_solicitante.value;
	if(nombre==""){
		alert("Por favor llene todos los campos marcados con rojo");
		document.forms[0].nombre.focus();
		return;
	}
	if (email_solicitante!=""){
		if(Esmail(email_solicitante))
		{
		}
		else{
		alert ("el mail que introdujo es inválido");
		document.forms[0].email_solicitante.focus();
		return;
		}
	}
	else{
		alert("Por favor llene todos los campos marcados con rojo");
		document.forms[0].email_solicitante.focus();
		return;
	}
		document.forms[0].submit();
	}

