function Preview(melodyID, melodyTypeID)
{
	if (melodyID != null && melodyTypeID != null)
	{
		url = "/player.php?melodyid=" + melodyID + "&melodytypeid=" + melodyTypeID;
	  	params = 'width=340, height=260, left=200, top=200, menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=no';
	  	win = open( url, 'preview', params );
	  	win.focus();
	}
}
function OnChange(location)
{
	obj = document.getElementById('phoneList');	
	if (obj != null)
	{		
		if (obj.tagName == "SELECT")
		{
			var phoneID = obj.options[obj.selectedIndex].value;
			if (phoneID != -1)
			{
				var srcStr = new String(location);
				var rExp = /\/phone_([0-9]+)/gi;
				var newStr = srcStr.replace(rExp, "/phone_" + phoneID)
				if (newStr == "/")
				{
					newStr = "/phone_" + phoneID + "/";
				}
				document.location.href = newStr;
				document.location.go;
			}
		}
	}
	//var dstStr = new String (phoneID)

	
}
