function seeForm(){
	var p = getCookie('pais')
	document.write("<p>Seleccione su pais para información local <br>" +
			"<SELECT NAME='pais'>")
	if (p == null) {
		document.write("<OPTION VALUE='territorio' selected>Territorio</OPTION>")
		document.write("<OPTION VALUE='chile'>Chile</OPTION>")
		document.write("<OPTION VALUE='peru'>Per&uacute;</OPTION>")
		document.write("<OPTION VALUE='bolivia'>Bolivia</OPTION>")
		document.write("<OPTION VALUE='ecuador'>Ecuador</OPTION>")
	}
	if (p=="chile")
	{
		document.write("<OPTION VALUE='territorio'>Territorio</OPTION>")
		document.write("<OPTION VALUE='chile' selected>Chile</OPTION>")
		document.write("<OPTION VALUE='peru'>Per&uacute;</OPTION>")
		document.write("<OPTION VALUE='bolivia'>Bolivia</OPTION>")
		document.write("<OPTION VALUE='ecuador'>Ecuador</OPTION>")
	}
	if (p=="peru")
	{
		document.write("<OPTION VALUE='territorio'>Territorio</OPTION>")
		document.write("<OPTION VALUE='chile'>Chile</OPTION>")
		document.write("<OPTION VALUE='peru' selected>Per&uacute;</OPTION>")
		document.write("<OPTION VALUE='bolivia'>Bolivia</OPTION>")
		document.write("<OPTION VALUE='ecuador'>Ecuador</OPTION>")
	}
	if (p=="bolivia")
	{
		document.write("<OPTION VALUE='territorio'>Territorio</OPTION>")
		document.write("<OPTION VALUE='chile'>Chile</OPTION>")
		document.write("<OPTION VALUE='peru'>Per&uacute;</OPTION>")
		document.write("<OPTION VALUE='bolivia'selected>Bolivia</OPTION>")
		document.write("<OPTION VALUE='ecuador'>Ecuador</OPTION>")
	}
	if (p=="ecuador")
	{
		document.write("<OPTION VALUE='territorio'>Territorio</OPTION>")
		document.write("<OPTION VALUE='chile'>Chile</OPTION>")
		document.write("<OPTION VALUE='peru'>Per&uacute;</OPTION>")
		document.write("<OPTION VALUE='bolivia'>Bolivia</OPTION>")
		document.write("<OPTION VALUE='ecuador'selected>Ecuador</OPTION>")
	}
	document.write("</SELECT>")
	document.write("<input type='submit' value='sel' name='seleccionar'>")
}


function setCookie(nombre,valor)
{
   document.cookie= nombre +"=" + escape(valor)
}


function getCookie(nombre) {
  var buscamos = nombre + "=";
  if (document.cookie.length > 0) 
  {
    i = document.cookie.indexOf(buscamos);
    if (i != -1) {
      i += buscamos.length;
      j = document.cookie.indexOf(";", i);
      if (j == -1)
        j = document.cookie.length;
      return unescape(document.cookie.substring(i,j));
    }
  }
}


function BorrarCookie(nombre) {
   document.cookie= nombre +"=" + null
}


function IntroducirCookie(nombre) {
	if (nombre != "") 
		setCookie("pais", nombre)
}

function register(pais) {
   setCookie("pais", pais)
}
