<!--
      if (document.images) 
	{            


            lbut1on = new Image();   lbut1on.src =  "../images/newuser01.gif"; 
            lbut1off = new Image();  lbut1off.src = "../images/newuser.gif"; 
            lbut2on = new Image();   lbut2on.src =  "../images/forgotpass01.gif"; 
            lbut2off = new Image();  lbut2off.src = "../images/forgotpass.gif"; 
            lbut3on = new Image();   lbut3on.src =  "../images/selectall01.gif"; 
            lbut3off = new Image();  lbut3off.src = "../images/selectall.gif"; 
            lbut4on = new Image();   lbut4on.src =  "../images/play01.gif"; 
            lbut4off = new Image();  lbut4off.src = "../images/play.gif"; 
            lbut5on = new Image();   lbut5on.src =  "../images/pcds01.gif"; 
            lbut5off = new Image();  lbut5off.src = "../images/pcds.gif"; 
            lbut6on = new Image();   lbut6on.src =  "../images/clearall01.gif"; 
            lbut6off = new Image();  lbut6off.src = "../images/clearall.gif"; 
            lbut7on = new Image();   lbut7on.src =  "../images/more01.gif"; 
            lbut7off = new Image();  lbut7off.src = "../images/more.gif";  
            lbut8on = new Image();   lbut8on.src =  "../images/more01.gif"; 
            lbut8off = new Image();  lbut8off.src = "../images/more.gif";  
            lbut9on = new Image();   lbut9on.src =  "../images/mypcds_on.gif"; 
            lbut9off = new Image();  lbut9off.src = "../images/mypcds.gif";  
            lbut10on = new Image();   lbut10on.src =  "../images/bollywood_on.gif"; 
            lbut10off = new Image();  lbut10off.src = "../images/bollywood.gif";  
            lbut11on = new Image();   lbut11on.src =  "../images/regional_on.gif"; 
            lbut11off = new Image();  lbut11off.src = "../images/regional.gif";  
            lbut12on = new Image();   lbut12on.src =  "../images/download_on.gif"; 
            lbut12off = new Image();  lbut12off.src = "../images/download.gif";  
            lbut13on = new Image();   lbut13on.src =  "../images/liveradios_on.gif"; 
            lbut13off = new Image();  lbut13off.src = "../images/liveradios.gif";  
            lbut14on = new Image();   lbut14on.src =  "../images/mypcds_button_on.gif"; 
            lbut14off = new Image();  lbut14off.src = "../images/mypcds_button.gif";  
            lbut15on = new Image();   lbut15on.src =  "../images/myprofile_on.gif"; 
            lbut15off = new Image();  lbut15off.src = "../images/myprofile.gif";  
            lbut16on = new Image();   lbut16on.src =  "../images/logout_on.gif"; 
            lbut16off = new Image();  lbut16off.src = "../images/logout.gif";  
            lbut17on = new Image();   lbut17on.src =  "../images/actors_on.jpg";  
            lbut17off = new Image();  lbut17off.src = "../images/actors.jpg";  
            lbut18on = new Image();   lbut18on.src =  "../images/actresses_on.jpg";  
            lbut18off = new Image();  lbut18off.src = "../images/actresses.jpg";  
            lbut19on = new Image();   lbut19on.src =  "../images/selectall_on.jpg";  
            lbut19off = new Image();  lbut19off.src = "../images/selectall.jpg";  
            lbut20on = new Image();   lbut20on.src =  "../images/playselected_on.jpg";  
            lbut20off = new Image();  lbut20off.src = "../images/playselected.jpg";  
            lbut21on = new Image();   lbut21on.src =  "../images/clearall_on.jpg";  
            lbut21off = new Image();  lbut21off.src = "../images/clearall.jpg";
			//duplicate entry
			lbut55on = new Image();   lbut55on.src =  "../images/selectall_on.jpg";  
            lbut55off = new Image();  lbut55off.src = "../images/selectall.jpg";  
            lbut56on = new Image();   lbut56on.src =  "../images/playselected_on.jpg";  
            lbut56off = new Image();  lbut56off.src = "../images/playselected.jpg";  
            lbut57on = new Image();   lbut57on.src =  "../images/clearall_on.jpg";  
            lbut57off = new Image();  lbut57off.src = "../images/clearall.jpg";  
			lbut58on = new Image();   lbut58on.src =  "../images/pcdselected_on.jpg";  
            lbut58off = new Image();  lbut58off.src = "../images/pcdselected.jpg";  

            lbut22on = new Image();   lbut22on.src =  "../images/backtopcd_on.jpg";  
            lbut22off = new Image();  lbut22off.src = "../images/backtopcd.jpg";  
            lbut23on = new Image();   lbut23on.src =  "../images/pcdselected_on.jpg";  
            lbut23off = new Image();  lbut23off.src = "../images/pcdselected.jpg";  
            lbut24on = new Image();   lbut24on.src =  "../images/jukeboxnavrev_on.gif";  
            lbut24off = new Image();  lbut24off.src = "../images/jukeboxnavrev.gif";  
            lbut25on = new Image();   lbut25on.src =  "../images/jukeboxnavply_on.gif";  
            lbut25off = new Image();  lbut25off.src = "../images/jukeboxnavply.gif";  
            lbut26on = new Image();   lbut26on.src =  "../images/jukeboxnavpos_on.gif";  
            lbut26off = new Image();  lbut26off.src = "../images/jukeboxnavpos.gif";  
            lbut27on = new Image();   lbut27on.src =  "../images/jukeboxnavfor_on.gif";  
            lbut27off = new Image();  lbut27off.src = "../images/jukeboxnavfor.gif";  
            lbut28on = new Image();   lbut28on.src =  "../images/shuffle_on.gif";  
            lbut28off = new Image();  lbut28off.src = "../images/shuffle.gif";  
            lbut29on = new Image();   lbut29on.src =  "../images/repeat_on.gif";  
            lbut29off = new Image();  lbut29off.src = "../images/repeat.gif";  
            lbut30on = new Image();   lbut30on.src =  "../images/muteon.gif";  
            lbut30off = new Image();  lbut30off.src = "../images/mute.gif";  
            lbut31on = new Image();   lbut31on.src =  "../images/arrow_on.gif";  
            lbut31off = new Image();  lbut31off.src = "../images/arrow.gif";  
            lbut32on = new Image();   lbut32on.src =  "../images/playpcd_on.gif";  
            lbut32off = new Image();  lbut32off.src = "../images/playpcd.gif";  
            lbut33on = new Image();   lbut33on.src =  "../images/mail_on.gif";  
            lbut33off = new Image();  lbut33off.src = "../images/mail.gif";  
            lbut34on = new Image();   lbut34on.src =  "../images/add_on.gif";  
            lbut34off = new Image();  lbut34off.src = "../images/add.gif";  
            lbut35on = new Image();   lbut35on.src =  "../images/pcddetails_on.gif";  
            lbut35off = new Image();  lbut35off.src = "../images/pcddetails.gif";  
            lbut36on = new Image();   lbut36on.src =  "../images/tunein_on.gif";  
            lbut36off = new Image();  lbut36off.src = "../images/tunein.jpg";  
            lbut37on = new Image();   lbut37on.src =  "../images/tunein_on.gif";  
            lbut37off = new Image();  lbut37off.src = "../images/tunein.jpg";  
            lbut38on = new Image();   lbut38on.src =  "../images/tunein_on.gif";  
            lbut38off = new Image();  lbut38off.src = "../images/tunein.jpg";  
            lbut39on = new Image();   lbut39on.src =  "../images/tunein_on.gif";  
            lbut39off = new Image();  lbut39off.src = "../images/tunein.jpg";  
            lbut40on = new Image();   lbut40on.src =  "../images/tunein_on.gif";  
            lbut40off = new Image();  lbut40off.src = "../images/tunein.jpg";  
            lbut41on = new Image();   lbut41on.src =  "../images/tunein_on.gif";  
            lbut41off = new Image();  lbut41off.src = "../images/tunein.jpg";  
            lbut42on = new Image();   lbut42on.src =  "../images/tunein_on.gif";  
            lbut42off = new Image();  lbut42off.src = "../images/tunein.jpg";  
            lbut43on = new Image();   lbut43on.src =  "../images/tunein_on.gif";  
            lbut43off = new Image();  lbut43off.src = "../images/tunein.jpg";  
            lbut44on = new Image();   lbut44on.src =  "../images/tunein_on.gif";  
            lbut44off = new Image();  lbut44off.src = "../images/tunein.jpg";  
            lbut45on = new Image();   lbut45on.src =  "../images/filmography_on.gif";  
            lbut45off = new Image();  lbut45off.src = "../images/filmography.gif";  
            lbut46on = new Image();   lbut46on.src =  "../images/gallery_on.gif";  
            lbut46off = new Image();  lbut46off.src = "../images/gallery.gif";  
            lbut47on = new Image();   lbut47on.src =  "../images/slideshow_on.gif";  
            lbut47off = new Image();  lbut47off.src = "../images/slideshow.gif";  
            lbut48on = new Image();   lbut48on.src =  "../images/more01.gif"; 
            lbut48off = new Image();  lbut48off.src = "../images/more.gif";  

            lbut49on = new Image();   lbut49on.src =  "../images/playpcd_on.gif";  
            lbut49off = new Image();  lbut49off.src = "../images/playpcd.gif";  

            lbut50on = new Image();   lbut50on.src =  "../images/pcddetails_on.gif";  
            lbut50off = new Image();  lbut50off.src = "../images/pcddetails.gif"; 

            lbut51on = new Image();   lbut51on.src =  "../images/playpcd_on.gif";  
            lbut51off = new Image();  lbut51off.src = "../images/playpcd.gif";  

            lbut52on = new Image();   lbut52on.src =  "../images/pcddetails_on.gif";  
            lbut52off = new Image();  lbut52off.src = "../images/pcddetails.gif"; 

            lbut53on = new Image();   lbut53on.src =  "../images/playpcd_on.gif";  
            lbut53off = new Image();  lbut53off.src = "../images/playpcd.gif";  

            lbut54on = new Image();   lbut54on.src =  "../images/pcddetails_on.gif";  
            lbut54off = new Image();  lbut54off.src = "../images/pcddetails.gif"; 
			
			//duplicate entry for wallpaper_main and show_large page

			lbut59on = new Image();   lbut59on.src =  "../../images/mypcds_on.gif"; 
            lbut59off = new Image();  lbut59off.src = "../../images/mypcds.gif";  
            lbut60on = new Image();   lbut60on.src =  "../../images/bollywood_on.gif"; 
            lbut60off = new Image();  lbut60off.src = "../../images/bollywood.gif";  
            lbut61on = new Image();   lbut61on.src =  "../../images/regional_on.gif"; 
            lbut61off = new Image();  lbut61off.src = "../../images/regional.gif";  
            lbut62on = new Image();   lbut62on.src =  "../../images/download_on.gif"; 
            lbut62off = new Image();  lbut62off.src = "../../images/download.gif";  
            lbut63on = new Image();   lbut63on.src =  "../../images/liveradios_on.gif"; 
            lbut63off = new Image();  lbut63off.src = "../../images/liveradios.gif";  
			lbut64on = new Image();   lbut64on.src =  "../../images/newuser01.gif"; 
            lbut64off = new Image();  lbut64off.src = "../../images/newuser.gif"; 
            lbut65on = new Image();   lbut65on.src =  "../../images/forgotpass01.gif"; 
            lbut65off = new Image();  lbut65off.src = "../../images/forgotpass.gif"; 
			lbut66on = new Image();   lbut66on.src =  "../../images/filmography_on.gif";  
            lbut66off = new Image();  lbut66off.src = "../../images/filmography.gif";  
            lbut67on = new Image();   lbut67on.src =  "../../images/gallery_on.gif";  
            lbut67off = new Image();  lbut67off.src = "../../images/gallery.gif";  
            lbut68on = new Image();   lbut68on.src =  "../../images/slideshow_on.gif";  
            lbut68off = new Image();  lbut68off.src = "../../images/slideshow.gif";  
            lbut69on = new Image();   lbut69on.src =  "../../images/more01.gif"; 
            lbut69off = new Image();  lbut69off.src = "../../images/more.gif"; 
			 lbut70on = new Image();  lbut70on.src =  "../../images/arrow_on.gif";  
             lbut70off = new Image(); lbut70off.src = "../../images/arrow.gif";  
             lbut71on = new Image();  lbut71on.src =  "../../images/mypcds_button_on.gif"; 
             lbut71off = new Image(); lbut71off.src = "../../images/mypcds_button.gif";  
             lbut72on = new Image();  lbut72on.src =  "../../images/myprofile_on.gif"; 
             lbut72off = new Image(); lbut72off.src = "../../images/myprofile.gif";  
             lbut73on = new Image();  lbut73on.src =  "../../images/logout_on.gif"; 
             lbut73off = new Image(); lbut73off.src = "../../images/logout.gif";  
            


    }
    function imgOn(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "on.src");       
            }
    }
    function imgOff(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "off.src");        
            }
    }

