//*** preload imagenes ***
function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
//*** ventana centrada ***
function ventanaCentrada(doc,nombre,anchura,altura, noScroll){
	noScroll = noScroll ? "no" : "yes";
	xpos = ((screen.width)/2)-(anchura/2);
	ypos = ((screen.height)/2)-(altura/2);
	ventanaFlotante = window.open(doc,nombre,'width='+anchura+',height='+altura+',left='+xpos+',top='+ypos+'directories=0,resizable=0,location=0,status=0,scrollbars='+noScroll+',toolbar=0,menubar=0,titlebar=1');
}
function getStyle(el,styleProp)
{
	var x = document.getElementById(el);
	if (window.getComputedStyle)
		var y = window.getComputedStyle(x,null).getPropertyValue(styleProp);
	else if (x.currentStyle)
		var y = eval('x.currentStyle.' + styleProp);
	return y;
}
function getProvincias(){
	var pais = $('pais').value;
	new Ajax.Updater( 'div_provincia', '/js/ajax/get_provincias.php?pais='+pais, {asynchronous:true,evalScripts:true} );
}