function setpopup(mypage,myname,w,h) {
 var win=null; { myleft=(screen.width)?(screen.width-w)/2:100; 
   mytop=(screen.height)?(screen.height-h)/2:100; }
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no"; 
win=window.open(mypage,myname,settings);
win.focus();
}

function maximizar() { 
if (top.location != location) top.location.href = location.href;
 self.moveTo(0,0);
 self.resizeTo(screen.availWidth,screen.availHeight);}

function parent() {
if(top==self) { setTimeout("location='http://novaplastica.com'",2000)  }
}



function autotime() {
setTimeout("location='http://novaplastica.com'",3000)}

function Validar(form) {
  if (form.email.value == "")
  { alert("Por favor ingrese su dirección de e-mail"); form.email.focus(); return; }
  if (form.email.value.indexOf('@', 0) == -1 || form.email.value.indexOf('.', 0) == -1 || form.email.value.indexOf(' ') != -1)
  { alert("Dirección de e-mail inválida verifiquela"); 
  form.email.focus(); return; }
  if (form.Nombre.value == "")
  { alert("Por favor ingrese su nombre"); form.Nombre.focus(); return; }
  if (form.Telefono.value == "")
  { alert("Por favor ingrese su Telefono"); form.Telefono.focus(); return; }
  if (form.Comentarios.value == "")
  { alert("Por favor ingrese su Mensaje"); form.Comentarios.focus(); return; }
  form.submit();
}

function MM_findObj(n, d) { 
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { 
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

message = "Bienvenidos a la página de  .:Novapel & Co.:.  Porque cuando te ves bien, te sientes mejor " + "D.R.® Novapel & Co." +  "update www.webgdl.com";
  scrollSpeed = 25
  lineDelay   = 3500
  txt         = ""
  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }
scrollText(0)

function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}

else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")
function disableselect(e){
return false
}
function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
/******************************************
* No Click Script - HTML.Dynamico 2001
* Mas Scripts y Recursos para tu web en:
* http://www.htmldynamico.cjb.net
******************************************/
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")