// -->

// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src="'+imageURL+'" style="display:block"></body></html>');
close();		
}}

//generic code which is using across all the files

function validate(obj)
  {
	switch(obj.name){
		case "email"  : if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.value)){
						return (true)
						}
						alert("Invalid E-mail Address! Please re-enter.")
						obj.select();
						return(false);
						break;
		case "password"  : if(obj.value.length<1)
					  {
							alert("Please Enter Password");
							obj.select();
							return(false);
					  }
							break;
	}
	return(true);
}

 function login()
 {
	 if(!validate(document.auth.email)) return false;
	 if(!validate(document.auth.password)) return false;
	document.auth.action="../Authlogin.php";
	 document.auth.method="post";
	 document.auth.submit();

 }
function doSearch()
{
	
	var squery = document.auth.query.value;
	var searchin =document.auth.search_in.value;
	//var squery=  query.replace(" ","-");
if(squery != "")
{	
	if(searchin == 'ACTORS')
	{
	 document.auth.action="../cast/"+squery+"-search.html";
	}
	
	else if(searchin == 'MUSIC')
	{  
	document.auth.action="../music-director/"+squery+"-search.html";
	}
	else if((searchin=="TITLE") || (searchin=="ALBUM") ||  (searchin=="COMPLETE") )
	{
	document.auth.action="../search/"+squery+"-in-"+searchin+".html";
	}	
	document.auth.method="post";
	document.auth.submit();
}
else
	alert("Invalid search query, please try again !!!"); 
}

