<!--
function set_main(){
	window.name = "hola_main";	
}

var targetURL="index.php"
//change the second to start counting down from


function countredirect(){
	//document.redirect.redirect2.value = "set in";
	//alert( document.redirect.redirect2.value + ", " + currentsecond);
	if (currentsecond!=1){
		currentsecond-=1
		document.redirect.redirect2.value=currentsecond
	}else{
		window.location=targetURL
		return
	}
	
	setTimeout("countredirect()",1000)
}

function popup(mylink, windowname, windowWidth, windowHeight)
{
	windowWidth = windowWidth;
	windowHeight = windowHeight;
	var centerWidth = (window.screen.width - windowWidth) / 2;
	var centerHeight = (window.screen.height - windowHeight) / 2;

	if (! window.focus)return true;
		var href;
		if (typeof(mylink) == 'string')
			href=mylink;
		else
			href=mylink.href;
	//window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
	window.open(href, windowname, 'height=' + windowHeight + ',width=' + windowWidth + ',left=' + centerWidth + ', top=' + centerHeight + ' ,scrollbars=yes,statusbar=0,menubar=0');
	return false;
}

function popupform(myform, windowname, windowWidth, windowHeight)
{

var centerWidth = (window.screen.width - windowWidth) / 2;
var centerHeight = (window.screen.height - windowHeight) / 2;

if (! window.focus)return true;
window.open('', windowname, 'height=' + windowHeight + ',width=' + windowWidth + ',left=' + centerWidth + ', top=' + centerHeight + ' ,scrollbars=no,statusbar=0,menubar=0');
myform.target=windowname;
return true;
}

function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}

function submitformclose(mylink, myform, closeme, closeonly)
{
myform.target=window.opener;
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}

function verify(ob){  

	   return confirm( ob );
}

function trim(str){
	return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}
-->
