datos_var = new Array();
	function ajusta_busqueda(valor)
	{
		//query
	}
	function ver_muestra2(id_var)
	{   /* 0- imagen pequeña
		   1- valor de la diferencia  
		   2- codigo producto 
		   3- id_variacion
		   4- precio_shop
		   5- precio_pvp
		   6- precio_dolar
		   7- iamgen grande
		   8- pixel transparente
		   9- precio_costo
		*/	
		var i;
		
		for(i=0;i<datos_var.length;i++){
			if(datos_var[i]){
		 		if(datos_var[i][3]==id_var){
					pos=i;
					window.muestra_img.background=datos_var[pos][0];
					/*if((datos_var[pos][0] != ''))
						window.muestra_img.innerHTML=datos_var[pos][1];*/
					window.h_id_var=datos_var[pos][3];
					window.precio_shop.innerHTML="Bs. " + datos_var[pos][5];
					window.precio_pvp.innerHTML="Bs. " + datos_var[pos][4];
					window.precio_dolar.innerHTML=datos_var[pos][6];
					window.precio_costo.innerHTML=datos_var[pos][9]+"%";
					window.l_t_add.search="?code="+ datos_var[pos][2] +"&id_var=" + datos_var[pos][3];
					
					
					if((datos_var[pos][7] != '') && (document.all('prueba')) )
						document.prueba.src=datos_var[pos][7];
					else
						if(document.all('prueba'))
							document.prueba.src=datos_var[pos][8];
					for(i=0;i<document.vars.id_var.options.length;i++){  
						if(document.vars.id_var.options[i].value==datos_var[pos][3])
							document.vars.id_var.options[i].selected=true;
					}
				}
			}
		}
}

function abreventana(){
  window.open(this.href,"nuevaventana","width=650,height=380,titlebar=no,directories=no,menubars=no,status=no,scrollbars=no,resizable=no, title='Catalogo'");
  return false; 
}



/* Función genérica para abrir nuevas ventanas */
function openWindow(address, name, options)
{
	var newwin = null;
	newwin = window.open(address,name,options);
	if (newwin.opener == null) {
		newwin.opener = self;
	}
}

/* Funcion generica para bloquear botón derecho mouse */
function click(e){
	var code; 
	
	if(document.all)
		code = event.button; 
	else
		code = e.button;
	
	if(code==2){
		alert('Copyright© 2007 Telovendo.com - Todos los derechos reservados');
	}
}

/* Abre una ventana con la página de seleccionar categorías */
function openDetallesWindow(address)
{
	openWindow(address,'selprod','scrollbars=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=yes, width=650, height=500');
}


/* Abre una ventana con la página de seleccionar categorías */
function openCategoriesWindow(address)
{
	openWindow(address,'selcat','scrollbars=yes, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=no, width=500, height=500');
}

/* Abre una ventana con la página html de sugerencias de regalos */
function openSugerenciasWindow(address)
{
	openWindow(address,'selsug','scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width=500,height=500');
}

/* Abre una ventana para ver una imagen en el módulo administrativo */
function openImageWindow(image)
{
	openWindow(path+'admin/shared/p_verimagen.asp?image='+image,'image','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width=540,height=540');
}

/* Abre una ventana para ver una imagen en el site */
function openSiteImageWindow(image)
{
	openWindow(path+'site/shared/p_verimagen.asp?image='+image,'image','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width=540,height=540');
}

/* Abre una ventana para ver una imagen en el site Lista de Bodas */
function openSiteImageWindowBodas(image)
{
	openWindow(path+'site/lista_bodas/shared/p_verimagen.asp?image='+image,'image','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width=540,height=540');
}

/* Abre una ventana para ver una imagen en el site para Secciones del Administrador*/
function openSiteImageWindowSec(image)
{
	var pathimg
	pathimg='imagenes/site/varios/'
	openWindow(path+'site/shared/p_verimagen.asp?image='+path+image,'image','scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width=920,height=600');
}



function valida_template(operacion)
{
	if (document.add.name.value=='')
	{
		alert ('Indique el nombre del template');
		document.add.name.focus();
		return false;
	}
	if (operacion==0){ //si es nuevo valida que se haya seleccionado la imagen
		if (document.add.file.value=='')
		{
			alert ('Seleccione el archivo');
			document.add.file.focus();
			return false;
		}
	}
	return true;
}

