function solo_num(myfield, e, dec, tipo){
	var key;
	var keychar;
	var cad='';
	if (tipo=='num') cad='0123456789';
	if (tipo=='tel') cad='0123456789-()';
	
	if (window.event) key = window.event.keyCode;
	else if (e) key = e.which;
	else return true;
	keychar = String.fromCharCode(key);
	if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27)) return true;
	else 
		if (((cad).indexOf(keychar) > -1)) return true;
		else 
			if (dec && (keychar == ".")){
	   			myfield.form.elements[dec].focus();
	   			return false;
	   		}
			else
	   			return false;
}

function cerrar(){
	window.close();
}

function volver(){
	window.history.back();  
}
function form_reg(interno){
	if (interno){
		//window.open('index.php','registrando','width=480, height=550, scrollbars=1');
		//form1.action='index.php';
		document.location.href='index.php';
		
	}else{
		//window.open('miembros/index.php','registrando','width=480, height=550, scrollbars=1');
		//form1.action='miembros/index.php';
		document.location.href='miembros/index.php';
	}
	//form1.submit();
}

function abrir_vip(url_vip){
	//window.open('../vip/vip.php');
	document.location.href=url_vip;
}

