// JavaScript Document
<!--


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + 'id' + " = window.open(URL, '" + 'id' + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=584,height=482');");
}

function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + 'id' + " = window.open(URL, '" + 'id' + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=320');");
}
// End -->

function send() {
      window.open("http://music.pz10.com/send/","sendpage","toolbar=no,scrollbars=no,directories=no, statusbar=no,menubar=no,resizable=no,width=500,height=450")
     }


// -->
function formValidator()
	{
	
			if(document.theForm.txt.value=="")
			{
			 alert("You must enter text value!");
				document.theForm.txt.focus();
				return false;
			}
			
			
		
	}
function showhidefield()
  {
  
      document.getElementById("hideablearea").style.display = "block";
	  document.theForm.txt.focus();
	  document.getElementById("hidearea").style.display = "none";
 
  }
  function hide()
  {
 
    
      document.getElementById("hideablearea").style.display = "none";
	  document.getElementById("hidearea").style.display = "block";
    
  }
  
  function checkAll(frm)
{
	
	for (var i=0;i<frm.elements.length;i++)
 	{
 		var e=frm.elements[i];
		
 		if ((e.name != 'allbox') && (e.type=='checkbox'))
 		{
 			e.checked=frm.allbox.checked;
 		}
 	}
 }
 function playlist(id) {

window.location="http://source.pz10.com/users/myplaylist.php?songid="+id;
 }
  function play() {
 		
 	
	  var file="http://player.pz10.com/player/"; 
	  window.open(file,"player","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=584,height=482")
	 
	 
	 }
	 

function makeDisable(str){
	 if(str=="album")
    {
	var x=document.getElementById("malbum")
    x.disabled=false
	}
	else 
	{
	 var x=document.getElementById("malbum")
    x.disabled=true
	}
}

function srchbckswap()
{
	document.pz.pz10.style.backgroundImage="url(http://i.pz10.com/source/header/hdrcr.gif)";
}

function srchbckswap2()
{
if (document.pz.pz10.value.length<=0)
{
	document.pz.pz10.style.backgroundImage="url(http://i.pz10.com/source/header/source-header-2-search-bg.gif)";
	}
}

function hideLoginDiv()
{
oCommentDiv=document.getElementById('loginDiv');
owebsiteCommentForm=document.getElementById('login');
oCommentDiv.style.visibility="hidden";
}
function showLoginDiv(event)
{
oCommentDiv=document.getElementById('loginDiv');
owebsiteCommentForm=document.getElementById('login');
return showComponent(event,'loginDiv');
}