function valida_evento()
{
	if (document.add.titulo.value=='')
	{
		alert ('Indique el título del evento/promoción');
		document.add.titulo.focus();
		return false;
	}
	if (document.add.resumen.value=='')
	{
		alert ('Indique el resumen del evento/promoción');
		document.add.resumen.focus();
		return false;
	}
	if (document.add.contenido.value=='')
	{
		alert ('Indique el contenido del evento/promoción');
		document.add.contenido.focus();
		return false;
	}
	if (document.add.fecha.value=='')
	{
		alert ('Indique la fecha del evento/promoción');
		document.add.fecha.focus();
		return false;
	}
	if (document.add.tipo.value=='')
	{
		alert ('Indique si es un evento o una promoción');
		document.add.tipo.focus();
		return false;
	}
	if (document.add.file1.value=='')
	{
		alert ('Seleccione el archivo');
		document.add.file1.focus();
		return false;
	}
	return true;
}

function checkCheckBox(boton){
if (boton.checked == false )
{
	alert('Por favor, recuerde que debe aceptar los Términos y Condiciones del Portal');
	return false;
}else {
	return true;
}
}

function valnumeric(field)
{
	var valid = "0123456789"
	var ok = "yes";
	var temp;
	
	for (var i = 0; i < field.value.length; i++)
	{
		temp = "" + field.value.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
	}
	if (ok == "no")
	{
		alert("Recuerde que sólo debe ingresar números.");
		field.focus();
		field.select();
	}
}


 function change_list (opc){
	 
	if (opc==1)
	{	
		window.location.href="p_promocion.asp?moption=add&code="+document.getElementById("code").value +"&name="+document.getElementById("name").value+"&opc_pro="+document.getElementById("opc_pro").value+"&fec_ini-field="+document.getElementById("fec_ini-field").value+"&fec_fin-field="+document.getElementById("fec_fin-field").value;	  
	}
	if(opc==2){
				window.location.href="p_promocion.asp?moption=modify&code="+document.getElementById("code").value +"&name="+document.getElementById("name").value+"&opc_pro="+document.getElementById("opc_pro").value+"&fec_ini-field="+document.getElementById("fec_ini-field").value+"&fec_fin-field="+document.getElementById("fec_fin-field").value;	  
	}

		
		
		
	
 }
 
 /* Funciones Para Trabajar los TAB de la pagina d elos detalles de produtos*/
capaActual = "introduccion";
function esActivo(elemento)	{
	return;
}

function selecciona(elemento)	{
	if (elemento.split("_")[1] == capaActual)	esActivo(elemento);
	else	{
		document.getElementById("pesta_" + capaActual).className = "pesta inactiva";
		document.getElementById("capa_" + capaActual).className = "capa invisible";
		capaActual = elemento.split("_")[1];
		document.getElementById("pesta_" + capaActual).className = "pesta activa";
		document.getElementById("capa_" + capaActual).className = "capa visible";
	}
}

function alturaContenido()	{
	var altura = document.body.offsetHeight;
	var alturaPestas = document.getElementById("pestas").offsetTop;
	var tamPestas = document.getElementById("pestas").offsetHeight;
	document.getElementById("contenido").style.height = (altura - (alturaPestas + tamPestas)) + "px";
}

/****Funcion que detemrina el Navegador del Cliente*****/
var sBrowser; 

 

   function setBrowserType(){ 

    var aBrowFull = new Array("opera", "msie", "netscape", "gecko", "mozilla"); 

    var aBrowVers = new Array("opera", "msie", "netscape", "rv",    "mozilla"   ); 

    var aBrowAbrv = new Array("op",    "ie",   "ns",       "mo",    "ns"   ); 

    var sInfo = navigator.userAgent.toLowerCase();; 

 

    sBrowser = ""; 

    for (var i = 0; i < aBrowFull.length; i++){ 

     if ((sBrowser == "") && (sInfo.indexOf(aBrowFull[i]) != -1)){ 

      sBrowser = aBrowAbrv[i]; 

      sVersion = String(parseFloat(sInfo.substr(sInfo.indexOf(aBrowVers[i]) + aBrowVers[i].length + 1))); 

     } 

    } 

            return sBrowser;

   }
