<!--
// © Marcelo Lujan www.elbebe.net
// © zeta 2005 www.z-lab.org
function keyGetCode(e)// v1.0
{
	if (window.event)
	   return window.event.keyCode;
	else if (e)
	   return e.which;
	else
	   return null;
}
function getTrueElement(q){ //v1.0
	var truth;
	if(document.all)
		truth = eval("document.all."+q);
	if(!document.all && document.getElementById)
		truth = document.getElementById(q);
	return truth;
}
function getText(obj) { //v1.2
	var texto='';
	obj = getTrueElement(obj.id);
	if (obj!=null && obj.text) texto=obj.text;
	return texto;
}
function setValueOn(controlId,cadena) //v1.0
{
	var obj;
	obj = getTrueElement(controlId);
	obj.value = cadena;
}
function getValue(obj) { //v1.2
	var texto='';
	obj = getTrueElement(obj.id);
	if (obj!=null){texto=obj.value;}
	return texto;
}


function FRefresh(){
	document.location=document.location;
}
/*
function checkParent(){ try{//v1.2
	if (parent){
		var b = parent.location.href.toLowerCase();
		if(b.indexOf('mainmenu')==-1){
			var c = this.location.toLowerCase();
			if(c.indexOf('cart')==-1 && c.indexOf('close')==-1 && c.indexOf('help')==-1 && c.indexOf('password')==-1 && c.indexOf('welcome')==-1)
				parent.location.href='../mainmenu.html';
			else
				parent.location.href='mainmenu.html';
		}
	}
}catch{alert('checkparent?');}
}
checkParent();
*/
//-->