function setSearchValue()
{
     var obj = document.auth.search_in;
	 var index=obj.selectedIndex;
	 var url=obj.options[index].value;

	 if(url == 'YEAR')
	 {
           document.auth.query.style.display="none";
		   document.auth.sel1.style.display="";

	 }
	 else
     {
          document.auth.query.style.display="";
		  document.auth.sel1.style.display="none";

	 }

}

function displayResult()
{
    var obj = document.auth.sel1;
    var index=obj.selectedIndex;
	var url=obj.options[index].value;

    if(url == null)
    {
        alert("Please Select the Year");
		return;
 	}
	else
    {
	document.auth.action="../jukebox/hindi-movies-"+url+".html";
	document.auth.method="post";
	document.auth.submit();
	}
}

/*
  Forgot Password methods
  
*/

function validate(obj)
  {
	switch(obj.name){
		case "email"  : if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.value)){
						return (true)
						}
						alert("Invalid E-mail Address, Please re-enter.")
						obj.select();
						return(false);
						break;
	
	}
	return(true);
}

 function forgetValue()
 {
	 if(!validate(document.fpass.email)) return false;
	 document.fpass.action="sendforgotpass.php";
	 document.fpass.method="post";
	 document.fpass.submit();

 }

/*
// MY PCD AND JUKEBOX FUNCTIONS
*/
function checkPCD()
{
   var passwd = "<? echo $password; ?>";

   if(passwd.length == 0)
   {

         alert("Please Login First");
		 return;

   }
   document.auth.action="mypcd.php";
   document.auth.method="post";
   document.auth.submit();

}