/********************************************************/

/******Funcion que cambia la Propoedad de un elemento*/
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n);  return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; 
  document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  
}
function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}


/****************JOHAN RUJANO*************************************/

/****************Funciones que trabajan al Estilo Ajax ************************************/
<!--Funciones Ajax para Consultar datos del Ususrio-->

/*function handleHttpResponse() {
    if (http.readyState == 4) {
       if (http.status == 200) {
          if (http.responseText.indexOf('invalid') == -1) {
             // Armamos un array, usando la coma para separar elementos
             results = http.responseText.split(",");
             document.getElementById("txtNombre").value = results[0];
             enProceso = false;
          }
       }
    }
}
*/


function BuscarUsuario() {
    if (http.readyState == 4) {
       if (http.status == 200) {
          if (http.responseText.indexOf('invalid') == -1) {
             // Armamos un array, usando la coma para separar elementos
//             results = http.responseText;
			results = http.responseText.split(",");
	
			if (results[0].length >0){
				
				document.getElementById("id_cliente").value= results[0];
				document.getElementById("txtNombre").value = results[1];				
				document.getElementById("txtApellido").value = results[2];
				document.getElementById("txtEmail").value= results[3];
				document.getElementById("txtCodigoPais").value= results[4].substr (0, 2);
				document.getElementById("txtCodigoArea").value= results[4].substr (2,3);
				document.getElementById("txtNumTelefono").value= results[4].substr (5, 7);	
				document.getElementById("txtTelefono").value= results[4];	
				document.getElementById("txtCodigoPais2").value= results[5].substr (0, 2);
				document.getElementById("txtCodigoArea2").value= results[5].substr (2,3);
				document.getElementById("txtNumTelefono2").value= results[5].substr (5, 7);	
				document.getElementById("txtTelefono2").value= results[5];	
				document.getElementById("txtCodigoPais3").value= results[6].substr (0, 2);
				document.getElementById("txtCodigoArea3").value= results[6].substr (2,3);
				document.getElementById("txtNumTelefono3").value= results[6].substr (5, 7);	
				document.getElementById("txtTelefono3").value= results[6];	
				document.getElementById("fec_nac-field").value= results[7];	
					
			}
			

			

			enProceso = false;
          }
       }
    }
}

function verificaUsuario() {
    if (!enProceso && http) {
       var valor = escape(document.getElementById("txtCedula").value);
	   var opcion = escape(document.getElementById("opcion").value);
	  
       var url = "consulta.asp?cedula="+ valor+"&opcion="+opcion;
	   
       http.open("GET", url, true);
       http.onreadystatechange = BuscarUsuario;
       enProceso = true;
       http.send(null);
    }
}

function BuscarUsuario2() {
	document.getElementById("id_cliente").value= '';
    if (http.readyState == 4) {
       if (http.status == 200) {
          if (http.responseText.indexOf('invalid') == -1) {
             // Armamos un array, usando la coma para separar elementos
//             results = http.responseText;
			results = http.responseText.split(",");
	
			if (results[0].length >0){
				
				document.getElementById("id_cliente").value= results[0];
				//document.getElementById("txtNombre").value = results[1];				
				//document.getElementById("txtApellido").value = results[2];
				//document.getElementById("txtEmail").value= results[3];
				//document.getElementById("txtCodigoPais").value= results[4].substr (0, 2);
				//document.getElementById("txtCodigoArea").value= results[4].substr (2,3);
				//document.getElementById("txtNumTelefono").value= results[4].substr (5, 7);	
				//document.getElementById("txtTelefono").value= results[4];	
				//document.getElementById("txtCodigoPais2").value= results[5].substr (0, 2);
				//document.getElementById("txtCodigoArea2").value= results[5].substr (2,3);
//				document.getElementById("txtNumTelefono2").value= results[5].substr (5, 7);	
//				document.getElementById("txtTelefono2").value= results[5];	
//				document.getElementById("txtCodigoPais3").value= results[6].substr (0, 2);
//				document.getElementById("txtCodigoArea3").value= results[6].substr (2,3);
//				document.getElementById("txtNumTelefono3").value= results[6].substr (5, 7);	
//				document.getElementById("txtTelefono3").value= results[6];	
//				document.getElementById("fec_nac-field").value= results[7];	
					
			}
			enProceso = false;
          }
       }
    }
}


