var xmlHttp

function showHint(str)
{
if (str.length==0)
  { 
  document.getElementById("txtHint").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="Includes/gethintMovie.asp";
url=url+"?q="+str;+"&p=0";
//alert (url);
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.send(null);
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function fnOpenPopUpWithClick(page){
    window.open(page,'25','width=592,height=442,resizable=0,Scrollbars=0,titlebar=0,Status=0,valign=middle,align=center,location=NO');	  
  }  
  
function selecciona_peli()
        {
			document.getElementById('stParam2').value = document.getElementById('myselect').value ;
			
        }  

function muestra_oculta(id)
		{
			
			if ((document.getElementById('stParam2').value == '') || (document.getElementById('stParam2').value.length <= 3))
			{
				document.all[id].className='contraido';
			}
			else
			{
				document.all[id].className='expandido';
			}			
		}
		
function alerta()
		{
			alert(document.getElementById('stParam2').value);
		}
