// JavaScript Document

//function doSearch() {
//    var searchQuery = encodeURI(document.getElementById('domain').value);
//    if (searchQuery.length > 0) document.location.href = "AEPS_ResultadosBusqueda.aspx?query=" + searchQuery;
//    return true;
//}

//Centrar Formulario de susbcripcion a boletin: en otra pagina.
function VerEstado(z)
{
		if (z.value != '')
		{
		    var y=document.forms.form1;
			y.pommo_signup.value = z;
			//y.action= "http://www.regalls.com/boletines/user/process.php";
			y.target= "confirma";
			
			mywindow = window.open(y.action= "http://www.regalls.com/boletines/user/process.php","confirma", "width=600px height=500px, status=no scrollbars=no, location=no, resizable=no, toolbar=0 menubar=no");
		    iz=(screen.width-document.body.clientWidth) / 2;
		    de=(screen.height-document.body.clientHeight) / 2;
		    mywindow.moveTo(iz,de);
			
		}
		return false;
	
}
	
function changeAction()
{
    var x=document.forms.form1;
    x.action="";
	x.target="";
}
//para estilo de img
/*  <script type="text/javascript">
	
var gradientshadow={}
gradientshadow.depth=6 //Depth of shadow in pixels
gradientshadow.containers=[]

gradientshadow.create=function(){
var a = document.all ? document.all : document.getElementsByTagName('*')
for (var i = 0;i < a.length;i++) {
	if (a[i].className == "shadow") {
		for (var x=0; x<gradientshadow.depth; x++){
			var newSd = document.createElement("DIV")
			newSd.className = "shadow_inner"
			newSd.id="shadow"+gradientshadow.containers.length+"_"+x //Each shadow DIV has an id of "shadowL_X" (L=index of target element, X=index of shadow (depth) 
			if (a[i].getAttribute("rel"))
				newSd.style.background = a[i].getAttribute("rel")
			else
				newSd.style.background = "black" //default shadow color if none specified
			document.body.appendChild(newSd)
		}
	gradientshadow.containers[gradientshadow.containers.length]=a[i]
	}
}
gradientshadow.position()
window.onresize=function(){
	gradientshadow.position()
}
}

gradientshadow.position=function(){
if (gradientshadow.containers.length>0){
	for (var i=0; i<gradientshadow.containers.length; i++){
		for (var x=0; x<gradientshadow.depth; x++){
  		var shadowdiv=document.getElementById("shadow"+i+"_"+x)
			shadowdiv.style.width = gradientshadow.containers[i].offsetWidth + "px"
			shadowdiv.style.height = gradientshadow.containers[i].offsetHeight + "px"
			shadowdiv.style.left = gradientshadow.containers[i].offsetLeft + x + "px"
			shadowdiv.style.top = gradientshadow.containers[i].offsetTop + x + "px"
		}
	}
}
}

if (window.addEventListener)
window.addEventListener("load", gradientshadow.create, false)
else if (window.attachEvent)
window.attachEvent("onload", gradientshadow.create)
else if (document.getElementById)
window.onload=gradientshadow.create

	</script>*/





