<!-- Start javascripts.php -->
<script type="text/javascript">

function hacerClk( url ) {
  window.location = url;
}

function cambiarCls( obj, classname, hand ) {
  if( hand ) { 
     obj.style.cursor = 'hand'; 
  }
  else {
     obj.style.cursor = 'default';
  }
  //refToElement.className = 'newclass', or refToElement.setAttribute('class', 'newclass')
  if( obj.className ) {
    obj.className = classname;
  }
  else {
    obj.setAttribute('class',classname);
  }
}

function mClassX( obj, classname, hand ) {
  if( hand ) { 
     obj.style.cursor = 'hand'; 
  }
  else {
     obj.style.cursor = 'default';
  }
  //refToElement.className = 'newclass', or refToElement.setAttribute('class', 'newclass')
  if( obj.className ) {
    obj.className = classname;
  }
  else {
    obj.setAttribute('class',classname);
  }
}

function MM_findObj(n, d) { //v4.01
  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_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function openWindowNewsletter(url){
	window.open(url, 'pollwin', 'width=456, height=280, scrollbars=no, toolbar=no, resizable=no, location=no, screenX=150, screenY=100, left=150, top=100');
}

function suscribe(){
	var url = "http:///pages/show-newsletter.php";
	openWindowNewsletter(url);
}

function openWindowRecommend(url){
	window.open(url, 'pollwin', 'width=456, height=280, scrollbars=no, toolbar=no, resizable=no, location=no, screenX=150, screenY=100, left=150, top=100');
}

function recommend(){
	var url = "http:///pages/show-recommend.php";
	openWindowRecommend(url);
}
function openWindow(url){
	window.open(url, 'pollwin', 'width=456, height=280, scrollbars=no, toolbar=no, resizable=no, location=no, screenX=150, screenY=100, left=150, top=100');
}

function vote(){
	var url = "http:///pages/show-poll.php";
	openWindow(url);
}
</script>
<!-- End javascripts.php -->