function getAlbum(id)
{

   //var aname = id.replace(" ","-");
   document.auth.action="../albumindetail.php?albumid="+aname+".html";
   document.auth.method="post";
   document.auth.submit();
}

//common pcd methods --- search result

function addpcd(id)
{

    var name = "<? echo $name; ?>";
	var pwd = "<? echo $password; ?>";

    if((name != "") && (pwd != ""))
	{
      var URL = "../addtopcd.php?songid="+id;
	  newwin = window.open(URL,'addtopcd','width=330,height=300,resizable=0');
	}
	else
    {
        alert("Cannot Add to PCD , Please Login in");
		return;

	}
}

function checkall()
{

   var len =document.auth.asid;
   if(len.length != null)
   {
		   for (var i = 0; i < len.length ; i++) {

				len[i].checked = true;
			}
   }
   else
   {
       len.checked = true;
   }
}

function clearall()
{
	document.forms.auth.reset();
}


function pcdSelected()
{
   var name = "<? echo $name; ?>";
   var pwd = "<? echo $password; ?>";
   var song="";
  if((name != "") && (pwd != ""))
  {
	   var len =document.auth.asid;
	   if(len.length != null)
	   {
			   for (var i = 0; i < len.length ; i++) {

					if(len[i].checked)
					{

						   song = song+ len[i].value+",";
					}

				}
              song= song.substring(0,song.length-1);
	   }
	   else
	   {

			 if(len.checked)
			 {
				  song=len.value;
			 }
	   }

	  if(song.length > 0)
      {
		  var URL = "../addtopcd.php?addbunch=1&songid="+song;
		  newwin = window.open(URL,'addtopcd','width=330,height=300,resizable=0');
	  }
	  else
      {
           alert("Please Select to Add PCD");
		   return;

	  }

  }
  else
  {
        alert("Cannot Add to PCD , Please Login in");
		return;
  }

}
function playSelected(songid)
{

       var song="";   
	   var len =document.auth.asid;
	   if(len.length != null)
	   {
			   for (var i = 0; i < len.length ; i++) {

					if(len[i].checked)
					{

						   song = song+ len[i].value+",";
					}

				}
              song= song.substring(0,song.length-1);
	   }
	   else
	   {

			 if(len.checked)
			 {
				  song=len.value;
			 }
	   }


	  if(song.length > 0)
      {
		
		  var URL = "../jukebox.php?songid="+song;
		    newwin = window.open(URL,'play','width=728,height=333,left=150,top=150,scrollbars=0,resizable=0');
	  }
	  
	  else
      {
           alert("Please Select to Play");
		   return;

	  }

  }
function play(){
newwin = window.open('','play','width=728,height=333,left=150,top=150,scrollbars=0,resizable=0');
return true
}

function newWin(){
newwin = window.open('','newWin','width=600,height=600,left=280,top=50,scrollbars=1,resizable=0');
}
