function show_hide(opcion,parametro){
document.getElementById(parametro).style.display=opcion;	
}


function vista_check(valor_url,resolucion){
	//document.getElementById(var1).checked=true;	
	//document.getElementById(ab).checked=false;
	 SetCookie ('pag',valor_url,0,'','','')
	  SetCookie ('resolucion',resolucion,0,'','','')
	  ejecutar()

}



function SetCookie (name,value,expires,path,domain,secure) {
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}

function DeleteCookie (name,path,domain) {
if (getCookieValIni(name)) {
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}





function resolucion(var1,var2){
	var valor1
	document.getElementById(var1).checked==true;
	document.getElementById(var2).checked=false;	
	valor1=document.getElementById(var1).value;
	
 	SetCookie ('resolucion',valor1,0,'','','')

}


function leerCookie(nombre) {
   a = document.cookie.substring(document.cookie.indexOf(nombre + '=') + nombre.length + 1,document.cookie.length);
   if(a.indexOf(';') != -1)a = a.substring(0,a.indexOf(';'))
   return a; 
} 
function ejecutar(){
	var a, b, suma

	b=leerCookie('resolucion');
	var datos, datos1
	var bandera

		bandera=false;
	datos1=""

		if (b==""){
		datos="DEBES SELECCIONAR EL ASPECTO VISUAL\n";
		datos1+=datos;
		bandera=true;
		}
		
	if(bandera==true){
	alert(datos1);
	}else{
	location.reload();
	}
}


//************************************************************ funcion  para manejo  de la seleccion de colores *****//

function muestra_tamano_imagenes( valor, estado){
document.getElementById(valor).style.display=estado;	
}
//************************************************************************** terminacion de funcion para los colores********/



function color_asignado(valor){
	
	SetCookie ('fondo',valor,0,'','','')
	location.reload();
}
