// JavaScript Document

function olvidocontra()
{
contra = window.open('olvidocontrasena.asp','contra','status=no,menu=no,height=150,width=300,scrollbars=yes');
contra.focus();
}


function QueryStr(form)
{
Qstr = "?";
for(i=0;i<form.elements.length;i++)
if(form.elements[i].name!="") Qstr=Qstr+form.elements[i].name+"="+form.elements[i].value+"&";
Qstr = Qstr.substr(0,Qstr.length-1);
return Qstr;
}



function logoff(){
ajaxpage('login.asp?opt=logout&message=Has%20Terminado%20Sesion%20Correctamente','content');
top.document.getElementById("LoginChart").innerHTML="<a href=javascript:ajaxpage('registro.asp','content'); target='_self'>Registrar</a> | <a href=javascript:ajaxpage('login.asp','content'); target='_self'>Login</a>";
top.document.getElementById("LoginImage").innerHTML="<img src='images/busqueda.png' width='155' height='18' onClick=ajaxpage('login.asp','content') style='cursor:hand' />";
top.document.getElementById("register_CartImage").innerHTML="<img src='images/login.png' width='155' height='25' onClick=ajaxpage('registro.asp','content') style='cursor:hand' />";
top.document.getElementById("pedidosImage").innerHTML="<img src='images/lineamenu.png' width='155' height='1'/>";
}

function Register_DoSubmit(opt) {
 document.one.opt.value = opt;	
var url = 'registro.asp'+QueryStr(document.one);
ajaxpage(url,'content');
	//		document.all("frmContact").submit();

}

function ciudChange(obj){
var valor =  obj.value ;
if(valor!="0") document.getElementById("otroCiudad").style.display = "none";
else document.getElementById("otroCiudad").style.display = "block";
	
}

function paisChange(obj){
	
	
}