function verificaUsuario2() {
    if (!enProceso && http) {
       var valor = escape(document.getElementById("txtCedula").value);
	   var opcion = escape(document.getElementById("opcion").value);
	  
       var url = "consulta.asp?cedula="+ valor+"&opcion="+opcion;
	   
       http.open("GET", url, true);
       http.onreadystatechange = BuscarUsuario2;
       enProceso = true;
       http.send(null);
    }
}



function getHTTPObject() {
   var xmlhttp;
			try
			{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
	
			catch (e)
			{
				try
				{
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				
				catch (e)
				{
					try
					{
						xmlhttp = new XMLHttpRequest();
					}
					
					catch (e)
					{
						xmlhttp = false;
						alert ('no se pudo obtener al ActiveX requerido');
					}
				}
			}
    
    return xmlhttp;
}

var enProceso = false; // lo usamos para ver si hay un proceso activo
var http = getHTTPObject(); // Creamos el objeto XMLHttpRequest


<!--Fin Funciones Ajax para Consultar datos del Ususrio-->




function telefonos()
{
	
 if (document.getElementById("txtCodigoPais").value != "" && document.getElementById("txtCodigoArea").value != "" && document.getElementById("txtNumTelefono").value != "")
 {
	 document.getElementById("txtTelefono").value = document.getElementById("txtCodigoPais").value + document.getElementById("txtCodigoArea").value + document.getElementById("txtNumTelefono").value;
	
 }
 else { document.getElementById("txtTelefono").value = ""; }
   
}
/*************FIN Funciones que trabajan al Estilo Ajax ************************************/
/************* Funcion que Caracteres especiales ************************************/

function acceptAlfaEsp(evt){	
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	,Tabs =0

var key;
if(window.event)
	{// IE
		key = evt.keyCode;	
}else{
		key = evt.which;
}

//alert (key);
//var nav4 = window.Event ? true : false;
//var key = nav4 ? evt.which : evt.keyCode;	
//alert (key);

return (key >= 13 && key <= 48) || (key >= 57) || (key=8);
}
/************* Funcion que validan alfanumericos ************************************/

function acceptAlfaNum(evt){	
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	,Tabs =0
//var nav4 = window.Event ? true : false;
//var key = nav4 ? evt.which : evt.keyCode;	

var key;
if(window.event)
	{// IE
		key = evt.keyCode;	
}else{
		key = evt.which;
}

return ((key >=48 && key <=57) || (key >= 65 && key <= 90) || (key >= 97 && key <= 122) || (key ==8)|| (key==13)|| (key==9) || (key==0) || (key==32) );
}
/************* Funcioneque validan numeros ************************************/
function acceptNum(evt){	
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	
//var nav4 = window.Event ? true : false;
//var key = nav4 ? evt.which : evt.keyCode;	

var key;
if(window.event)
	{// IE
		key = evt.keyCode;	
}else{
		key = evt.which;
}

return (key <= 13 || (key >= 48 && key <= 57));
}
//-->
/************* Funciones que validan email ************************************/

function Validar_Email(){
	
	
  if (document.getElementById("txtEmail").value.indexOf('@', 0) == -1 ||
      document.getElementById("txtEmail").value.indexOf('.', 0) == -1)
  { alert("Dirección de e-mail inválida");  return; }

}

function Validar_Email_2(valor){
	
	
 if (document.getElementById(valor).value.indexOf('@', 0) == -1 ||
      document.getElementById(valor).value.indexOf('.', 0) == -1)
  {
	 alert("Dirección de e-mail inválida");  return; 
	 }


}

function Validar_Email_Conf(){
		if (document.getElementById("txtEmail").value != document.getElementById("txtEmail2").value)
		{
			alert("La direcciones de email no coinciden.");
			return (false);
		}
		else
			return(true);


}

/*****************Funcion para Buscar Cidades de los Estados ***********/
function Limpiar_Zona(){
	var theSel=document.address.zone;
			var selIndex = theSel.selectedIndex;
			if (selIndex != -1) {
				for(i=theSel.length-1; i>=0; i--)
				{
				  theSel.options[i] = null;
				}
				if (theSel.length > 0) {
				  theSel.selectedIndex = selIndex == 0 ? 0 : selIndex - 1;
				}
			}
			var newElem = document.createElement("option");
			newElem.value = "null";
			newElem.text = "Seleccione";
			document.address.zone.options.add(newElem);	
}

function BuscaDireccion(opcion) {
		
    if (!enProceso && http) {
       var valor = escape(document.getElementById("state").value);
	  //var opcion = escape(document.getElementById("opcion").value);
	  if (opcion==1){
			document.getElementById("zone").disabled = false;
		  	var url = "i_direccion.asp?Numestado="+ valor+"&opcion="+opcion;
		   	http.open("GET", url, true);
	       	http.onreadystatechange = BuscaCiudad;
			Limpiar_Zona();
       }
	   else{  
		  document.getElementById("zone").disabled = false;
		  var valor2 = escape(document.getElementById("city").value);		
	   	 var url = "i_direccion.asp?Numestado="+ valor+"&Numciudad="+valor2+"&opcion="+opcion;
		//alert(url);
		//alert(valor2);
		 http.open("GET", url, true);
       	 http.onreadystatechange = BuscaUrbanizacion;
	   }
	   enProceso = true;
       http.send(null);
	   
    }
}
		   		
	


function BuscaCiudad() {
    if (http.readyState == 4) {
       if (http.status == 200) {
          if (http.responseText.indexOf('invalid') == -1) {
             // Armamos un array, usando la coma para separar elementos
//             results = http.responseText;
			results = http.responseText.split("~");
			/*if (results[0].length >0){*/
			var theSel=document.address.city;
			var selIndex = theSel.selectedIndex;
			if (selIndex != -1) {
				for(i=theSel.length-1; i>=0; i--)
				{
				  theSel.options[i] = null;
				}
				if (theSel.length > 0) {
				  theSel.selectedIndex = selIndex == 0 ? 0 : selIndex - 1;
				}
			}
			var newElem = document.createElement("option");
			newElem.value ="null";
			newElem.text = "Seleccione";
			document.address.city.options.add(newElem);	
			//document.forms[1].rockers.options.remove(0);
			for (i=0;i<results.length;i++)
				{
				//document.getElementById("td_city").innerHTML=results[0];
				var newElem = document.createElement("option");
				if (results[i]!="")
				{
					newElem.value = results[i];
					i++;
					newElem.text = results[i];
					document.address.city.options.add(newElem);	
				}			
				
			}enProceso = false;
          }
       }
    }
}


function BuscaUrbanizacion() {
    if (http.readyState == 4) {
       if (http.status == 200) {
          if (http.responseText.indexOf('invalid') == -1) {
             // Armamos un array, usando la coma para separar elementos
//             results = http.responseText;
			results = http.responseText.split("~");
			var theSel=document.address.zone;
			var selIndex = theSel.selectedIndex;
			if (selIndex != -1) {
				for(i=theSel.length-1; i>=0; i--)
				{
				  theSel.options[i] = null;
				}
				if (theSel.length > 0) {
				  theSel.selectedIndex = selIndex == 0 ? 0 : selIndex - 1;
				}
			}
			var newElem = document.createElement("option");
			newElem.value = "null";
			newElem.text = "Seleccione";
			document.address.zone.options.add(newElem);	
			for (i=0;i<results.length;i++){
				//document.getElementById("td_zone").innerHTML=results[0];
				var newElem = document.createElement("option");
				if (results[i]!="")
				{
					newElem.value = results[i];
					i++;
					newElem.text = results[i];
					document.address.zone.options.add(newElem);	
				}	
				//document.getElementById("td_zone_hidden").innerHTML=results[0];
			}enProceso = false;
          }
       }
    }
}


function BuscaDireccionPago(opcion) {
		
    if (!enProceso && http) {
       var valor = escape(document.getElementById("state").value);
	
	  //var opcion = escape(document.getElementById("opcion").value);
	  if (opcion==1){
		 document.getElementById("zone").disabled = true;
       	var url = "../micuenta/indice/i_direccion.asp?Numestado="+ valor+"&opcion="+opcion;
		 //	document.getElementById('zone').style.display = 'none';
		//alert(url);
	   	http.open("GET", url, true);
       	http.onreadystatechange = BuscaCiudad;
       }
	   else{  
		  // document.getElementById('zone').style.display = 'block';
		   document.getElementById("zone").disabled = false;
		var valor2 = escape(document.getElementById("city").value);
		 var url = "../micuenta/indice/i_direccion.asp?Numestado="+ valor+"&Numciudad="+valor2+"&opcion="+opcion;
		// alert(url);
		 http.open("GET", url, true);
       	 http.onreadystatechange = BuscaUrbanizacion;
	   }
	   enProceso = true;
       http.send(null);
	   
    }
	
}

function CrearSector(){
			
		var selObj = document.getElementById('zone');
		var selIndex = selObj.selectedIndex;
	    var selText = selObj.options[selIndex].text;   
	   
	   
	   
	  /* var selObj = document.getElementById('zone');
	   var txtIndexObj = document.getElementById('txtIndex');
	   var txtValueObj = document.getElementById('txtValue');
	   var txtTextObj = document.getElementById('txtText');
	
	   var selIndex = selObj.selectedIndex;
	   txtIndexObj.value = selIndex;
	   txtValueObj.value = selObj.options[selIndex].value;
	   txtTextObj.value = selObj.options[selIndex].text;*/
	   //alert(selText);
	   
	  if ((selText=='CREAR NUEVO') ||(selText=='CREAR SECTOR')){
	///	nombre = prompt('Introduce el Nombre del Sector,Parroquia o Urbanización','');
		
		alert ('El Sector / Parroquia / Urbanización,  sera almacenado \n como punto de referencia Para Nuestra Evaluación');
	//	document.getElementById("obs").innerHTML='Sector / Parroquia / Urbanización: '+nombre;		
		document.getElementById("obs").focus();
		//document.getElementById("street").
		}

}

/*********************** FIN BUSCAR CIUDADES***********************/
/**********************Funciones para las funcionabilidad de Variacion para añadir al Carrito***********************/
function ExistVariacion(code,vari) {
		
		var SelVar = document.getElementById("id_var").selectedIndex 
		if (SelVar<0){
			alert('Debe Seleccionar una Variacion antes de \nagregar el Producto al Carrito de Compras');	
			return
		}else{
			window.location="/website/site/pagos/s_carritoagregar.asp?code="+code+"&id_var="+vari+"&i_cantidad=1&car=T";
			}
	
	}
function NotExistVariacion(code,vari) {
			window.location="/website/site/pagos/s_carritoagregar.asp?code="+code+"&id_var="+vari+"&i_cantidad=1&car=T";
			
	}

function ViewCharFecha() {
		
		var SelVar = document.getElementById("fec_nac-field").value 
		if (SelVar.length==2 || SelVar.length==5)
		{
			 document.getElementById("fec_nac-field").value =document.getElementById("fec_nac-field").value+ "/";
		}
	
	}

document.oncontextmenu = function(){return false}

/****************FIN JOHAN RUJANO*************************************/


function valsast()
{
	//alert (document.getElementById("sas-pedido").value);
	/*if ((document.getElementById("pedido").value=='') && (document.getElementById("factura").value==''))
	{
		alert('Debe ingresar el Número de Pedido o el Número de Factura.');
		return;
	}*/

	if ((document.getElementById("nombre").value==''))
	{
		alert('Debe ingresar sus nombres y apellidos.');
		return;
	}

	if ((document.getElementById("ci").value==''))
	{
		alert('Debe ingresar su cedula de identidad.');
		return;
	}
	
	Validar_Email_2('email');

	if ((document.getElementById("motivo").value==''))
	{
		alert('Debe ingresar el motivo de la devolución.');
		return;
	}

	if ((document.getElementById("phone_sas").value==''))
	{
		alert('Debe ingresar un teléfono de contacto.');
		return;
	}

	if ((document.getElementById("opcion").checked==true) && (document.getElementById("otros").value==''))
	{
		alert('Debe ingresar la razón de la devolución.');
		
		return;
	}


	if ((document.getElementById("requer").checked==true) && (document.getElementById("productos").value=='0'))
	{
		alert('Debe seleccionar un producto de la lista.');
		return;
	}
}
