<!--
var offset;
var id;
var x;
var id2;
var aux;
offset = 0;

function getRef(obj) {if(typeof obj == "string") return document.getElementById(obj);}	
function sf(){document.getElementById('fNomContacto').focus();}
function getValue(idObj) {str = getRef(idObj).style.left;str = str.substring(0,str.lastIndexOf("p"));return str;}

function noop() {
	alert("hola");
	if (aux==1) return;
	else aux++;
}

function goAni() {
	if (x<30) {
		x++;
		getRef("arrow").style.left=x;
	}
	else {
		clearInterval(id);
	}
}

function goInverseAni() {
	alert("hola");
	x=getRef("arrow").style.left;
	if (x>10) {
		
		x--;
		getRef("arrow").style.left=x;
	}
	else {
		clearInterval(id2);
	}
}

function doStopAni() {
	clearInterval(id);
	getRef("arrow").style.left = 10;
	//x = getValue("arrow");
	//id2 = setInterval("doInverseAni()",10);	
}		
function doStartAni() {			
	id = 0;
	//clearInterval(id2);
	x = getValue("arrow");
	id = setInterval("goAni()", 10);
}
function checkForm(form) {		
	for (var i=0; i<form.elements.length; i++) {
		if (form.elements[i].value == "") {
			alert("Se necesita completar todos los campos");
			return false;
		}
	}
	form.submit();
}
